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?
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.
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 """ `