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

Issue with Pint #76

Open
SBottani opened this issue Jul 1, 2022 · 3 comments
Open

Issue with Pint #76

SBottani opened this issue Jul 1, 2022 · 3 comments

Comments

@SBottani
Copy link
Contributor

SBottani commented Jul 1, 2022

Hi Tanguy,

I'm reinstalling the latest master on a fully updated system (Debian); Dense installs but I cannot run my code any longer, because of some issue with Pint

  self._areas     = {
Traceback (most recent call last):
  File "/home/bottani/2021_Arches_fig/arches2_figure/Temp_RIGHT/temp.py", line 161, in <module>
    pos = culture.seed_neurons(neurons=num_neurons,
  File "/home/bottani/.local/lib/python3.9/site-packages/dense-0.1.0-py3.9-linux-x86_64.egg/dense/environment/shape.py", line 848, in seed_neurons
    raise RuntimeError("`return_quantity` requested but Pint is "
RuntimeError: `return_quantity` requested but Pint is not available. Please install it first.

Of ourse 'Pint' is installed

In [1]: import pint

In [2]: print(pint.__version__)
0.18

There are also many warning concerning Shapely when shapely objects are used, as

 self._geom_type = 'Polygon'
/home/bottani/.local/lib/python3.9/site-packages/dense-0.1.0-py3.9-linux-x86_64.egg/dense/environment/shape.py:418: ShapelyDeprecationWarning: Setting custom attributes on geometry objects is deprecated, and will raise an AttributeError in Shapely 2.0

Having I think upgraded all requirements and packages I am at a loss here.
Thank you

Samuel

@tfardet
Copy link
Contributor

tfardet commented Jul 2, 2022

I think this is an issue with your pint version being too old, can you run pip install --upgrade pint and check again?

@tfardet
Copy link
Contributor

tfardet commented Jul 2, 2022

For the warnings, these have also been fixed as far as I remember, run git submodule update --remote --merge

@SBottani
Copy link
Contributor Author

SBottani commented Jul 5, 2022

well, that is not the reason. Now I have the right 0.19.2 pint version and still not working
sumbodule updated also
:-(

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

2 participants