can not launch phenix gui

Dears, I am using Ubuntu 24.04 and have successfully installed phenix-1.21.2-5419. However, when I attempt to launch the GUI by running the phenix command, it fails with the following error: Error in sys.excepthook: Traceback (most recent call last): File "/usr/local/phenix-1.21.2-5419/modules/phenix/wxGUI2/App.py", line 961, in _excepthook Error.show_exception_dialog(type, value, traceback) File "/usr/local/phenix-1.21.2-5419/modules/phenix/wxGUI2/Error.py", line 76, in show_exception_dialog if (app.bug_timer.IsRunning() is False): AttributeError: 'PhenixApp' object has no attribute 'bug_timer' Original exception was: Traceback (most recent call last): File "/usr/local/phenix-1.21.2-5419/build/../modules/phenix/wxGUI2/command_line/main.py", line 34, in <module> run(sys.argv[1:]) File "/usr/local/phenix-1.21.2-5419/build/../modules/phenix/wxGUI2/command_line/main.py", line 28, in run wxapp = App.PhenixApp(args) File "/usr/local/phenix-1.21.2-5419/modules/phenix/wxGUI2/App.py", line 84, in __init__ wx.App.__init__(self, 0) File "/usr/local/phenix-1.21.2-5419/conda_base/lib/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py", line 8628, in __init__ self._BootstrapApp() File "/usr/local/phenix-1.21.2-5419/conda_base/lib/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py", line 8196, in _BootstrapApp return _core_.PyApp__BootstrapApp(*args, **kwargs) File "/usr/local/phenix-1.21.2-5419/modules/phenix/wxGUI2/App.py", line 118, in OnInit show_splash_screen(timeout=2000) File "/usr/local/phenix-1.21.2-5419/modules/phenix/wxGUI2/App.py", line 1015, in show_splash_screen dlg,-1,citations.format_citation(citations.citations_db.get("phenix"))) File "/usr/local/phenix-1.21.2-5419/conda_base/lib/python2.7/site-packages/wx-3.0-gtk2/wx/_controls.py", line 997, in __init__ _controls_.StaticText_swiginit(self,_controls_.new_StaticText(*args, **kwargs)) UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 40: ordinal not in range(128) Could you kindly advise on how to resolve this issue? I would greatly appreciate your assistance. Looking forward to your reply. Best regards Li

I've seen this before on Ubuntu; infuriatingly it happened on some machines and not others, presumably because they had different libraries installed
It's caused by an accent in the citations for Phenix on the splash screen that pops up not being interpreted properly.
For most of my machines, setting the locale worked. In the end I got frustrated and edited the accented characters out of the citation in the source code (modules/cctbx_project/libtbx/citations.params). My apologies to G Bunkóczi, who is now lacking an accent in his name on my machines. The commands to set/update the locale are:
sudo locale-gen en_US.utf8
sudo locale-gen en_GB.ut8
sudo update-locale
If you don't want your machine to be US/GB English substituting other locales might work but I haven't tested it.
Having said all that, the Phenix developers probably have a much more elegant solution.
Regards,
Chris
--
Chris Richardson | Scientific Computing - Division of Structural Biology
The Institute of Cancer Research | 237 Fulham Road, London SW3 6JB
T +442071535445 | E [email protected]mailto:[email protected] | W www.icr.ac.ukhttp://www.icr.ac.uk/ | Twitter @ICR_Londonhttps://twitter.com/ICR_London
Facebook www.facebook.com/theinstituteofcancerresearchhttp://www.facebook.com/theinstituteofcancerresearch
Making the discoveries that defeat cancer
[ICR Logo]http://www.icr.ac.uk/
________________________________
From: [email protected]

Hi Chris, Thanks to your guidance, I managed to get 'phenix gui' working! I really appreciate your help! Best regards Li
participants (2)
-
Chris Richardson
-
lzhlizehou@outlook.com