-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
psycopg/psycopg2 DLL import issues #6734
Comments
This bug is not reproducing in mac sonoma 14.5. This must be a compiling issue with psycopg2 as psycopg2 requires a C compiler to build from source. psycopg2-binary has precompiled binaries so replacing this in requirements should do the job. This could also occur if you dont have the right build environment, like not having gcc. |
Hello, Yes, I wasn't able to reproduce it either. Have you tried UzitheI suggestion? Thank you,
|
https://github.com/HumanSignal/label-studio/blob/develop/pyproject.toml#L180 I was unable to reproduce the issue on 3.12, but there is another issue with numpy for 3.13, which requires gcc to compile modules. |
Tried installing I also tried on other system, Windows 10, installed Python 3.13, then tried to install Tried installing |
Agreed @AgainPsychoX. psycopg[binary] apparently doesnt build from the source and explicitly specifies the binary wheel. I still believe you're facing this issue because you dont have the right build environment (possibly your C compiler isnt being used or doesnt exist) but there should be build script for environments lacking that.A script for 'if psycopg2 build fails, automatically try for pip install psycopg[binary]' could do the job. @heidi-humansignal |
Hello, Just want to follow up on this. The issue is with psycopg2, its not really compatible with python 3.13 on windows and it cause issues. Downgrading to python 3.12 will solve this problem. We will investigate this further and see what could be possible solutions for it. Thank you,
|
Describe the bug
Trying to start the
label-studio
just crashes...To Reproduce
Steps to reproduce the behavior:
venv
pip install label-studio
label-studio
(anything)Expected behavior
It should just work ;)
Environment:
Additional context
Log:
The text was updated successfully, but these errors were encountered: