Open AkhilJPatil opened 4 years ago
there is a fork with python3 support but you need to manually install from sources.
follow these steps ** : 1 - clone the python3 fork and change to python3 branch
2 - create a virtual environment and activate it
3 - Install the requirements
4 - install the package
5 - run all test
(** no tested in windows)
On Tue, Mar 17, 2020 at 4:25 PM Nathan Schepers notifications@github.com wrote:
I was considering porting the whole thing to python3, but also wondered whether there was a python3 version somewhere else already. If there's not, I'll do the work, but probably need a little guidance from the maintainers wrt what they'd like in a PR.
Please advise. Thanks!
— 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/511#issuecomment-600329791, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA643IYS2UNXVHH3DKDRSQ3RH72F5ANCNFSM4LE7OYDQ .
In the util.py file change the import urllib2 to import urllib and that will solve this issue and install on the latest version of Python
Not sure if transitfeed is ready for python3! Already went through #493, #412 and response by pecalleja 4 months ago.
Tried installing the transitfeed module on windows 10, Python version: 3.5.2 and ubuntu 18.04.3, Python version: 3.6.9
Getting below syntax error. Is there an error free alternate file availble at some other path or should just remove the syntax locally and try to install it.
#############################WIN10###############################
#############################UBUNTU###############################
~$ pip install transitfeed Collecting transitfeed Downloading https://files.pythonhosted.org/packages/56/63/b129a3addfcb4b71033875d62ab4106b96498c2fb56dfdbf05542274b2cf/transitfeed-1.2.16.tar.gz (359kB) 100% |████████████████████████████████| 368kB 1.1MB/s Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 1, in
File "/tmp/pip-build-t_16sefl/transitfeed/setup.py", line 34
except ImportError, e:
^
SyntaxError: invalid syntax
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-t_16sefl/transitfeed/
Please suggest. Thanks!