Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem with package installation #164

Open
danpanetta opened this issue Dec 10, 2021 · 1 comment
Open

problem with package installation #164

danpanetta opened this issue Dec 10, 2021 · 1 comment

Comments

@danpanetta
Copy link

Hello, I'm trying to install osm2gtfs package to download data from Florianópolis.
But when I try to install, this following error appears.
Could you please help me resolve this installation?

`
"""
Collecting transitfeed>=1.2.16
Downloading transitfeed-1.2.16.tar.gz (359 kB)
|████████████████████████████████| 359 kB 2.5 MB/s
Preparing metadata (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /Library/Frameworks/Python.framework/Versions/3.9/bin/python3 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/sd/gndjvmx918d01d2knzlfmpzw0000gn/T/pip-install-_dqf5n5v/transitfeed_64ab3c1ab7e04cf9b83a314adca38311/setup.py'"'"'; file='"'"'/private/var/folders/sd/gndjvmx918d01d2knzlfmpzw0000gn/T/pip-install-_dqf5n5v/transitfeed_64ab3c1ab7e04cf9b83a314adca38311/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/sd/gndjvmx918d01d2knzlfmpzw0000gn/T/pip-pip-egg-info-1ta5krsr
cwd: /private/var/folders/sd/gndjvmx918d01d2knzlfmpzw0000gn/T/pip-install-_dqf5n5v/transitfeed_64ab3c1ab7e04cf9b83a314adca38311/
Complete output (6 lines):
Traceback (most recent call last):
File "", line 1, in
File "/private/var/folders/sd/gndjvmx918d01d2knzlfmpzw0000gn/T/pip-install-_dqf5n5v/transitfeed_64ab3c1ab7e04cf9b83a314adca38311/setup.py", line 34
except ImportError, e:
^
SyntaxError: invalid syntax

WARNING: Discarding https://files.pythonhosted.org/packages/56/63/b129a3addfcb4b71033875d62ab4106b96498c2fb56dfdbf05542274b2cf/transitfeed-1.2.16.tar.gz#sha256=07af6dd9b975ac42536feb38402d159bb6387afbe234b915a2a149960a92a5c2 (from https://pypi.org/simple/transitfeed/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement transitfeed>=1.2.16 (from osm2gtfs) (from versions: 1.2.15-blah, 1.2.14, 1.2.16)
ERROR: No matching distribution found for transitfeed>=1.2.16
"""
`

@nlehuby
Copy link
Collaborator

nlehuby commented Dec 24, 2021

Hello,

its seems that you are using python3. For now, osm2gtfs only supports python2.
Have a look at Jungle Bus fork or at this pending PR to see if if fix your issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants