cherrypy: "ImportError: No module named jaraco.functools" raised in app frozen by py2exe

  • Windows 8.1 64bit
  • Python 2.7.15 32bit
  • py2exe 0.6.10a1
  • CherryPy 16.0.2
  • Cheroot 6.3.2.post0
  • tempora 1.13
  • jaraco.functools 1.20

“ImportError: No module named jaraco.functools” raised in my app frozen by py2exe.

D:\prj\test\dist_py2exe>test.exe
----------------------------------------
main : Unhandled error
Traceback (most recent call last):
...
  File "cherrypy\process\servers.pyo", line 126, in <module>
  File "zipextimporter.pyo", line 74, in load_module
  File "portend.pyo", line 18, in <module>
  File "zipextimporter.pyo", line 74, in load_module
  File "tempora\timing.pyo", line 12, in <module>
ImportError: No module named jaraco.functools

jaraco.functools seems the namespace package. This issue may be same to https://github.com/jaraco/jaraco.classes/issues/3

Is allowed the namespace package in CherryPy? https://github.com/cherrypy/cherrypy/issues/1673

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 20 (19 by maintainers)

Most upvoted comments

Perhaps for the short term, I can vendor the function

On second thought, there’s no value in that. Let’s focus on the long-term solution.