Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Error when importing plotnine3d: ModuleNotFoundError: No module named 'plotnine.utils' #1

Open
hisermann opened this issue Mar 12, 2024 · 2 comments

Comments

@hisermann
Copy link

Hi,
I wanted to test your library, but unfortunatly, I cannot load it as it throws an ModuleNotFoundError:

>>> import plotnine3d
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/hannah/.local/lib/python3.10/site-packages/plotnine3d/__init__.py", line 1, in <module>
    from .geoms import geom_point_3d, geom_polygon_3d, geom_line_3d, geom_voxel_3d, geom_text_3d, geom_label_3d
  File "/home/hannah/.local/lib/python3.10/site-packages/plotnine3d/geoms.py", line 2, in <module>
    from plotnine.utils import to_rgba, SIZE_FACTOR
ModuleNotFoundError: No module named 'plotnine.utils'

I am using Ubuntu 22 with plotnine 0.13.1 and plotnine3d 0.0.6.

@flyingkukri
Copy link

flyingkukri commented May 5, 2024

you have to change the module to plotnine._utils
I changed that in my fork, so just run

pip install git+https://github.com/flyingkukri/plotnine3d 

however there also seem to be other places in the library where calls to plotnine are deprecated

@krassowski
Copy link
Owner

Feel welcome to open a PR!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants