-
Notifications
You must be signed in to change notification settings - Fork 1
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
pyyaml/cython error when installing with poetry install #120
Comments
A potential workaround is to manually install cython < 3 and use cd sqlsynthgen
poetry run pip install cython<3
poetry run pip install wheel
poetry run pip install --no-build-isolation pyyaml==5.4.1
poetry install Full credit to this comment for coming up with the workaround. |
Closing this as we think it has been fixed by the upgrade to SQL Alchemy v2. |
I've seen the same error when running |
I'm not sure if the reason is the workaround, but after a successful install, running Here's the stack trace. Seems related to
Not sure if messing with PyYaml/Cython somehow messed up with OpenDP |
I think the workaround is the problem: installing
|
Sorry I didn't fully follow. How can I reproduce the problem that comes up when you run |
@mhauru , this is what I did on a Linux Docker container:
|
Can reproduce. I think the issue is just that we haven't made a new pypi release in a long while. Whooops... Should definitely do that. |
Doing that now, see #164 |
Now fixed by the release of 0.4.0. Thanks Carlos for spotting, this was a significant oversight to fix. |
As of a recent release of cython v3,
poetry install
will fail with an error such as:We believe that this is because pyyaml 5.x.x cannot be built with the latest release of cython.
Although poetry locks the versions of dependencies, it seems that it does not lock the versions of build dependencies.
The main pyyaml issue is here where the maintainer sounds unlikely to do a 5.4.2 release. We could update to pyyaml 6.x.x but that would require us to upgrade other dependencies and, ultimately, use sqlalchemy v2, which is currently incompatible with smartnoise SQL. See #104 for more.
The text was updated successfully, but these errors were encountered: