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

NotImplementedError: resource_filename() only supported for .egg, not .zip #4

Open
scarygliders opened this issue Jun 9, 2016 · 1 comment

Comments

@scarygliders
Copy link

This error occurs after freezing an application using cx_freeze, which utilises PyUPC-EAN.

The full error message:

Traceback (most recent call last):
File "C:\Python34\lib\site-packages\cx_Freeze\initscripts\Console.py", line 27, in
exec(code, m.dict)
File "datastar.py", line 23, in
File "c:\python\32-bit\3.4\lib\importlib_bootstrap.py", line 2237, in _find_and_load
File "c:\python\32-bit\3.4\lib\importlib_bootstrap.py", line 2226, in _find_and_load_unlocked
File "c:\python\32-bit\3.4\lib\importlib_bootstrap.py", line 1191, in load_unlocked
File "c:\python\32-bit\3.4\lib\importlib_bootstrap.py", line 1161, in load_backward_compatible
File "C:\Python34\lib\site-packages\pyupc_ean-2.7.15-py3.4.egg\upcean__init
.py", line 40, in
import upcean.validate, upcean.convert, upcean.support, upcean.getprefix, upcean.oopfuncs;
File "c:\python\32-bit\3.4\lib\importlib_bootstrap.py", line 2237, in _find_and_load
File "c:\python\32-bit\3.4\lib\importlib_bootstrap.py", line 2226, in _find_and_load_unlocked
File "c:\python\32-bit\3.4\lib\importlib_bootstrap.py", line 1191, in load_unlocked
File "c:\python\32-bit\3.4\lib\importlib_bootstrap.py", line 1161, in load_backward_compatible
File "C:\Python34\lib\site-packages\pyupc_ean-2.7.15-py3.4.egg\upcean\oopfuncs__init
.py", line 19, in
from upcean.oopfuncs.oopfuncs import *;
File "c:\python\32-bit\3.4\lib\importlib_bootstrap.py", line 2237, in _find_and_load
File "c:\python\32-bit\3.4\lib\importlib_bootstrap.py", line 2226, in _find_and_load_unlocked
File "c:\python\32-bit\3.4\lib\importlib_bootstrap.py", line 1191, in load_unlocked
File "c:\python\32-bit\3.4\lib\importlib_bootstrap.py", line 1161, in load_backward_compatible
File "C:\Python34\lib\site-packages\pyupc_ean-2.7.15-py3.4.egg\upcean\oopfuncs\oopfuncs.py", line 20, in
import upcean.fonts, upcean.xml, upcean.barcodes;
File "c:\python\32-bit\3.4\lib\importlib_bootstrap.py", line 2237, in find_and_load
File "c:\python\32-bit\3.4\lib\importlib_bootstrap.py", line 2226, in find_and_load_unlocked
File "c:\python\32-bit\3.4\lib\importlib_bootstrap.py", line 1191, in load_unlocked
File "c:\python\32-bit\3.4\lib\importlib_bootstrap.py", line 1161, in load_backward_compatible
File "C:\Python34\lib\site-packages\pyupc_ean-2.7.15-py3.4.egg\upcean\fonts__init
.py", line 26, in
fontpathocra = pkg_resources.resource_filename(name, "OCRA.otf");
File "C:\Python34\lib\site-packages\pkg_resources__init
.py", line 1171, in resource_filename
self, resource_name
File "C:\Python34\lib\site-packages\pkg_resources__init.py", line 1872, in get_resource_filename
"resource_filename() only supported for .egg, not .zip"
NotImplementedError: resource_filename() only supported for .egg, not .zip

@HCLS-GitRepo
Copy link

what was the resolution for this issue? I am encountering he same, appreciate resolution info

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