zheminzhou/pHierCC

AttributeError: type object 'tuple' has no attribute '__itemsize__'

Closed this issue · 0 comments

eam12 commented

I recently installed pHierCC via conda with the command recommended here:

conda install -c zhemin phiercc

However, when I then try to run the pHierCC command on the toy dataset provided I receive the following error.

% pHierCC -p YERwgMLST.cgMLSTv1.profile.gz -o YERwgMLST.cgMLSTv1.HierCC
Traceback (most recent call last):
  File "/home/johnsont/shared/.conda/envs/phiercc/lib/pypy3.8/site-packages/pHierCC/pHierCC.py", line 23, in <module>
    from getDistance import getDistance
ModuleNotFoundError: No module named 'getDistance'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/johnsont/shared/.conda/envs/phiercc/bin/pHierCC", line 7, in <module>
    from pHierCC.pHierCC import phierCC
  File "/home/johnsont/shared/.conda/envs/phiercc/lib/pypy3.8/site-packages/pHierCC/pHierCC.py", line 25, in <module>
    from .getDistance import getDistance
  File "/home/johnsont/shared/.conda/envs/phiercc/lib/pypy3.8/site-packages/pHierCC/getDistance.py", line 1, in <module>
    import numpy as np, numba as nb, os
  File "/home/johnsont/shared/.conda/envs/phiercc/lib/pypy3.8/site-packages/numba/__init__.py", line 19, in <module>
    from numba.core import config
  File "/home/johnsont/shared/.conda/envs/phiercc/lib/pypy3.8/site-packages/numba/core/config.py", line 19, in <module>
    MACHINE_BITS = tuple.__itemsize__ * 8
AttributeError: type object 'tuple' has no attribute '__itemsize__'

I have had success running this in the past with a different conda environment (installed with the same conda command) so I'm not sure what has changed. I'm using python3.8.3.