-
Notifications
You must be signed in to change notification settings - Fork 0
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
Broken installation of volue.mesh
package via pip
#526
Comments
TL;DR;It seems the problem is due to the new version of poetry core (2.0.0 was released 4th on January). We use poetry core as a backend for building the package. For now the temporary solution is to install build dependencies manually and install
More contextOur package installation contains a build step to be executed on the client machine when installing the package, e.g. via pip. By default this is done by pip in an isolated build environment where all needed dependencies are installed. Those dependencies are defined in: energy-mesh-python/pyproject.toml Lines 76 to 81 in 0d2f524
This build step uses poetry core. The poetry core version does not have an upper bound limitation. A temporary solution could be to not use isolated build environment, where the user decides what versions of the dependencies to use. |
volue.mesh
package via pipvolue.mesh
package via pip
I did more digging and it turns out this is expected. I'm copying explanation from #527:
|
New Mesh Python SDK version with fix was released: v1.11.0 Added FAQ section with instruction what to do: https://volue-public.github.io/energy-mesh-python/faq.html#i-get-an-importerror-cannot-import-name-auth-pb2-from-volue-mesh-proto-auth-v1alpha For Mesh server versions 2.15 and above upgrade to Mesh Python SDK version with the fix1: v1.11.0 # Generally we recommend to run this in virtual environment
python -m pip install poetry-core==1.9.1
python -m pip install grpcio-tools==1.66.1
python -m pip install --no-build-isolation git+https://github.com/Volue-Public/energy-mesh-python@v1.10.0 Footnotes |
Stubs generated from proto files are not included in the package when the wheel is built locally during pip installation.
The
volue.mesh
package installation is successful, but when trying to use it we are getting errors like:All Python SDK versions are affected.
The text was updated successfully, but these errors were encountered: