google / transitfeed

A Python library for reading, validating, and writing transit schedule information in the GTFS format.
https://github.com/google/transitfeed/wiki
Apache License 2.0
680 stars 253 forks source link

Unable to install #434

Open gzambran opened 7 years ago

gzambran commented 7 years ago

Collecting transitfeed Downloading transitfeed-1.2.14.tar.gz (347kB) 100% |████████████████████████████████| 348kB 1.7MB/s Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 1, in File "/private/tmp/pip-build-nenm9v/transitfeed/setup.py", line 34 except ImportError, e: ^ SyntaxError: invalid syntax

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /private/tmp/pip-build-nenm9v/transitfeed/

MuckT commented 7 years ago

I was able to install correctly on a fresh Linux machine using "sudo pip install transitfeed". I've seen similar errors before especially if there are multiple installs of Python on a computer: a common problem for those using ESRI. Check with "pip list" that the module isn't installed somewhere else.

Some Similar Problems: https://stackoverflow.com/questions/17886647/cant-install-via-pip-because-of-egg-info-error

https://github.com/donnemartin/gitsome/issues/4

On Mon, Aug 21, 2017 at 8:50 AM, gzambran notifications@github.com wrote:

Collecting transitfeed Downloading transitfeed-1.2.14.tar.gz (347kB) 100% |████████████████████████████████| 348kB 1.7MB/s Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 1, in File "/private/tmp/pip-build-nenm9v/transitfeed/setup.py", line 34 except ImportError, e: ^ SyntaxError: invalid syntax


Command "python setup.py egg_info" failed with error code 1 in /private/tmp/pip-build-nenm9v/transitfeed/

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/google/transitfeed/issues/434, or mute the thread https://github.com/notifications/unsubscribe-auth/AZs6oXWgGwXNhG7fbWtxd78MEO38ffnjks5saac5gaJpZM4O9hrV .

gzambran commented 7 years ago

I definitely have 2 installs of Python on my computer but that hasn't caused issues with any other installs. I even aliased python to python3.6 but still have the same issue.

gzambran commented 7 years ago

I see my silly mistake. Didn't realize this isn't supported for Python 3

avilaton commented 6 years ago

Issue is caused by incompatibility with python 3, tracked in #412 . This can be marked as duplicate and closed.