GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - sebastic/python-mapnik: Python bindings for mapnik

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

10,171 Commits
10,171 Commits

Folders and files

NameName
Last commit message
Last commit date
mapnik
mapnik
 
 
src
src
 
 
test
test
 
 
.gitignore
.gitignore
 
 
.gitmodules
.gitmodules
 
 
.travis.yml
.travis.yml
 
 
AUTHORS.md
AUTHORS.md
 
 
CHANGELOG.md
CHANGELOG.md
 
 
COPYING
COPYING
 
 
README.md
README.md
 
 
bootstrap.sh
bootstrap.sh
 
 
build.py
build.py
 
 
setup.cfg
setup.cfg
 
 
setup.py
setup.py
 
 

Repository files navigation

Build Status

Python bindings for Mapnik.

Installation

Eventually we hope that many people will simply be able to pip install mapnik in order to get prebuilt binaries, this currently does not work though. So for now here are the instructions

Create a virtual environment

It is highly suggested that you a python virtualenv when developing on mapnik.

Building from Mason

If you do not have mapnik built from source and simply wish to develop from the latest version in mapnik master branch you can setup your environment with a mason build. In order to trigger a mason build prior to building you must set the MASON_BUILD environment variable.

export MASON_BUILD=true

After this is done simply follow the directions as per a source build.

Building from Source

Assuming that you built your own mapnik from source, and you have run make install. Set any compiler or linking environment variables as necessary so that your installation of mapnik is found. Next simply run one of the two methods:

python setup.py develop

If you wish to are currently developing on mapnik-python and wish to change the code in place and immediately have python changes reflected in your environment.

python setup.py develop --uninstall

Will de-activate the development install by removing the python-mapnik entry from site-packages/easy-install.pth.

python setup.py install

If you wish to just install the package

Testing

Once you have installed you can test the package by running:

git submodule update --init
python setup.py test

The test data in ./test/data and ./test/data-visual are standalone modules. If you need to update them see https://github.com/mapnik/mapnik/blob/master/docs/contributing.markdown#testing

Troubleshooting

If you hit an error like:

Fatal Python error: PyThreadState_Get: no current thread
Abort trap: 6

That means you likely have built python-mapnik is linked against a differ python version than what you are running. To solve this try running:

/usr/bin/python <your script.py>

If you still hit a problem create an issue and we'll try to help.

About

Python bindings for mapnik

Resources

Readme
LGPL-2.1 license
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.