Public bug reported:

We have observed that the following version of pymol crashes on startup
on Ubuntu 24.04.4 LTS:

python3-pymol/noble,now 2.5.0+dfsg-1build6 amd64 [installed,automatic]
  Molecular Graphics System (Python 3 modules)

The error and background are described here:

https://askubuntu.com/questions/1526267/pymol-not-starting-after-
downloading-using-linux-terminal-command

File "<frozen runpy>", line 189,> in _run_module_as_main   
File "<frozen runpy>", line 112, in> _get_module_details  
File "/usr/lib/python3/dist-packages/pymol/__init__.py", line 81, in> <module>> 
   
 from imp import find_module ModuleNotFoundError: No module named 'imp'

It seems that Python 3.12 does not contain the required imp package that
__init.py__ tries to import on line 81:

grep -A 2 -B 2 -n 'from imp' /usr/lib/python3/dist-packages/pymol/__init__.py
79-import _thread as thread
80-
81:from imp import find_module
82-import copy
83-import threading

The workaround described on the same page (i.e. installation of the
python3-zombie-imp package with sudo apt install python3-zombie-imp)
results in a working distribution, but it would be great if the import
command could be updated so that it no longer imports imp.

** Affects: pymol (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2162063

Title:
  pymol crashes on startup on Ubuntu 24.04.4

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pymol/+bug/2162063/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to