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

installation fails with python 3.10 and 3.11 #139

Open
venturozzaccio opened this issue Mar 20, 2024 · 3 comments · May be fixed by #179
Open

installation fails with python 3.10 and 3.11 #139

venturozzaccio opened this issue Mar 20, 2024 · 3 comments · May be fixed by #179

Comments

@venturozzaccio
Copy link

venturozzaccio commented Mar 20, 2024

Hi,

I am having issues installing this plugin with any python version with pip install kedro-vertexai

with python 3.10

AttributeError: cython_sources
[end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

cause pyyaml pinned version and cython doesn't live happily together.

with python 3.11 installation fails cause pinned grpcio=1.44 doesn't support python 3.11 but I guess that's fair since that version is not officially supported.

Any suggestion?

Thanks

@Lasica
Copy link
Contributor

Lasica commented Mar 22, 2024

Hi,
I've tried bumping up version to 3.11 but there are weird Assertion Errors from poetry when resolving dependencies - I'll look into that later. Most of our dependency problems stands from a long-standing task to update kfp to 2.0, as it keeps other versions old. #44

That being said, python 3.10 should be working all well, although I had issues in bumping up its version in our github actions e2e test. I don't remember exact issue, but it was as you've said related to pyyaml/cython. I've left a comment in our pyproject.toml:

# pyaml in version 5 does problems with installing binaries/wheel in cicd env with python 3.10. The following fixes that:
# pyyaml = ">=6.0,<7"

So if you try to fix pyyaml's version, try using the following constraint?
Don't expect python 3.11 to work yet.
#146

I'll try to update kfp when I have some more time to work on this project and then try to debug python updates.

@cerlymarco
Copy link

@Lasica that seems to be still a problem with python 3.11

@astrojuanlu
Copy link

I confirm Python 3.10 works just fine. Python 3.11 is excluded for now

[tool.poetry.dependencies]
python = ">=3.8,<3.11" # weird error OverrideNeeded when bumping up. Could be related to old versions with kfp

see #146

@astrojuanlu astrojuanlu linked a pull request Oct 24, 2024 that will close this issue
2 tasks
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

Successfully merging a pull request may close this issue.

4 participants