Interesting, the Debian 12-bookworm was also not a fresh install from scratch but upgraded from Debian 11-bullseye (for other reasons: proprietary Nvidia legacy graphics cards driver).

To me this looks like a Python 2.x problem?
https://stackoverflow.com/questions/21129020/how-to-fix-unicodedecodeerror-ascii-codec-cant-decode-byte

I hope the Phenix developers can help here?

Christoph

I've just been trying to fix the same problem on an Ubuntu 22.04 LTS machine.  This is quite old, and has been updated several times from Ubuntu 16.04. Newer machines with a fresh 22.04 installation don't seem to have the same problem.

I tried fiddling with locales, which didn't help.

As far as I can tell, it seems to be related to the display of citations on the splash screen.

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 August 2024 12:41
To: [email protected] <[email protected]>
Subject: [phenixbb] problem launching Phenix 1.21.1-5286 under Debian 12 Linux
 
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.


Hi,

I'm having problems running the current Phenix release (1.21.1-5286, but also earlier versions) on a fresh setup of Debian GNU/Linux 12 (bookworm, kernel  6.1.0-23-amd64). Phenix binaries have been installed on an NFS share ("hd1"), hostname is "phe". This is the error output:

-----------------------------

phe:~> source /hd1/SOFT64/phenix-1.21.1-5286/phenix_env.csh
phe:~> phenix
Gtk-Message: 13:29:49.433: Failed to load module "canberra-gtk-module"
Error in sys.excepthook:
Traceback (most recent call last):
  File "/nfs/hd1/SOFT64/phenix-1.21.1-5286/modules/phenix/wxGUI2/App.py", line 961, in _excepthook
    Error.show_exception_dialog(type, value, traceback)
  File "/nfs/hd1/SOFT64/phenix-1.21.1-5286/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 "/nfs/hd1/SOFT64/phenix-1.21.1-5286/build/../modules/phenix/wxGUI2/command_line/main.py", line 34, in <module>
    run(sys.argv[1:])
  File "/nfs/hd1/SOFT64/phenix-1.21.1-5286/build/../modules/phenix/wxGUI2/command_line/main.py", line 28, in run
    wxapp = App.PhenixApp(args)
  File "/nfs/hd1/SOFT64/phenix-1.21.1-5286/modules/phenix/wxGUI2/App.py", line 84, in __init__
    wx.App.__init__(self, 0)
  File "/nfs/hd1/SOFT64/phenix-1.21.1-5286/conda_base/lib/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py", line 8628, in __init__
    self._BootstrapApp()
  File "/nfs/hd1/SOFT64/phenix-1.21.1-5286/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 "/nfs/hd1/SOFT64/phenix-1.21.1-5286/modules/phenix/wxGUI2/App.py", line 118, in OnInit
    show_splash_screen(timeout=2000)
  File "/nfs/hd1/SOFT64/phenix-1.21.1-5286/modules/phenix/wxGUI2/App.py", line 1015, in show_splash_screen
    dlg,-1,citations.format_citation(citations.citations_db.get("phenix")))
  File "/nfs/hd1/SOFT64/phenix-1.21.1-5286/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)

--------------------
Phenix does not run.

The ""canberra-gtk-module" was missing first, but installing it did not prevent the error.
Any hint what could be wrong?

Thanks,
Christoph
_______________________________________________
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.