I have an application that is using the babel python package.
The app runs normal when using the plain python sources.

It fails when build with pyinstaller 2.1 on Mac OS Maverick.
Any help appriciated that guides me to resolving this issue !

The line that triggers the error looks like the following :
babel.numbers.parse_decimal("4.000,00","de")

 Failed to convert to decimal

Traceback (most recent call last):

File 
"./pyinstaller/build/Accounting/out00-PYZ.pyz/accounting.importer.base", 
line 99, in decimal_from_string

File "./pyinstaller/build/Accounting/out00-PYZ.pyz/babel.numbers", line 
299, in parse_decimal

File "./pyinstaller/build/Accounting/out00-PYZ.pyz/babel.numbers", line 
118, in get_group_symbol

File "./pyinstaller/build/Accounting/out00-PYZ.pyz/babel.core", line 530, 
in number_symbols

File "./pyinstaller/build/Accounting/out00-PYZ.pyz/babel.core", line 343, 
in _data

File "./pyinstaller/build/Accounting/out00-PYZ.pyz/babel.localedata", line 
94, in load

ImportError: No module named plural


Here is the output when bundling the app with pyinstaller :

( seems like some babel hooks are effective )


6 INFO: wrote /Users/manuel/workspace/accounting/Accounting.spec
17 WARNING: You are running 64-bit Python: created binaries will only work 
on Mac OS X 10.6+.
If you need 10.4-10.5 compatibility, run Python as a 32-bit binary with 
this command:

VERSIONER_PYTHON_PREFER_32_BIT=yes arch -i386 
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python

4024 INFO: UPX is not available.
4037 INFO: Processing hook hook-os
4090 INFO: Processing hook hook-time
4091 INFO: Processing hook hook-cPickle
4127 INFO: Processing hook hook-_sre
4188 INFO: Processing hook hook-cStringIO
4237 INFO: Processing hook hook-encodings
4245 INFO: Processing hook hook-codecs
4417 INFO: Extending PYTHONPATH with /Users/manuel/workspace/accounting
4417 INFO: checking Analysis
4430 INFO: building because 
/Users/manuel/workspace/accounting/accounting/importer/base.py changed
4430 INFO: running Analysis out00-Analysis.toc
4436 INFO: Analyzing 
/Users/manuel/bin/pyinstaller-2.1/PyInstaller/loader/_pyi_bootstrap.py
4442 INFO: Processing hook hook-os
4451 INFO: Processing hook hook-site
4460 INFO: Processing hook hook-encodings
4512 INFO: Processing hook hook-time
4513 INFO: Processing hook hook-cPickle
4552 INFO: Processing hook hook-_sre
4615 INFO: Processing hook hook-cStringIO
4673 INFO: Processing hook hook-codecs
4875 INFO: Processing hook hook-pydoc
4934 INFO: Processing hook hook-email
4961 INFO: Processing hook hook-httplib
4980 INFO: Processing hook hook-email.message
5124 INFO: Analyzing 
/Users/manuel/bin/pyinstaller-2.1/PyInstaller/loader/pyi_importers.py
5145 INFO: Analyzing 
/Users/manuel/bin/pyinstaller-2.1/PyInstaller/loader/pyi_archive.py
5165 INFO: Analyzing 
/Users/manuel/bin/pyinstaller-2.1/PyInstaller/loader/pyi_carchive.py
5185 INFO: Analyzing 
/Users/manuel/bin/pyinstaller-2.1/PyInstaller/loader/pyi_os_path.py
5187 INFO: Analyzing ./accounting/gui/main.py
5207 INFO: Processing hook hook-PyQt4
5207 INFO: Processing hook hook-PyQt4.QtCore
5261 INFO: Processing hook hook-PyQt4.QtGui
5461 INFO: Processing hook hook-PyQt4.QtWebKit
5467 INFO: Processing hook hook-PyQt4.QtNetwork
5504 INFO: Processing hook hook-jinja2
5642 INFO: Processing hook hook-parser
5644 INFO: Processing hook hook-distutils
5656 INFO: Processing hook hook-sysconfig
5678 INFO: Processing hook hook-xml
5701 INFO: Processing hook hook-xml.sax
5716 INFO: Processing hook hook-pyexpat
5768 INFO: Processing hook hook-lxml.etree
5841 INFO: Processing hook hook-babel
6025 INFO: Processing hook hook-pytz
6045 INFO: Hidden import 'jinja2.ext' has been found otherwise
6045 INFO: Hidden import 'codecs' has been found otherwise
6045 INFO: Hidden import 'encodings' has been found otherwise
6045 INFO: Looking for run-time hooks
6046 INFO: Analyzing rthook 
/Users/manuel/bin/pyinstaller-2.1/PyInstaller/loader/rthooks/pyi_rth_qt4plugins.py
6064 INFO: Analyzing rthook 
/Users/manuel/bin/pyinstaller-2.1/PyInstaller/loader/rthooks/pyi_rth_pkgres.py
6104 INFO: Analyzing rthook 
/Users/manuel/bin/pyinstaller-2.1/PyInstaller/loader/rthooks/pyi_rth_babel.py
6261 INFO: Using Python library 
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/Python
6290 INFO: ./pyinstaller/build/Accounting/out00-Analysis.toc no change!
6300 INFO: checking PYZ
6302 INFO: building because 
/Users/manuel/workspace/accounting/accounting/importer/base.pyc changed
6303 INFO: building PYZ (ZlibArchive) out00-PYZ.toc
7291 INFO: checking PKG
7291 INFO: building because ./pyinstaller/build/Accounting/out00-PYZ.pyz 
changed
7291 INFO: building PKG (CArchive) out00-PKG.pkg
7299 INFO: checking EXE
7300 INFO: rebuilding out00-EXE.toc because pkg is more recent
7300 INFO: building EXE from out00-EXE.toc
7301 INFO: Appending archive to EXE 
./pyinstaller/build/Accounting/Accounting
7305 INFO: checking COLLECT
WARNING: The output directory "./pyinstaller/dist/Accounting" and ALL ITS 
CONTENTS will be REMOVED! Continue? (y/n)y
9856 INFO: Removing dir ./pyinstaller/dist/Accounting
9925 INFO: building COLLECT out00-COLLECT.toc
10637 INFO: checking BUNDLE
WARNING: The output directory 
"/Users/manuel/workspace/accounting/./pyinstaller/dist/Accounting.app" and 
ALL ITS CONTENTS will be REMOVED! Continue? (y/n)y
13001 INFO: Removing dir 
/Users/manuel/workspace/accounting/./pyinstaller/dist/Accounting.app
13063 INFO: building BUNDLE out00-BUNDLE.toc


-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pyinstaller.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to