Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pure Python Module: flufl.i18n fails to load when installed as a pure python module. #182

Closed
Kovak opened this issue Dec 9, 2013 · 1 comment

Comments

@Kovak
Copy link
Contributor

Kovak commented Dec 9, 2013

Here's the adb logcat: confirms that flufl is packaged up in apk

12-08 19:50:46.064 29852 29865 I python  : extracting _applibs/flufl/
12-08 19:50:46.072 29852 29865 I python  : extracting _applibs/flufl/i18n/
12-08 19:50:46.080 29852 29865 I python  : extracting _applibs/flufl/i18n/_translator.pyo
12-08 19:50:46.080 29852 29865 I python  : extracting _applibs/flufl/i18n/_substitute.pyo
12-08 19:50:46.088 29852 29865 I python  : extracting _applibs/flufl/i18n/_registry.pyo
12-08 19:50:46.088 29852 29865 I python  : extracting _applibs/flufl/i18n/_application.pyo
12-08 19:50:46.088 29852 29865 I python  : extracting _applibs/flufl/i18n/conf.pyo
12-08 19:50:46.095 29852 29865 I python  : extracting _applibs/flufl/i18n/_expand.pyo
12-08 19:50:46.095 29852 29865 I python  : extracting _applibs/flufl/i18n/__init__.pyo
12-08 19:50:46.103 29852 29865 I python  : extracting _applibs/flufl/i18n/NEWS.rst
12-08 19:50:46.103 29852 29865 I python  : extracting _applibs/flufl/i18n/_strategy.pyo
12-08 19:50:46.103 29852 29865 I python  : extracting _applibs/flufl/i18n/README.rst
12-08 19:50:46.111 29852 29865 I python  : extracting _applibs/flufl/i18n/tests/
12-08 19:50:46.119 29852 29865 I python  : extracting _applibs/flufl/i18n/tests/test_translator.pyo
12-08 19:50:46.119 29852 29865 I python  : extracting _applibs/flufl/i18n/tests/test_documentation.pyo
12-08 19:50:46.119 29852 29865 I python  : extracting _applibs/flufl/i18n/tests/__init__.pyo
12-08 19:50:46.127 29852 29865 I python  : extracting _applibs/flufl/i18n/docs/
12-08 19:50:46.134 29852 29865 I python  : extracting _applibs/flufl/i18n/docs/expand.rst
12-08 19:50:46.134 29852 29865 I python  : extracting _applibs/flufl/i18n/docs/using.rst
12-08 19:50:46.134 29852 29865 I python  : extracting _applibs/flufl/i18n/docs/__init__.pyo
12-08 19:50:46.142 29852 29865 I python  : extracting _applibs/flufl/i18n/docs/strategies.rst
12-08 19:50:46.142 29852 29865 I python  : extracting _applibs/flufl/i18n/testing/
12-08 19:50:46.150 29852 29865 I python  : extracting _applibs/flufl/i18n/testing/__init__.pyo
12-08 19:50:46.150 29852 29865 I python  : extracting _applibs/flufl/i18n/testing/messages/
12-08 19:50:46.158 29852 29865 I python  : extracting _applibs/flufl/i18n/testing/messages/__init__.pyo
12-08 19:50:46.166 29852 29865 I python  : extracting _applibs/flufl/i18n/testing/messages/yy/
12-08 19:50:46.174 29852 29865 I python  : extracting _applibs/flufl/i18n/testing/messages/yy/LC_MESSAGES/
12-08 19:50:46.174 29852 29865 I python  : extracting _applibs/flufl/i18n/testing/messages/yy/LC_MESSAGES/flufl.mo
12-08 19:50:46.181 29852 29865 I python  : extracting _applibs/flufl/i18n/testing/messages/yy/LC_MESSAGES/flufl.po
12-08 19:50:46.181 29852 29865 I python  : extracting _applibs/flufl/i18n/testing/messages/xx/
12-08 19:50:46.189 29852 29865 I python  : extracting _applibs/flufl/i18n/testing/messages/xx/LC_MESSAGES/
12-08 19:50:46.197 29852 29865 I python  : extracting _applibs/flufl/i18n/testing/messages/xx/LC_MESSAGES/flufl.mo
12-08 19:50:46.197 29852 29865 I python  : extracting _applibs/flufl/i18n/testing/messages/xx/LC_MESSAGES/flufl.po
12-08 19:50:46.205 29852 29865 I python  : extracting _applibs/flufl.i18n-1.1.1-py2.7.egg-info/
12-08 19:50:46.205 29852 29865 I python  : extracting _applibs/flufl.i18n-1.1.1-py2.7.egg-info/installed-files.txt
12-08 19:50:46.213 29852 29865 I python  : extracting _applibs/flufl.i18n-1.1.1-py2.7.egg-info/top_level.txt
12-08 19:50:46.213 29852 29865 I python  : extracting _applibs/flufl.i18n-1.1.1-py2.7.egg-info/not-zip-safe
12-08 19:50:46.213 29852 29865 I python  : extracting _applibs/flufl.i18n-1.1.1-py2.7.egg-info/namespace_packages.txt
12-08 19:50:46.220 29852 29865 I python  : extracting _applibs/flufl.i18n-1.1.1-py2.7.egg-info/dependency_links.txt
12-08 19:50:46.220 29852 29865 I python  : extracting _applibs/flufl.i18n-1.1.1-py2.7.egg-info/PKG-INFO
12-08 19:50:46.228 29852 29865 I python  : extracting _applibs/flufl.i18n-1.1.1-py2.7.egg-info/SOURCES.txt

However, when app tries to import:

12-08 19:50:48.861 29852 29867 I python  :  Traceback (most recent call last):
12-08 19:50:48.861 29852 29867 I python  :    File "/home/ehealth/Documents/SMART2/smart2_app/.buildozer/android/app/main.py", line 13, in <module>
12-08 19:50:48.861 29852 29867 I python  :  ImportError: No module named flufl.i18n
12-08 19:50:48.939 29852 29867 I python  : Python for android ended.

flufl.i18n is able to be imported when installed through recipe, but not when using pure python module pip installer. Is there anywhere I should be looking for more information?

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@inclement
Copy link
Member

Closing as stale - not sure why it didn't work and maybe it still doesn't, but since p4a is completely different nowadays there's no reason to expect it would. We can open a new issue if others hit this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants