pairtools icon indicating copy to clipboard operation
pairtools copied to clipboard

most likely due to a circular import

Open stephrom opened this issue 1 year ago • 5 comments
trafficstars

Dear,

I systematically get the following error:

ImportError: cannot import name 'dedup_cython' from partially initialized module 'pairtools.lib' (most likely due to a circular import) (/shared/clssoft/apps/x86_64/pairtools/1.0.3/lib/python3.8/site-pack

could one advice, please

Best regards Stephane

stephrom avatar Apr 09 '24 12:04 stephrom

Same issue here

xscapintime avatar May 08 '24 05:05 xscapintime

You have to PIP install from source after installing the dependencies:

git clone -b "v1.1.0" https://github.com/open2c/pairtools.git
cd pairtools && pip install .

Indicates a problem with the precompiled wheel in PyPI.

aowenson-imm avatar Jul 09 '24 17:07 aowenson-imm

You have to PIP install from source after installing the dependencies:

git clone -b "v1.1.0" https://github.com/open2c/pairtools.git
cd pairtools && pip install .

Indicates a problem with the precompiled wheel in PyPI.

This didn't work for me; anyone got it working? I get the error for all package versions, different python versions, different environments, on bioconda it's not found...

liviu- avatar Aug 06 '24 14:08 liviu-

I also have the same problem with version 1.1.0. Based on the traceback, the culprit is this line: https://github.com/open2c/pairtools/blob/8c41a26b3f3a3905e307f3baa4b547203394dca1/pairtools/lib/dedup.py#L9 It does seem to be a circular import.

dmitrymyl avatar Sep 04 '24 09:09 dmitrymyl

But this advice

You have to PIP install from source after installing the dependencies:

git clone -b "v1.1.0" https://github.com/open2c/pairtools.git
cd pairtools && pip install .

Indicates a problem with the precompiled wheel in PyPI.

worked for me.

dmitrymyl avatar Sep 04 '24 09:09 dmitrymyl