Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
lekhactho opened this issue Oct 12, 2018 · 9 comments
Closed

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

lekhactho opened this issue Oct 12, 2018 · 9 comments
Labels
compatibliity related to versions, OSs etc

Comments

@lekhactho
Copy link

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

@answerquest
Copy link
Collaborator

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
Copy link
Collaborator

answerquest commented Oct 12, 2018

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
Copy link
Author

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
Copy link
Author

Do you have any idea to resolve this issue?

@answerquest
Copy link
Collaborator

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
Copy link
Author

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
Copy link
Collaborator

answerquest commented Oct 13, 2018 via email

@lekhactho
Copy link
Author

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

@answerquest answerquest changed the title Failed to fetch stats. Message: 500: Internal Server Error on MAC PyTables module not working in python 3.7 (encountered on MAC OS) Oct 13, 2018
@answerquest answerquest added the compatibliity related to versions, OSs etc label Oct 13, 2018
@answerquest
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compatibliity related to versions, OSs etc
Projects
None yet
Development

No branches or pull requests

2 participants