This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author xxm
Recipients xxm
Date 2021-03-11.07:20:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1615447237.87.0.642854040325.issue43471@roundup.psfhosted.org>
In-reply-to
Content
Module bz2 fails to be imported on Ubuntu due to lack of '_bz2'.  We try "import bz2" on Mac, it can work well.

Errors on Ubuntu
==========================================
>>import bz2
Traceback (most recent call last):
      File "/home/xxm/Desktop/apifuzz/doc/genDoc.py", line 97, in <module>
           exec(compile(mstr,'','exec'))
      File "", line 1, in <module>
           File "/home/xxm/Desktop/apifuzz/Python-3.9.2/Lib/bz2.py", line 18, in <module>
                from _bz2 import BZ2Compressor, BZ2Decompressor
ModuleNotFoundError: No module named '_bz2'
===========================================

Python version: 3.9.2
Python installation: (1). download source code from python.org, (2). run command "./configure; sudo make; sudo make install.

We install the same Python 3.9.2 in a same way on Mac and Ubuntu.
History
Date User Action Args
2021-03-11 07:20:37xxmsetrecipients: + xxm
2021-03-11 07:20:37xxmsetmessageid: <1615447237.87.0.642854040325.issue43471@roundup.psfhosted.org>
2021-03-11 07:20:37xxmlinkissue43471 messages
2021-03-11 07:20:37xxmcreate