[issue43471] Fails to import bz2 on Ubuntu

2021-03-17 Thread Eric V. Smith


Eric V. Smith  added the comment:

I'm going to close this. @xmm: If you can provide more information showing that 
this is a bug in Python or its build process, please re-open this issue.

--
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43471] Fails to import bz2 on Ubuntu

2021-03-12 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

You are likely did not have headers for bz2 library installed. Read 
thoughtfully the output of ./configure and make.

See also https://devguide.python.org/setup/#install-dependencies .

--
nosy: +serhiy.storchaka
status: pending -> open

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43471] Fails to import bz2 on Ubuntu

2021-03-11 Thread Eric V. Smith


Change by Eric V. Smith :


--
status: open -> pending

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43471] Fails to import bz2 on Ubuntu

2021-03-10 Thread Eric V. Smith


Eric V. Smith  added the comment:

You're probably missing needed dependencies. For example, see 
https://stackoverflow.com/questions/12806122/missing-python-bz2-module

If you look at the output of make, you should be able to see that _bz2 wasn't 
built.

--
nosy: +eric.smith

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43471] Fails to import bz2 on Ubuntu

2021-03-10 Thread Xinmeng Xia


New submission from Xinmeng Xia :

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 
   exec(compile(mstr,'','exec'))
  File "", line 1, in 
   File "/home/xxm/Desktop/apifuzz/Python-3.9.2/Lib/bz2.py", line 18, 
in 
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.

--
components: Library (Lib)
messages: 388483
nosy: xxm
priority: normal
severity: normal
status: open
title: Fails to import bz2 on Ubuntu
type: behavior
versions: Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com