On Fri, Sep 06, 2019 at 03:40:18PM +0300, Dmitry Shachnev wrote: > That is because resource_stream() returns stream in binary mode, not text: > > https://setuptools.readthedocs.io/en/latest/pkg_resources.html#basic-resource-access > > Try adding .decode('utf-8'): > > fields = line.decode('utf-8').rstrip('\t|\n').split('\t|\t') > > > During handling of the above exception, another exception occurred: > > > > Traceback (most recent call last): > > File "/usr/lib/python3/dist-packages/microbegps/gui.py", line 1573, in run > > self.failed.emit('<b><font color="DarkRed">Error loading NCBI > > taxonomy!</font></b><br>Message: <i>'+e.message+'</i>') > > AttributeError: 'TypeError' object has no attribute 'message' > > Use str(e) instead of e.message.
Program starts now and I can use every menu item with exception of "File / Save". Then I get: $ LC_ALL=C MicrobeGPS libpng warning: iCCP: known incorrect sRGB profile libpng warning: iCCP: known incorrect sRGB profile libpng warning: iCCP: known incorrect sRGB profile Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged. QObject::connect: Cannot queue arguments of type 'QTextCursor' (Make sure 'QTextCursor' is registered using qRegisterMetaType().) Exception in thread Thread-1: Traceback (most recent call last): File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner self.run() File "/usr/lib/python3.5/threading.py", line 862, in run self._target(*self._args, **self._kwargs) File "/usr/lib/python3/dist-packages/microbegps/gui.py", line 1627, in savethisfile s_data = {'candidates':self.sgroups, AttributeError: 'GPSAnalyzer' object has no attribute 'sgroups' Thanks a lot for your help in any case Andreas. -- http://fam-tille.de