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] | W www.icr.ac.uk | Twitter @ICR_London

Facebook www.facebook.com/theinstituteofcancerresearch

Making the discoveries that defeat cancer

ICR Logo


From: [email protected] <[email protected]>
Sent: 26 March 2025 03:39
To: [email protected] <[email protected]>
Subject: [phenixbb] can not launch phenix gui
 
CAUTION: This email originated from outside of the ICR. Do not click links or open attachments unless you recognize the sender's email address and know the content is safe.


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
_______________________________________________
phenixbb mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Unsubscribe: phenixbb-leave@%(host_name)s

The Institute of Cancer Research: Royal Cancer Hospital, a charitable Company Limited by Guarantee, Registered in England under Company No. 534147 with its Registered Office at 123 Old Brompton Road, London SW7 3RP.

This e-mail message is confidential and for use by the addressee only. If the message is received by anyone other than the addressee, please return the message to the sender by replying to it and then delete the message from your computer and network.