UnicodeEncodeError in Windows 10 Edu
Hi everyone. I've installed open source pymol, coot, and phenix on my Windows 10 laptop. Pymol, python, and coot works fine, but when I launched phenix, it didn't work I tried both 1.18 and 1.19 version point-and-click installers. So I executed phenix on cmd, and the following error occured: ****************************************************************************** C:\Program Files\Phenix\phenix-installer-1.18.2-3874-intel-windows-x86_64\build\bin>phenix Traceback (most recent call last): File "C:\Program Files\Phenix\phenix-installer-1.18.2-3874-intel-windows-x86_64\build\..\modules\phenix\wxgui2\command_line\main.py", line 23, in <module> run(sys.argv[1:]) File "C:\Program Files\Phenix\phenix-installer-1.18.2-3874-intel-windows-x86_64\build\..\modules\phenix\wxgui2\command_line\main.py", line 17, in run wxapp = App.PhenixApp(args) File "C:\Program Files\Phenix\phenix-installer-1.18.2-3874-intel-windows-x86_64\modules\phenix\wxGUI2\App.py", line 70, in __init__ wx.App.__init__(self, 0) File "C:\Program Files\Phenix\phenix-installer-1.18.2-3874-intel-windows-x86_64\conda_base\lib\site-packages\wx-3.0-msw\wx\_core.py", line 8628, in __init__ self._BootstrapApp() File "C:\Program Files\Phenix\phenix-installer-1.18.2-3874-intel-windows-x86_64\conda_base\lib\site-packages\wx-3.0-msw\wx\_core.py", line 8196, in _BootstrapApp return _core_.PyApp__BootstrapApp(*args, **kwargs) File "C:\Program Files\Phenix\phenix-installer-1.18.2-3874-intel-windows-x86_64\modules\phenix\wxGUI2\App.py", line 90, in OnInit self.setup_user_dir() File "C:\Program Files\Phenix\phenix-installer-1.18.2-3874-intel-windows-x86_64\modules\phenix\wxGUI2\App.py", line 364, in setup_user_dir os.environ['PHENIX_DATA'] = wxGUI2.PHENIX_USER_DIR File "C:\Program Files\Phenix\phenix-installer-1.18.2-3874-intel-windows-x86_64\conda_base\lib\os.py", line 422, in __setitem__ putenv(key, item) *UnicodeEncodeError: 'ascii' codec can't encode characters in position 9-11: ordinal not in range(128)* ****************************************************************************** I found out that unicode errors occur frequently and are easy to fix, but I can't figure out which file and which line I should manipulate. I'd appreciate any reply on this matter. Hyunwoo Kim
Hi, Sorry for the late reply! Can you try a user account with only ASCII characters (English letters and numbers)? It looks like the GUI is trying to read your home directory and running into issues. I committed a fix, but it will be available in the next build. I can send you a file to replace in your installation if you want. Thanks! -- Billy K. Poon Research Scientist, Molecular Biophysics and Integrated Bioimaging Lawrence Berkeley National Laboratory 1 Cyclotron Road, M/S 33R0345 Berkeley, CA 94720 Fax: (510) 486-5909 Web: https://phenix-online.org On Mon, Mar 29, 2021 at 10:22 PM 김현우[ 학부졸업 / 생명과학부 ] <[email protected]> wrote:
Hi everyone.
I've installed open source pymol, coot, and phenix on my Windows 10 laptop.
Pymol, python, and coot works fine, but when I launched phenix, it didn't work
I tried both 1.18 and 1.19 version point-and-click installers.
So I executed phenix on cmd, and the following error occured:
****************************************************************************** C:\Program Files\Phenix\phenix-installer-1.18.2-3874-intel-windows-x86_64\build\bin>phenix Traceback (most recent call last): File "C:\Program Files\Phenix\phenix-installer-1.18.2-3874-intel-windows-x86_64\build\..\modules\phenix\wxgui2\command_line\main.py", line 23, in <module> run(sys.argv[1:]) File "C:\Program Files\Phenix\phenix-installer-1.18.2-3874-intel-windows-x86_64\build\..\modules\phenix\wxgui2\command_line\main.py", line 17, in run wxapp = App.PhenixApp(args) File "C:\Program Files\Phenix\phenix-installer-1.18.2-3874-intel-windows-x86_64\modules\phenix\wxGUI2\App.py", line 70, in __init__ wx.App.__init__(self, 0) File "C:\Program Files\Phenix\phenix-installer-1.18.2-3874-intel-windows-x86_64\conda_base\lib\site-packages\wx-3.0-msw\wx\_core.py", line 8628, in __init__ self._BootstrapApp() File "C:\Program Files\Phenix\phenix-installer-1.18.2-3874-intel-windows-x86_64\conda_base\lib\site-packages\wx-3.0-msw\wx\_core.py", line 8196, in _BootstrapApp return _core_.PyApp__BootstrapApp(*args, **kwargs) File "C:\Program Files\Phenix\phenix-installer-1.18.2-3874-intel-windows-x86_64\modules\phenix\wxGUI2\App.py", line 90, in OnInit self.setup_user_dir() File "C:\Program Files\Phenix\phenix-installer-1.18.2-3874-intel-windows-x86_64\modules\phenix\wxGUI2\App.py", line 364, in setup_user_dir os.environ['PHENIX_DATA'] = wxGUI2.PHENIX_USER_DIR File "C:\Program Files\Phenix\phenix-installer-1.18.2-3874-intel-windows-x86_64\conda_base\lib\os.py", line 422, in __setitem__ putenv(key, item) *UnicodeEncodeError: 'ascii' codec can't encode characters in position 9-11: ordinal not in range(128)*
****************************************************************************** I found out that unicode errors occur frequently and are easy to fix, but I can't figure out which file and which line I should manipulate.
I'd appreciate any reply on this matter.
Hyunwoo Kim
_______________________________________________ phenixbb mailing list [email protected] http://phenix-online.org/mailman/listinfo/phenixbb Unsubscribe: [email protected]
participants (2)
-
Billy Poon
-
김현우[ 학부졸업 / 생명과학부 ]