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

Cannot install libscrc on Python 3.10 on MacOS #10

Open
crenwick opened this issue May 10, 2022 · 16 comments
Open

Cannot install libscrc on Python 3.10 on MacOS #10

crenwick opened this issue May 10, 2022 · 16 comments

Comments

@crenwick
Copy link

On MacOS, running python 3.10, pip install libscrc returns the following error:

ERROR: Could not find a version that satisfies the requirement libscrc (from versions: none)
ERROR: No matching distribution found for libscrc

I have to downgrade to python 3.8 to install libscrc, but works fine on 3.10 on Ubuntu.

@crenwick
Copy link
Author

I was able to clone this repo to build + install libscrc 1.8 on my python 3.10.3's version of python, so I think this might just be a pip distribution issue.

@denisbondar
Copy link

I get the exact same error when using the python:3.10-alpine docker image:

ERROR: Could not find a version that satisfies the requirement libscrc (from versions: none)
ERROR: No matching distribution found for libscrc

@hex-in
Copy link
Owner

hex-in commented Aug 11, 2022

On MacOS, running python 3.10, pip install libscrc returns the following error:

ERROR: Could not find a version that satisfies the requirement libscrc (from versions: none)
ERROR: No matching distribution found for libscrc

I have to downgrade to python 3.8 to install libscrc, but works fine on 3.10 on Ubuntu.

I fixed it as soon as possible.

@hex-in
Copy link
Owner

hex-in commented Aug 11, 2022

I get the exact same error when using the python:3.10-alpine docker image:

ERROR: Could not find a version that satisfies the requirement libscrc (from versions: none)
ERROR: No matching distribution found for libscrc

Please try again.

@hex-in
Copy link
Owner

hex-in commented Aug 11, 2022

I was able to clone this repo to build + install libscrc 1.8 on my python 3.10.3's version of python, so I think this might just be a pip distribution issue.

Pls try again.

@denisbondar
Copy link

I get the exact same error when using the python:3.10-alpine docker image:
Please try again.

Python 3.10 (or 3.9) using Docker container with Alpine (or Debian buster) - Failed:
https://pastebin.com/3vXM6WiY

Pythonr 3.10 using MacOS 12.5 - It's okay:

pip install libscrc
Collecting libscrc
  Downloading libscrc-1.8-cp310-cp310-macosx_10_9_universal2.whl (118 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 118.6/118.6 kB 1.5 MB/s eta 0:00:00
Installing collected packages: libscrc
Successfully installed libscrc-1.8

@denisbondar
Copy link

denisbondar commented Aug 12, 2022

Python 3.10 (or 3.9) using Docker container with Alpine (or Debian buster) - Failed:
https://pastebin.com/3vXM6WiY

Sorry. No gcc was installed. Below is a snippet of output after installing gcc. Docker container python:3.10-buster was used. When using the python:3.10-alpine3.15 image, the result is exactly the same.

...
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/local/include/python3.10 -c src/crcx/_crcxmodule.c -o build/temp.linux-aarch64-cpython-310/src/crcx/_crcxmodule.o
src/crcx/_crcxmodule.c:22:10: fatal error: _crcxtables.h: No such file or directory
   22 | #include "_crcxtables.h"
      |          ^~~~~~~~~~~~~~~
compilation terminated.
error: command '/usr/bin/gcc' failed with exit code 1
[end of output]
...

@hex-in
Copy link
Owner

hex-in commented Aug 12, 2022

Python 3.10 (or 3.9) using Docker container with Alpine (or Debian buster) - Failed:
https://pastebin.com/3vXM6WiY

Sorry. No gcc was installed. Below is a snippet of output after installing gcc. Docker container python:3.10-buster was used. When using the python:3.10-alpine3.15 image, the result is exactly the same.

...
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/local/include/python3.10 -c src/crcx/_crcxmodule.c -o build/temp.linux-aarch64-cpython-310/src/crcx/_crcxmodule.o
src/crcx/_crcxmodule.c:22:10: fatal error: _crcxtables.h: No such file or directory
   22 | #include "_crcxtables.h"
      |          ^~~~~~~~~~~~~~~
compilation terminated.
error: command '/usr/bin/gcc' failed with exit code 1
[end of output]
...

OK, I'll try my best to solve it. Thank u for ur feedback.

@cquick01
Copy link

I'm also unable to install libscrc 1.8 with a similar error message about _crcxtables.h. I'm running on Ubuntu 22.04 (WSL2).

In case it helps, I've uploaded the full output with errors that I'm seeing to a gist here: https://gist.github.com/cquick01/bd182c57ae203cf79da5a82c2209cf5a

@pikhovkin
Copy link
Contributor

I'm also unable to install libscrc 1.8 with a similar error message about _crcxtables.h. I'm running on Ubuntu 22.04 (WSL2).

In case it helps, I've uploaded the full output with errors that I'm seeing to a gist here: https://gist.github.com/cquick01/bd182c57ae203cf79da5a82c2209cf5a

Same error on Ubuntu 22.04 and Python 3.10.6

@sunnysolutions
Copy link

I'm also unable to install libscrc 1.8 with a similar error message about _crcxtables.h. I'm running on Ubuntu 22.04 (WSL2).

In case it helps, I've uploaded the full output with errors that I'm seeing to a gist here: https://gist.github.com/cquick01/bd182c57ae203cf79da5a82c2209cf5a

Same error on Termux on Android 9 and Python 3.10.6
Give it a try by using the github link of the libscrc project

$ pip install git+https://github.com/hex-in/libscrc.git

It worked this way for me!

@hex-in
Copy link
Owner

hex-in commented Aug 30, 2022

I get the exact same error when using the python:3.10-alpine docker image:

ERROR: Could not find a version that satisfies the requirement libscrc (from versions: none)
ERROR: No matching distribution found for libscrc

Pls try again.

@denisbondar
Copy link

Pls try again.

Now it's okay! Thank you so much!

@pikhovkin
Copy link
Contributor

I'm confirm, now it's ok!

@pikhovkin
Copy link
Contributor

a build for python:3.10.5-slim is ok
a build for python:3.11.5-slim is error

ERROR: Could not build wheels for libscrc, which is required to install pyproject.toml-based projects
Failed to build libscrc

@TheLavrov
Copy link

I'm trying to use this with Pyscript but because 3.11 does not have wheels I cannot use it.

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

7 participants