Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#1684 closed defect (fixed)

BZip2 missing in Linux daily builds

Reported by: Tristan Croll Owned by: Greg Couch
Priority: major Milestone:
Component: Build System Version:
Keywords: Cc:
Blocked By: Blocking:
Notify when closed: Platform: all
Project: ChimeraX

Description

Exception:
Traceback (most recent call last):
  File "/opt/UCSF/ChimeraX-daily/lib/python3.7/tarfile.py", line 1666, in bz2open
    import bz2
  File "/opt/UCSF/ChimeraX-daily/lib/python3.7/bz2.py", line 19, in <module>
    from _bz2 import BZ2Compressor, BZ2Decompressor
ModuleNotFoundError: No module named '_bz2'

Probably because the CentOS 7 Singularity recipe is missing bzip2-devel.

Change History (2)

comment:1 by Greg Couch, 7 years ago

Resolution: fixed
Status: assignedclosed

Dropped use of bz2.

in reply to:  2 ; comment:2 by tic20@…, 7 years ago

Not sure if this is the best solution? I’ve run into the same error with other Python-based distributions where I compiled the Python interpreter on my own machine. It seems that quite a few PyPI packages (e.g. MatplotLib) implicitly expect bzip2 to be there. If the bzip2-devel headers are present on the build machine a “vanilla” Python compiler will build the support library; if not it will just silently skip it.
 

 


Note: See TracTickets for help on using tickets.