Intel® Distribution for Python*
Engage in discussions with community peers related to Python* applications and core computational packages.
424 Discussions

SLES15SP2 installer completes but python is not working properly

carlosfu
Employee
1,467 Views

Hello,

I installed intelpython on sles15sp2 and the installer completes without complaints. In general python works but I ran into an issue.

When I enter and exit the interpeter, I get a core dump:

 

Python 3.9.7 (default, Oct 27 2021, 01:23:21)
[GCC 9.3.0] :: Intel Corporation on linux
Type "help", "copyright", "credits" or "license" for more information.
Intel(R) Distribution for Python is brought to you by Intel Corporation.
Please check out: https://software.intel.com/en-us/python-distribution
>>> exit()
*** Error in `python3': munmap_chunk(): invalid pointer: 0x00007ffff7f6d1f0 ***
Aborted (core dumped)

 

Also I can't use this library  xml.etree.ElementTree that is part of the python standard library.

Python 3.9.7 (default, Oct 27 2021, 01:23:21)
[GCC 9.3.0] :: Intel Corporation on linux
Type "help", "copyright", "credits" or "license" for more information.
Intel(R) Distribution for Python is brought to you by Intel Corporation.
Please check out: https://software.intel.com/en-us/python-distribution
>>> import xml.etree.ElementTree
*** Error in `python3': double free or corruption (out): 0x00007ffff7eb69f0 ***
Aborted (core dumped)

0 Kudos
1 Solution
Ying_H_Intel
Employee
1,238 Views

Hi Carlos,

 

We investigated the problem and found one relevant bug: https://bugs.python.org/issue39367 in python community Seems like 3rd party readline can cause issues like these, which is why built-in readline is strongly encouraged to be used.

 

But on the other hands, as legal reasons, we can't compile our cpython with readline , so in Intel cpython doens't have a built-in readline, so things will just go wrong.

 

Nikhila mentioned the problem resolved by Ubuntu, could you or Nikhila please give more details, like the install steps, how the behaviors under Ubuntu?

Under SLES system, I may recommend to use 'conda install readline && python -c "import readline"' , please let us know if it works.

 

Thanks

Ying H.

Intel AI TCE


View solution in original post

0 Kudos
6 Replies
carlosfu
Employee
1,458 Views

Seems it only happens when install the readline package.

When I enter the interpreter with a clean install and import the package, it doesn't break.

If I install the missing readline package, it breaks the other import.

Got the lead from: 

No module named 'readline' when starting "python" - Intel Communities

0 Kudos
Rahila_T_Intel
Moderator
1,435 Views

 Hi,

 

 Thank you for posting in Intel Communities.

 

We are investigating your issue at our end.

 

 Thanks 



0 Kudos
Rahila_T_Intel
Moderator
1,381 Views

Hi,


We are connecting with you internally.


Thanks


0 Kudos
Rahila_T_Intel
Moderator
1,328 Views

Hi,


Based on the internal discussion, we could observe issue in SLES15SP2 and SLES12SP5. We are working on this internally and will get back to you.


Thanks


0 Kudos
Ying_H_Intel
Employee
1,239 Views

Hi Carlos,

 

We investigated the problem and found one relevant bug: https://bugs.python.org/issue39367 in python community Seems like 3rd party readline can cause issues like these, which is why built-in readline is strongly encouraged to be used.

 

But on the other hands, as legal reasons, we can't compile our cpython with readline , so in Intel cpython doens't have a built-in readline, so things will just go wrong.

 

Nikhila mentioned the problem resolved by Ubuntu, could you or Nikhila please give more details, like the install steps, how the behaviors under Ubuntu?

Under SLES system, I may recommend to use 'conda install readline && python -c "import readline"' , please let us know if it works.

 

Thanks

Ying H.

Intel AI TCE


0 Kudos
carlosfu
Employee
1,231 Views

Hello Ying,

We tried doing the conda method as well and it did not work.

Rahila do you have the details?

Thanks,

Carlos

0 Kudos
Reply