WRI-Cities / static-GTFS-manager

GUI interface for creating, editing, exporting of static GTFS data for a public transit authority
GNU General Public License v3.0
147 stars 46 forks source link

PyTables module not working in python 3.7 (encountered on MAC OS) #124

Closed lekhactho closed 5 years ago

lekhactho commented 5 years ago

We try to run on MAC with python3.x but we got many issues on it Could you please help us.

answerquest commented 5 years ago

Hi @lekhactho , I don't have any Mac for miles here, and it's working fine on Ubuntu, Windows and on the herokuapp server. You'll have to share your console / terminal output for me to get any clue about what's happening at your end.

There is an option to deploy it on herokuapp and use it on there. Follow the instructions here: Deply your own heroku instance

Also, a request: I want to know how people are using this tool. If its ok, can you share your use case and OS? You can send me a private email on nikhil.js [at] gmail.com .

answerquest commented 5 years ago

Addendum: HDF5 might be causing an issue. Take a look at some solutions given here: https://stackoverflow.com/questions/28733625/unable-to-install-tables-python-os-x-could-not-find-a-local-hdf5-installati

lekhactho commented 5 years ago

yep as same as your said I got console log : `HTTPServerRequest(protocol='http', host='localhost:5000', method='GET', uri='/API/stats', version='HTTP/1.1', remote_ip='::1') Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/pandas/io/pytables.py", line 469, in init import tables # noqa ModuleNotFoundError: No module named 'tables'

During handling of the above exception, another exception occurred:`

lekhactho commented 5 years ago

Do you have any idea to resolve this issue?

answerquest commented 5 years ago

Ah, PyTables module/package might not be working yet in python 3.7. Look at their pypi.org page, they don't have anything for 3.7 yet. https://pypi.org/project/tables/#files

I think I had got a similar error earlier, then I had tried in python3.6 and it had worked. I'd assumed back then it was a problem local to my machine, as the default python in my ubuntu system is 3.6. But looking at the pypi page now I understand.

Thanks for bringing this up. I'll edit the instructions in my readme and wikis to reflect this. For your end I'll advise that you create a Virtual Environment and mention version python3.6 there. The steps ought to be similar to the Ubuntu steps.

Updated wiki page Running-on-Ubuntu-OS (should work with Mac OS too)

request: I want to know how people are using this tool. If its ok, can you share your use case and OS? You can send me a private email on nikhil.js [at] gmail.com .

lekhactho commented 5 years ago

Ok thanks @answerquest As you mention before we can run this project in Heroku right ?. Could you give us step to run on it please?

answerquest commented 5 years ago

I already did. Please see the link in that same post.

On Saturday, October 13, 2018, lekhactho notifications@github.com wrote:

Ok thanks @answerquest https://github.com/answerquest As you mention before we can run this project in Heroku right ?. Could you give us step to run on it please?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/WRI-Cities/static-GTFS-manager/issues/124#issuecomment-429507609, or mute the thread https://github.com/notifications/unsubscribe-auth/AIqyEAbnUzoGPY4dYifL4_I27uShcglCks5ukV-zgaJpZM4XZvZz .

--

Cheers, Nikhil VJ +91-966-583-1250 Pune, India Website http://nikhilvj.co.in DataMeet Pune chapter https://datameet-pune.github.io/ Self-designed learner at Swaraj University http://www.swarajuniversity.org Payment / Contribute https://nikhilvj.benow.in/pay

lekhactho commented 5 years ago

Sorry I didn't see it. Many thanks for support @answerquest

answerquest commented 5 years ago

Update: As of June 2019 the PyTables module is working with Python 3.7 . See https://pypi.org/project/tables/#files

Therefore we shouldn't get this same problem again and ought to be able to run the program in python 3.7 which is the default MAC OS.

CC: @lekhactho