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

Error with python-snappy #68

Closed
mpm090922 opened this issue Sep 21, 2023 · 3 comments
Closed

Error with python-snappy #68

mpm090922 opened this issue Sep 21, 2023 · 3 comments

Comments

@mpm090922
Copy link

Hello and apologies if this is a dumb question. I am fairly new to coding with python and am trying to install the nfl_data_py in my terminal but am getting the following error messages:

error: subprocess-exited-with-error

Building wheel for python-snappy (pyproject.toml) did not run successfully.
ERROR: Failed building wheel for python-snappy
ERROR: Could not build wheels for python-snappy, which is required to install pyproject.toml-based projects

I have tried to trouble shoot by downloading C++ and installing python-snappy separately, but to no avail. Has anyone else run into this issue and do you have any idea on how to solve.

Thanks in advance for any additional info anyone is able to provide.

@throy45
Copy link
Contributor

throy45 commented Sep 21, 2023

Hey! I had the same problem as you yesterday, and I fixed it temporarily by downloading snappy wheel directly from here. I got this version : python_snappy-0.6.1-cp311-cp311-win_amd64.whl. Then use the following and you should be able to pip install nfl_data_py:
pip install "C:\Users\youruser\Downloads\python_snappy-0.6.1-cp311-cp311-win_amd64.whl"

But still, the issue is ongoing because we can't simply create a virtualenv and pip install nfl_data_py. It seems a common issue with snappy, maybe there is an alternative library that could be used instead.

Hope it helps in the meanwhile!

@throy45
Copy link
Contributor

throy45 commented Sep 21, 2023

I just tested by forking the project, removing python-snappy from setup.py and I was able to build the package in a new venv. I only checked that I could import pbp and it worked!

@jkant
Copy link

jkant commented Sep 23, 2023

I came to raise the exact same issue when trying to run my project on my laptop. Strangely, I don't have the same issue on my other machine (maybe something else had installed Snappy on it long ago?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants