Attached is a small script and test .spec that demonstrate. If I run
fse.py as a script, I get 'UTF-8' as output. If I run it frozen, it
returns None.
--
Daniel Hyams
dhy...@gmail.com
Which version of PyInstaller are you using?
I can not reproduce this. Please check your environment is set up
correctly by adding these lines to your script:
import pprint, os
pprint.pprint(dict(os.environ))
--
Schönen Gruß - Regards
Hartmut Goebel
Dipl.-Informatiker (univ.), CISSP, CSSLP
Goebel Consult
Spezialist für IT-Sicherheit in komplexen Umgebungen
http://www.goebel-consult.de
Monatliche Kolumne: http://www.cissp-gefluester.de/
Goebel Consult mit Mitglied bei http://www.7-it.de
Thanks. I missed the more important part of the question: How does this
differ from your "normal" environment?
> 'LANG': 'en_US.UTF-8',
>
>
> 'LANGUAGE': 'en_US',
>
>
Not being a locacle export, I'm missing "LC_CTYPE" here, which is
related to encodings (see
<http://www.debian.org/doc/manuals/intro-i18n/ch-locale.en.html>.
dhyams@linux-573c:> diff SCRIPT_ENV FROZEN_ENV
36c36
< 'LD_LIBRARY_PATH':
'/usr/local/wx/2.9.1.1/lib:/usr/local/wx/2.8-ucs4/lib:/usr/local/wx/2.9.1.1/lib:/usr/local/wx/2.8-ucs4/lib:',
---
> 'LD_LIBRARY_PATH': 'dist/fse/:/usr/local/wx/2.9.1.1/lib:/usr/local/wx/2.8-ucs4/lib:/usr/local/wx/2.9.1.1/lib:/usr/local/wx/2.8-ucs4/lib:',
57a58
> 'PYTHONPATH': 'dist/fse',
86,87c87,89
< '_': '/usr/local/python/bin/python'}
---
> '_': 'dist/fse/fse.exe',
> '_MEIPASS2': 'dist/fse/'}
--
Daniel Hyams
dhy...@gmail.com
You may try to run
LC_ALL=$LANG ./fse
any maybe other LC_* variables. As I said: I'm not a locale guru.
If this fails, too, it may be something very tricky. Please try to debug
both python fse.py and ./fse via strace.
--
Schönen Gruß - Regards
Hartmut Goebel
Dipl.-Informatiker (univ.), CISSP, CSSLP
Goebel Consult
Spezialist für IT-Sicherheit in komplexen Umgebungen
http://www.goebel-consult.de/blog
--
Daniel Hyams
dhy...@gmail.com
You may try to runLC_ALL=$LANG ./fse
any maybe other LC_* variables. As I said: I'm not a locale guru.
If this fails, too, it may be something very tricky. Please try to debug
both python fse.py and ./fse via strace.
This looks as if you package does not include the encodings module.
Does your .spec file include CONFIGDIR/support/useUnicode.py? If not:
does your config.dat set unicode=1?
If useUnicode.py is included please follow the instructions at
<http://www.pyinstaller.org/wiki/HowtoReportBugs#Beforesubmittingareport:Makesureeverythingispackaged>
to track this down. Thanks.
--
Schönen Gruß - Regards
Hartmut Goebel
Dipl.-Informatiker (univ.), CISSP, CSSLP
Goebel Consult
Spezialist für IT-Sicherheit in komplexen Umgebungen
http://www.goebel-consult.de
Monatliche Kolumne: http://www.cissp-gefluester.de/
Goebel Consult ist Mitglied bei http://www.7-it.de