ensmallen icon indicating copy to clipboard operation
ensmallen copied to clipboard

Import of `ensmallen` fails due to missing imports

Open caufieldjh opened this issue 2 years ago • 2 comments

Some (or all?) dependencies aren't getting installed by pip.

Example: The cpuinfo module may not get installed by pip, but it's imported in the __init__.py. On a fresh pip install (from grape) and venv:

>>> from ensmallen import Graph
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/harry/test85812/lib/python3.8/site-packages/ensmallen/__init__.py", line 8, in <module>
    import cpuinfo
ModuleNotFoundError: No module named 'cpuinfo'

I see py-cpuinfo is in the Cargo.toml, and if I install it with pip then this solves the problem, but... then I get a ModuleNotFoundError for bioregistry. Same for downloaders.

Ensmallen is 0.8.35.

caufieldjh avatar Dec 06 '22 15:12 caufieldjh

We have just updated the build using the newer maturin version, possibly it has some issues. I will look into it.

LucaCappelletti94 avatar Dec 06 '22 16:12 LucaCappelletti94

The issue continues to be present ensmallen-wise. I have patched it by adding the requirements to grape.

LucaCappelletti94 avatar Dec 15 '22 14:12 LucaCappelletti94