Comments (5)
I'm currently working on migrating the code to Python3.
I'll upload a branch very soon that works with that version.
from pandana.
The Python3 support branch is merged on master
right now.
We plan to release a new version with this changes soon.
from pandana.
FWIW, I just tried compiling pandana using Python 3.5 and I'm getting the error src/pyaccesswrap.cpp:509:50: error: 'Py_InitModule' was not declared in this scope
full trace:
$ python setup.py install
/Users/knaaptime/anaconda/lib/python3.5/site-packages/setuptools/dist.py:333: UserWarning: Normalizing '0.2dev' to '0.2.dev0'
normalized_version,
running install
running bdist_egg
running egg_info
writing top-level names to pandana.egg-info/top_level.txt
writing dependency_links to pandana.egg-info/dependency_links.txt
writing requirements to pandana.egg-info/requires.txt
writing pandana.egg-info/PKG-INFO
reading manifest file 'pandana.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'pandana.egg-info/SOURCES.txt'
installing library code to build/bdist.macosx-10.9-x86_64/egg
running install_lib
running build_py
copying pandana/network.py -> build/lib.macosx-10.9-x86_64-3.5/pandana
copying pandana/loaders/osm.py -> build/lib.macosx-10.9-x86_64-3.5/pandana/loaders
running build_ext
building 'pandana._pyaccess' extension
gcc-6 -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/knaaptime/anaconda/include -arch x86_64 -I/usr/local/opt/readline/include -I/Users/knaaptime/anaconda/lib/python3.5/site-packages/numpy/core/include -I. -Isrc/ann_1.1.2/include -I/Users/knaaptime/anaconda/include/python3.5m -c src/accessibility.cpp -o build/temp.macosx-10.9-x86_64-3.5/src/accessibility.o -w -std=c++0x -O3 -fpic -g -fopenmp -D NO_TR1_MEMORY
cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
gcc-6 -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/knaaptime/anaconda/include -arch x86_64 -I/usr/local/opt/readline/include -I/Users/knaaptime/anaconda/lib/python3.5/site-packages/numpy/core/include -I. -Isrc/ann_1.1.2/include -I/Users/knaaptime/anaconda/include/python3.5m -c src/graphalg.cpp -o build/temp.macosx-10.9-x86_64-3.5/src/graphalg.o -w -std=c++0x -O3 -fpic -g -fopenmp -D NO_TR1_MEMORY
cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
gcc-6 -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/knaaptime/anaconda/include -arch x86_64 -I/usr/local/opt/readline/include -I/Users/knaaptime/anaconda/lib/python3.5/site-packages/numpy/core/include -I. -Isrc/ann_1.1.2/include -I/Users/knaaptime/anaconda/include/python3.5m -c src/nearestneighbor.cpp -o build/temp.macosx-10.9-x86_64-3.5/src/nearestneighbor.o -w -std=c++0x -O3 -fpic -g -fopenmp -D NO_TR1_MEMORY
cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
gcc-6 -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/knaaptime/anaconda/include -arch x86_64 -I/usr/local/opt/readline/include -I/Users/knaaptime/anaconda/lib/python3.5/site-packages/numpy/core/include -I. -Isrc/ann_1.1.2/include -I/Users/knaaptime/anaconda/include/python3.5m -c src/pyaccesswrap.cpp -o build/temp.macosx-10.9-x86_64-3.5/src/pyaccesswrap.o -w -std=c++0x -O3 -fpic -g -fopenmp -D NO_TR1_MEMORY
cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
src/pyaccesswrap.cpp: In function 'PyObject* init_pyaccess()':
src/pyaccesswrap.cpp:509:50: error: 'Py_InitModule' was not declared in this scope
PyObject *m=Py_InitModule("_pyaccess", myMethods);
^
error: command 'gcc-6' failed with exit status 1
from pandana.
I just uploaded the experimental branch that supports Python3:
https://github.com/UDST/pandana/tree/python3-support
I still have to work a bit more in QA before preparing the PR.
from pandana.
Version 0.3.0 was released with Python 3 support.
https://github.com/UDST/pandana/releases/tag/v0.3.0
from pandana.
Related Issues (20)
- Support for M1 Macs HOT 3
- [Question] How to get different Key|Value combinations in osm.node_query
- [Feature Request] Aggreggation queries to subset of nodes
- Binary incompatibility error with older versions of NumPy HOT 1
- Shortest path length exists but shortest path is empty HOT 5
- shortest path distance between non connected nodes
- Allow specifying mapping distance for POIs
- Issue: the POI Accessibility computation is taking forever
- OSM loader - POIs that are ways in OSM HOT 1
- Pandana network initiation slow for large network HOT 4
- how to increase the performance of the aggregate when impedance is changed to time?
- net.shortest_paths doesn't work with multiprocessing
- tables sub-dependency versions conflict with python 3.10 compatibility when installing with pip HOT 1
- incorrect shortest paths solutions when impendance values are particularly small or large HOT 1
- Plotting with Pandana does not render title HOT 1
- osm.pdna_network_from_bbox error HOT 6
- Pulling network object from OSM bugged HOT 2
- New release ?
- Google Colab install pandana error HOT 1
- query the OSM API for the street network within the specified bounding box error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pandana.