WRI-Cities/static-GTFS-manager

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

Closed this issue · 9 comments

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

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 .

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

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:`

Do you have any idea to resolve this issue?

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 .

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?

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

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