<div dir="ltr"><div dir="ltr">Hi Danilo,<div><br></div><div>Another user on Debian 9 had a similar issue. What is the output to "locale -a" and what is your LANG and LC_ALL environment variables set to? And in the <phenix installation>/build/bin/phenix file, there is a place where LC_ALL is set. What is LC_ALL set to in that file?</div><div><br></div><div>For unicode support, Phenix requires a language with UTF8 support (e.g. en_GB.UTF-8). During the installation, Phenix tries to determine the locale from the LC_ALL environment variable. By default, it gets set to en_US.UTF-8 if nothing can be found. However, on Debian 9, I got an error about en_GB even though en_US was available and set as the locale.</div><div><br></div><div>On my Debian 9.6 virtual machine, I have en_US.UTF-8 and en_GB.UTF-8 installed and my phenix installation is using en_US.UTF-8. If you want to update the LC_ALL variable in the scripts in <phenix installation>/build/bin,</div><div><br></div><div>1) Set LC_ALL to the language you want with UTF-8 support (e.g. "export LC_ALL=en_US.UTF-8")</div><div>2) Run the "config_modules.sh" file in the <phenix installation>/build directory to change all the scripts to use the new locale.</div><div><br clear="all"><div><div dir="ltr" class="gmail-m_2947969452341261777gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><div>--</div><div><span style="font-size:12.8000001907349px">Billy K. Poon</span><br></div></div><div>Research Scientist, Molecular Biophysics and Integrated Bioimaging</div><div>Lawrence Berkeley National Laboratory</div><div>1 Cyclotron Road, M/S 33R0345</div><div>Berkeley, CA 94720</div><div>Tel: (510) 486-5709</div><div>Fax: (510) 486-5909</div><div>Web: <a href="https://phenix-online.org" target="_blank">https://phenix-online.org</a></div></div></div></div></div></div></div></div></div></div></div></div></div></div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Jan 8, 2019 at 7:47 AM Danilo Belviso <<a href="mailto:danilo.belviso@ic.cnr.it" target="_blank">danilo.belviso@ic.cnr.it</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">Dear Rob,<br>
<br>
Thanks for your suggestions. I have just tried but it doesn't work, <br>
unfortunately.<br>
<br>
Thanks again.<br>
<br>
Regards,<br>
<br>
Danilo<br>
<br>
Il 2019-01-08 15:43 Robert Oeffner ha scritto:<br>
> Dear Danilo,<br>
> <br>
> <br>
> I encountered the same problem with the locale when installing Phenix<br>
> on Ubuntu on Windows 10. The solution was to do from a bash shell:<br>
> <br>
> <br>
> *cd /usr/share/locale*<br>
> <br>
> **<br>
> <br>
> *sudo locale-gen "en_GB.UTF-8"*<br>
> <br>
> **<br>
> <br>
> *sudo dpkg-reconfigure locales*<br>
> <br>
> I'm no linux expert so I wouldn't know if this procedure is general<br>
> enough that it would work on your system or if it would also solve the<br>
> other issues you mention before.<br>
> <br>
> Regards,<br>
> <br>
> Rob<br>
> <br>
> <br>
> <br>
> On 08/01/2019 14:32, Danilo Belviso wrote:<br>
>> Dear all,<br>
>> <br>
>> I am intalling phenix on my Debian 9.6.<br>
>> <br>
>> My arch is adm64 thus I downloaded the phenix version named Kernel 2.6 <br>
>> (64-bit; CentOS 6).<br>
>> <br>
>> The installation procedure has been performed as suggested by the <br>
>> guide and no problems were obtained. However, by running phenix (after <br>
>> source phenix_env.sh) I get the follow output with several errors:<br>
>> <br>
>> (main.py:14196): GLib-GIO-CRITICAL **: g_loadable_icon_load: assertion <br>
>> 'G_IS_LOADABLE_ICON (icon)' failed<br>
>> (main.py:14196): Gtk-WARNING **: Error loading theme icon 'gtk-ok' for <br>
>> stock: Failed to load icon<br>
>> (main.py:14196): Gtk-CRITICAL **: render_fallback_image: assertion <br>
>> 'pixbuf != NULL' failed<br>
>> (main.py:14196): GLib-GObject-CRITICAL **: g_object_ref: assertion <br>
>> 'G_IS_OBJECT (object)' failed<br>
>> (main.py:14196): GLib-GIO-CRITICAL **: g_loadable_icon_load: assertion <br>
>> 'G_IS_LOADABLE_ICON (icon)' failed<br>
>> (main.py:14196): Gtk-WARNING **: Error loading theme icon 'gtk-ok' for <br>
>> stock: Failed to load icon<br>
>> (main.py:14196): Gtk-CRITICAL **: render_fallback_image: assertion <br>
>> 'pixbuf != NULL' failed<br>
>> (main.py:14196): GLib-GObject-CRITICAL **: g_object_ref: assertion <br>
>> 'G_IS_OBJECT (object)' failed<br>
>> (main.py:14196): GLib-GIO-CRITICAL **: g_loadable_icon_load: assertion <br>
>> 'G_IS_LOADABLE_ICON (icon)' failed<br>
>> (main.py:14196): Gtk-WARNING **: Error loading theme icon 'gtk-ok' for <br>
>> stock: Failed to load icon<br>
>> (main.py:14196): Gtk-CRITICAL **: render_fallback_image: assertion <br>
>> 'pixbuf != NULL' failed<br>
>> (main.py:14196): GLib-GObject-CRITICAL **: g_object_ref: assertion <br>
>> 'G_IS_OBJECT (object)' failed<br>
>> (main.py:14196): GLib-GIO-CRITICAL **: g_loadable_icon_load: assertion <br>
>> 'G_IS_LOADABLE_ICON (icon)' failed<br>
>> (main.py:14196): Gtk-WARNING **: Error loading theme icon 'gtk-ok' for <br>
>> stock: Failed to load icon<br>
>> (main.py:14196): Gtk-CRITICAL **: render_fallback_image: assertion <br>
>> 'pixbuf != NULL' failed<br>
>> (main.py:14196): GLib-GObject-CRITICAL **: g_object_ref: assertion <br>
>> 'G_IS_OBJECT (object)' failed<br>
>> (main.py:14196): GLib-GIO-CRITICAL **: g_loadable_icon_load: assertion <br>
>> 'G_IS_LOADABLE_ICON (icon)' failed<br>
>> (main.py:14196): Gtk-WARNING **: Error loading theme icon 'gtk-ok' for <br>
>> stock: Failed to load icon<br>
>> (main.py:14196): Gtk-CRITICAL **: render_fallback_image: assertion <br>
>> 'pixbuf != NULL' failed<br>
>> (main.py:14196): GLib-GObject-CRITICAL **: g_object_ref: assertion <br>
>> 'G_IS_OBJECT (object)' failed<br>
>> (main.py:14196): GLib-GIO-CRITICAL **: g_loadable_icon_load: assertion <br>
>> 'G_IS_LOADABLE_ICON (icon)' failed<br>
>> (main.py:14196): Gtk-WARNING **: Error loading theme icon 'gtk-ok' for <br>
>> stock: Failed to load icon<br>
>> (main.py:14196): Gtk-CRITICAL **: render_fallback_image: assertion <br>
>> 'pixbuf != NULL' failed<br>
>> (main.py:14196): GLib-GObject-CRITICAL **: g_object_ref: assertion <br>
>> 'G_IS_OBJECT (object)' failed<br>
>> (main.py:14196): GLib-GIO-CRITICAL **: g_loadable_icon_load: assertion <br>
>> 'G_IS_LOADABLE_ICON (icon)' failed<br>
>> (main.py:14196): Gtk-WARNING **: Error loading theme icon 'gtk-ok' for <br>
>> stock: Failed to load icon<br>
>> (main.py:14196): Gtk-CRITICAL **: render_fallback_image: assertion <br>
>> 'pixbuf != NULL' failed<br>
>> (main.py:14196): GLib-GObject-CRITICAL **: g_object_ref: assertion <br>
>> 'G_IS_OBJECT (object)' failed<br>
>> (main.py:14196): GLib-GIO-CRITICAL **: g_loadable_icon_load: assertion <br>
>> 'G_IS_LOADABLE_ICON (icon)' failed<br>
>> (main.py:14196): Gtk-WARNING **: Error loading theme icon 'gtk-ok' for <br>
>> stock: Failed to load icon<br>
>> (main.py:14196): Gtk-CRITICAL **: render_fallback_image: assertion <br>
>> 'pixbuf != NULL' failed<br>
>> (main.py:14196): GLib-GObject-CRITICAL **: g_object_ref: assertion <br>
>> 'G_IS_OBJECT (object)' failed<br>
>> (main.py:14196): GLib-GObject-CRITICAL **: g_object_unref: assertion <br>
>> 'G_IS_OBJECT (object)' failed<br>
>> (main.py:14196): GLib-GIO-CRITICAL **: g_loadable_icon_load: assertion <br>
>> 'G_IS_LOADABLE_ICON (icon)' failed<br>
>> (main.py:14196): Gtk-WARNING **: Error loading theme icon 'gtk-ok' for <br>
>> stock: Failed to load icon<br>
>> (main.py:14196): Gtk-CRITICAL **: render_fallback_image: assertion <br>
>> 'pixbuf != NULL' failed<br>
>> (main.py:14196): GLib-GObject-CRITICAL **: g_object_ref: assertion <br>
>> 'G_IS_OBJECT (object)' failed<br>
>> (main.py:14196): GLib-GObject-CRITICAL **: g_object_unref: assertion <br>
>> 'G_IS_OBJECT (object)' failed<br>
>> (main.py:14196): GLib-GIO-CRITICAL **: g_loadable_icon_load: assertion <br>
>> 'G_IS_LOADABLE_ICON (icon)' failed<br>
>> (main.py:14196): Gtk-WARNING **: Error loading theme icon 'gtk-ok' for <br>
>> stock: Failed to load icon<br>
>> (main.py:14196): Gtk-CRITICAL **: render_fallback_image: assertion <br>
>> 'pixbuf != NULL' failed<br>
>> (main.py:14196): GLib-GObject-CRITICAL **: g_object_ref: assertion <br>
>> 'G_IS_OBJECT (object)' failed<br>
>> (main.py:14196): GLib-GObject-CRITICAL **: g_object_unref: assertion <br>
>> 'G_IS_OBJECT (object)' failed<br>
>> (main.py:14196): GLib-GIO-CRITICAL **: g_loadable_icon_load: assertion <br>
>> 'G_IS_LOADABLE_ICON (icon)' failed<br>
>> (main.py:14196): Gtk-WARNING **: Error loading theme icon 'gtk-ok' for <br>
>> stock: Failed to load icon<br>
>> (main.py:14196): Gtk-CRITICAL **: render_fallback_image: assertion <br>
>> 'pixbuf != NULL' failed<br>
>> (main.py:14196): GLib-GObject-CRITICAL **: g_object_ref: assertion <br>
>> 'G_IS_OBJECT (object)' failed<br>
>> (main.py:14196): GLib-GObject-CRITICAL **: g_object_unref: assertion <br>
>> 'G_IS_OBJECT (object)' failed<br>
>> <br>
>> Error in sys.excepthook:<br>
>> Traceback (most recent call last):<br>
>> File <br>
>> "/home/bbdanilo/Programmi/phenix-1.14-3260/modules/phenix/wxGUI2/App.py", <br>
>> line 886, in _excepthook<br>
>> Error.show_exception_dialog(type, value, traceback)<br>
>> File <br>
>> "/home/bbdanilo/Programmi/phenix-1.14-3260/modules/phenix/wxGUI2/Error.py", <br>
>> line 75, in show_exception_dialog<br>
>> if (app.bug_timer.IsRunning() is False):<br>
>> AttributeError: 'PhenixApp' object has no attribute 'bug_timer'<br>
>> <br>
>> Original exception was:<br>
>> Traceback (most recent call last):<br>
>> File <br>
>> "/home/bbdanilo/Programmi/phenix-1.14-3260/build/../modules/phenix/wxGUI2/command_line/main.py", <br>
>> line 23, in <module><br>
>> run(sys.argv[1:])<br>
>> File <br>
>> "/home/bbdanilo/Programmi/phenix-1.14-3260/build/../modules/phenix/wxGUI2/command_line/main.py", <br>
>> line 17, in run<br>
>> wxapp = App.PhenixApp(args)<br>
>> File <br>
>> "/home/bbdanilo/Programmi/phenix-1.14-3260/modules/phenix/wxGUI2/App.py", <br>
>> line 70, in __init__<br>
>> wx.App.__init__(self, 0)<br>
>> File <br>
>> "/home/bbdanilo/Programmi/phenix-1.14-3260/base/lib/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py", <br>
>> line 8628, in __init__<br>
>> self._BootstrapApp()<br>
>> File <br>
>> "/home/bbdanilo/Programmi/phenix-1.14-3260/base/lib/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py", <br>
>> line 8196, in _BootstrapApp<br>
>> return _core_.PyApp__BootstrapApp(*args, **kwargs)<br>
>> File <br>
>> "/home/bbdanilo/Programmi/phenix-1.14-3260/modules/phenix/wxGUI2/App.py", <br>
>> line 116, in OnInit<br>
>> self.start_gui()<br>
>> File <br>
>> "/home/bbdanilo/Programmi/phenix-1.14-3260/modules/phenix/wxGUI2/App.py", <br>
>> line 144, in start_gui<br>
>> callback_on_import=self.show_message)<br>
>> File <br>
>> "/home/bbdanilo/Programmi/phenix-1.14-3260/modules/phenix/wxGUI2/Tracking.py", <br>
>> line 280, in start_tracking<br>
>> project_class="wxGUI2.Tracking.phenix_project_database", **kwds)<br>
>> File <br>
>> "/home/bbdanilo/Programmi/phenix-1.14-3260/modules/phenix/phenix/tracking/__init__.py", <br>
>> line 19, in start_tracking<br>
>> callback_on_import=callback_on_import)<br>
>> File <br>
>> "/home/bbdanilo/Programmi/phenix-1.14-3260/modules/phenix/wxGUI2/Tracking.py", <br>
>> line 117, in __init__<br>
>> super(phenix_project_database, self).__init__(*args, **kwds)<br>
>> File <br>
>> "/home/bbdanilo/Programmi/phenix-1.14-3260/modules/phenix/phenix/tracking/project_db.py", <br>
>> line 39, in __init__<br>
>> self.choose_project(try_current_dir=True)<br>
>> File <br>
>> "/home/bbdanilo/Programmi/phenix-1.14-3260/modules/phenix/phenix/tracking/project_db.py", <br>
>> line 339, in choose_project<br>
>> project_info = self.create_first_project()<br>
>> File <br>
>> "/home/bbdanilo/Programmi/phenix-1.14-3260/modules/phenix/wxGUI2/Tracking.py", <br>
>> line 124, in create_first_project<br>
>> from wxGUI2.Home import Projects<br>
>> File <br>
>> "/home/bbdanilo/Programmi/phenix-1.14-3260/modules/phenix/wxGUI2/Home/Projects.py", <br>
>> line 3, in <module><br>
>> from wxGUI2 import Base, Controls, PhilLayout, Windows, utils, <br>
>> Buttons<br>
>> File <br>
>> "/home/bbdanilo/Programmi/phenix-1.14-3260/modules/phenix/wxGUI2/PhilLayout.py", <br>
>> line 5, in <module><br>
>> from wxGUI2 import Base, Controls, Windows, utils, PhilInterface, <br>
>> FileDisplay<br>
>> File <br>
>> "/home/bbdanilo/Programmi/phenix-1.14-3260/modules/phenix/wxGUI2/FileDisplay.py", <br>
>> line 5, in <module><br>
>> import wxtbx.info_panels<br>
>> File <br>
>> "/home/bbdanilo/Programmi/phenix-1.14-3260/modules/cctbx_project/wxtbx/info_panels.py", <br>
>> line 5, in <module><br>
>> import wxtbx.plots<br>
>> File <br>
>> "/home/bbdanilo/Programmi/phenix-1.14-3260/modules/cctbx_project/wxtbx/plots/__init__.py", <br>
>> line 21, in <module><br>
>> locale.setlocale(locale.LC_ALL, '')<br>
>> File <br>
>> "/home/bbdanilo/Programmi/phenix-1.14-3260/base/lib/python2.7/locale.py", <br>
>> line 581, in setlocale<br>
>> return _setlocale(category, locale)<br>
>> locale.Error: unsupported locale setting<br>
>> <br>
>> <br>
>> <br>
>> Phenix starts by opening a window that states "locale 'en_GB' cannot <br>
>> be set" and abruptly closes so that I cannot use it.<br>
>> <br>
>> Do you have any suggestions to overcome such problems?<br>
>> <br>
>> I tried with Kernel 2.6 (64-bit; CentOS 5) and the 32-bit version too <br>
>> and the result is the same.<br>
>> <br>
>> Thanks in advance for your suggestions.<br>
>> <br>
>> Danilo<br>
>> _______________________________________________<br>
>> phenixbb mailing list<br>
>> <a href="mailto:phenixbb@phenix-online.org" target="_blank">phenixbb@phenix-online.org</a><br>
>> <a href="http://phenix-online.org/mailman/listinfo/phenixbb" rel="noreferrer" target="_blank">http://phenix-online.org/mailman/listinfo/phenixbb</a><br>
>> Unsubscribe: <a href="mailto:phenixbb-leave@phenix-online.org" target="_blank">phenixbb-leave@phenix-online.org</a><br>
_______________________________________________<br>
phenixbb mailing list<br>
<a href="mailto:phenixbb@phenix-online.org" target="_blank">phenixbb@phenix-online.org</a><br>
<a href="http://phenix-online.org/mailman/listinfo/phenixbb" rel="noreferrer" target="_blank">http://phenix-online.org/mailman/listinfo/phenixbb</a><br>
Unsubscribe: <a href="mailto:phenixbb-leave@phenix-online.org" target="_blank">phenixbb-leave@phenix-online.org</a></blockquote></div>