Skip to content

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

@scarygliders

Description

@scarygliders

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions