NTNU-IndEcol / df_file_interchange

File interchange code to consistently save and reload Pandas dataframes with metadata.
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

circular dependency #15

Closed konstantinstadler closed 6 months ago

konstantinstadler commented 6 months ago

after installing the package the import fails with

ImportError: cannot import name 'extra' from partially initiali zed module 'df_file_interchange.ci' (most likely due to a circu lar import) (/home/konstans/proj/df_interchange_testing/.venv/l ib/python3.12/site-packages/df_file_interchange/ci/init.py)

konstantinstadler commented 6 months ago

same issue when I just clone, build the environment and do import df_file_interchange as fi

EsmeMaxwell commented 6 months ago

Thanks. Could you possibly describe how you downloaded+installed so I can try to replicate? Attached is what I have (using mamba with the supplied environment.yaml).

To be fair, I haven't tested it with the bootstrap installer yet, which I'll do soon.

Also, I might tighten the versioning in the environment.yaml.

fi

EsmeMaxwell commented 6 months ago

Ah, no -- I'm getting the same on a fresh install. Let me have a look...

EsmeMaxwell commented 6 months ago

Ok, this issue at least, I think is fixed now. It shouldn't have been working (I've no idea why it was working in my VSCode setup).