I made a script with Python 3.6 and I´m trying to convert it to an .exe. I already install everything I need, but Im showing a weird error. Im using python-docx, but it does not say anything about it in the official supported packages documentation. I just want to know whats wrong and how to fix it. This is the error.
Sorry if it is a bit long. The script consist of a main file and several others, is to long to post here and also Im using threading.
C:\Users\barrerakj\Desktop\Jarvis>pyinstaller.exe busqueda.py 180
INFO: PyInstaller: 3.2.1 180 INFO: Python: 3.6.1 181 INFO: Platform:
Windows-7-6.1.7601-SP1 182 INFO: wrote
C:\Users\barrerakj\Desktop\Jarvis\busqueda.spec 185 INFO: UPX is not
available. 189 INFO: Extending PYTHONPATH with paths
['C:\Users\barrerakj\Desktop\Jarvis',
'C:\Users\barrerakj\Desktop\Jarvis'] 189 INFO: checking Analysis
189 INFO: Building Analysis because out00-Analysis.toc is non existent
190 INFO: Initializing module dependency graph... 195 INFO:
Initializing module graph hooks... 199 INFO: Analyzing
base_library.zip ... Traceback (most recent call last): File
"C:\Users\barrerakj\AppData\Local\Programs\Python\Python36-32\Scripts\pyi
nstaller-script.py", line 11, in
load_entry_point('PyInstaller==3.2.1', 'console_scripts', 'pyinstaller')() File
"C:\Users\barrerakj\AppData\Local\Programs\Python\Python36-32\lib\site-pa
ckages\pyinstaller-3.2.1-py3.6.egg\PyInstaller__main__.py", line 90,
in run
run_build(pyi_config, spec_file, **vars(args)) File "C:\Users\barrerakj\AppData\Local\Programs\Python\Python36-32\lib\site-pa
ckages\pyinstaller-3.2.1-py3.6.egg\PyInstaller__main__.py", line 46,
in run_bui ld
PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs) File "C:\Users\barrerakj\AppData\Local\Programs\Python\Python36-32\lib\site-pa
ckages\pyinstaller-3.2.1-py3.6.egg\PyInstaller\building\build_main.py",
line 788 , in main
build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build' )) File
"C:\Users\barrerakj\AppData\Local\Programs\Python\Python36-32\lib\site-pa
ckages\pyinstaller-3.2.1-py3.6.egg\PyInstaller\building\build_main.py",
line 734 , in build
exec(text, spec_namespace) File "", line 16, in File
"C:\Users\barrerakj\AppData\Local\Programs\Python\Python36-32\lib\site-pa
ckages\pyinstaller-3.2.1-py3.6.egg\PyInstaller\building\build_main.py",
line 212 , in init
self.postinit() File "C:\Users\barrerakj\AppData\Local\Programs\Python\Python36-32\lib\site-pa
ckages\pyinstaller-3.2.1-py3.6.egg\PyInstaller\building\datastruct.py",
line 161 , in postinit
self.assemble() File "C:\Users\barrerakj\AppData\Local\Programs\Python\Python36-32\lib\site-pa
ckages\pyinstaller-3.2.1-py3.6.egg\PyInstaller\building\build_main.py",
line 317 , in assemble
excludes=self.excludes, user_hook_dirs=self.hookspath) File "C:\Users\barrerakj\AppData\Local\Programs\Python\Python36-32\lib\site-pa
ckages\pyinstaller-3.2.1-py3.6.egg\PyInstaller\depend\analysis.py",
line 560, in initialize_modgraph
graph.import_hook(m) File "C:\Users\barrerakj\AppData\Local\Programs\Python\Python36-32\lib\site-pa
ckages\pyinstaller-3.2.1-py3.6.egg\PyInstaller\lib\modulegraph\modulegraph.py",
line 1509, in import_hook
source_package, target_module_partname, level) File "C:\Users\barrerakj\AppData\Local\Programs\Python\Python36-32\lib\site-pa
ckages\pyinstaller-3.2.1-py3.6.egg\PyInstaller\lib\modulegraph\modulegraph.py",
line 1661, in _find_head_package
target_module_headname, target_package_name, source_package) File
"C:\Users\barrerakj\AppData\Local\Programs\Python\Python36-32\lib\site-pa
ckages\pyinstaller-3.2.1-py3.6.egg\PyInstaller\depend\analysis.py",
line 209, in _safe_import_module
module_basename, module_name, parent_package) File "C:\Users\barrerakj\AppData\Local\Programs\Python\Python36-32\lib\site-pa
ckages\pyinstaller-3.2.1-py3.6.egg\PyInstaller\lib\modulegraph\modulegraph.py",
line 2077, in _safe_import_module
module_name, file_handle, pathname, metadata) File "C:\Users\barrerakj\AppData\Local\Programs\Python\Python36-32\lib\site-pa
ckages\pyinstaller-3.2.1-py3.6.egg\PyInstaller\lib\modulegraph\modulegraph.py",
line 2115, in _load_module
m = self._load_package(fqname, pathname, packagepath) File "C:\Users\barrerakj\AppData\Local\Programs\Python\Python36-32\lib\site-pa
ckages\pyinstaller-3.2.1-py3.6.egg\PyInstaller\lib\modulegraph\modulegraph.py",
line 2951, in _load_package
self._load_module(fqname, fp, buf, stuff) File "C:\Users\barrerakj\AppData\Local\Programs\Python\Python36-32\lib\site-pa
ckages\pyinstaller-3.2.1-py3.6.egg\PyInstaller\lib\modulegraph\modulegraph.py",
line 2167, in _load_module
self._scan_code(m, co, co_ast) File "C:\Users\barrerakj\AppData\Local\Programs\Python\Python36-32\lib\site-pa
ckages\pyinstaller-3.2.1-py3.6.egg\PyInstaller\lib\modulegraph\modulegraph.py",
line 2585, in _scan_code
module, module_code_object, is_scanning_imports=False) File "C:\Users\barrerakj\AppData\Local\Programs\Python\Python36-32\lib\site-pa
ckages\pyinstaller-3.2.1-py3.6.egg\PyInstaller\lib\modulegraph\modulegraph.py",
line 2831, in _scan_bytecode
global_attr_name = get_operation_arg_name() File "C:\Users\barrerakj\AppData\Local\Programs\Python\Python36-32\lib\site-pa
ckages\pyinstaller-3.2.1-py3.6.egg\PyInstaller\lib\modulegraph\modulegraph.py",
line 2731, in get_operation_arg_name
return module_code_object.co_names[co_names_index] IndexError: tuple index out of range
Related
I tried to compile my app after updating pyinstaller, and it seems to run into this weird error:
Traceback (most recent call last):
File "C:\users\\appdata\local\programs\python\python39\lib\site-packages\win32ctypes\pywin32\pywintypes.py", line 35, in pywin32error
yield
File "C:\users\\appdata\local\programs\python\python39\lib\site-packages\win32ctypes\pywin32\win32api.py", line 229, in EndUpdateResource
_resource._EndUpdateResource(handle, discard)
File "C:\users\\appdata\local\programs\python\python39\lib\site-packages\win32ctypes\core\ctypes\_util.py", line 64, in check_false
raise make_error(function, function_name)
OSError: [WinError 110] The system cannot open the device or file specified.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\users\\appdata\local\programs\python\python39\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\users\\appdata\local\programs\python\python39\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Users\\AppData\Local\Programs\Python\Python39\Scripts\pyinstaller.exe\__main__.py", line 7, in <module>
File "C:\users\\appdata\local\programs\python\python39\lib\site-packages\PyInstaller\__main__.py", line 178, in run
run_build(pyi_config, spec_file, **vars(args))
File "C:\users\\appdata\local\programs\python\python39\lib\site-packages\PyInstaller\__main__.py", line 59, in run_build
PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
File "C:\users\\appdata\local\programs\python\python39\lib\site-packages\PyInstaller\building\build_main.py", line 842, in main
build(specfile, distpath, workpath, clean_build)
File "C:\users\\appdata\local\programs\python\python39\lib\site-packages\PyInstaller\building\build_main.py", line 764, in build
exec(code, spec_namespace)
File "app.spec", line 30, in <module>
exe = EXE(
File "C:\users\\appdata\local\programs\python\python39\lib\site-packages\PyInstaller\building\api.py", line 524, in __init__
self.__postinit__()
File "C:\users\\appdata\local\programs\python\python39\lib\site-packages\PyInstaller\building\datastruct.py", line 173, in __postinit__
self.assemble()
File "C:\users\\appdata\local\programs\python\python39\lib\site-packages\PyInstaller\building\api.py", line 692, in assemble
self.manifest.update_resources(build_name, [1])
File "C:\users\\appdata\local\programs\python\python39\lib\site-packages\PyInstaller\utils\win32\winmanifest.py", line 904, in update_resources
UpdateManifestResourcesFromXML(dstpath, self.toprettyxml().encode("UTF-8"), names, languages)
File "C:\users\\appdata\local\programs\python\python39\lib\site-packages\PyInstaller\utils\win32\winmanifest.py", line 992, in UpdateManifestResourcesFromXML
winresource.UpdateResources(dstpath, xmlstr, RT_MANIFEST, names or [name], languages or [0, "*"])
File "C:\users\\appdata\local\programs\python\python39\lib\site-packages\PyInstaller\utils\win32\winresource.py", line 189, in UpdateResources
win32api.EndUpdateResource(hdst, 0)
File "C:\users\\appdata\local\programs\python\python39\lib\site-packages\win32ctypes\pywin32\win32api.py", line 229, in EndUpdateResource
_resource._EndUpdateResource(handle, discard)
File "C:\users\\appdata\local\programs\python\python39\lib\contextlib.py", line 135, in __exit__
self.gen.throw(type, value, traceback)
File "C:\users\\appdata\local\programs\python\python39\lib\site-packages\win32ctypes\pywin32\pywintypes.py", line 37, in pywin32error
raise error(exception.winerror, exception.function, exception.strerror)
win32ctypes.pywin32.pywintypes.error: (110, 'EndUpdateResourceW', 'The system cannot open the device or file specified.')
Anyone ran into similar problems? I updated pyinstaller because I was running into issues with the google core hook, now that worked but this became an issue.
Im running Nginx + Gunicorn + FastAPI application. I have rather simple ML application in my file main.py.
I used this manual to set (Russian translate):
[Развертывайте приложение Fastapi на Ubuntu с Nginx, Gunicorn и UVicorn][1]
When I'm trying to check
gunicorn -w 4 -k uvicorn.workers.UvicornWorker main:app
I see this error
File "/var/www/ste/venv/lib/python3.8/site-packages/gunicorn/arbiter.py", line 211, in run
self.manage_workers()
File "/var/www/ste/venv/lib/python3.8/site-packages/gunicorn/arbiter.py", line 551, in manage_workers
self.spawn_workers()
File "/var/www/ste/venv/lib/python3.8/site-packages/gunicorn/arbiter.py", line 623, in spawn_workers
time.sleep(0.1 * random.random())
File "/var/www/ste/venv/lib/python3.8/site-packages/gunicorn/arbiter.py", line 242, in handle_chld
self.reap_workers()
File "/var/www/ste/venv/lib/python3.8/site-packages/gunicorn/arbiter.py", line 530, in reap_workers
self.log.warning(
File "/var/www/ste/venv/lib/python3.8/site-packages/gunicorn/glogging.py", line 261, in warning
self.error_log.warning(msg, *args, **kwargs)
File "/usr/lib/python3.8/logging/__init__.py", line 1458, in warning
self._log(WARNING, msg, args, **kwargs)
File "/usr/lib/python3.8/logging/__init__.py", line 1589, in _log
self.handle(record)
File "/usr/lib/python3.8/logging/__init__.py", line 1599, in handle
self.callHandlers(record)
File "/usr/lib/python3.8/logging/__init__.py", line 1661, in callHandlers
hdlr.handle(record)
File "/usr/lib/python3.8/logging/__init__.py", line 954, in handle
self.emit(record)
File "/usr/lib/python3.8/logging/__init__.py", line 1093, in emit
self.handleError(record)
File "/usr/lib/python3.8/logging/__init__.py", line 1007, in handleError
traceback.print_exception(t, v, tb, None, sys.stderr)
File "/usr/lib/python3.8/traceback.py", line 105, in print_exception
print(line, file=file, end="")
File "/var/www/ste/venv/lib/python3.8/site-packages/gunicorn/arbiter.py", line 242, in handle_chld
self.reap_workers()
File "/var/www/ste/venv/lib/python3.8/site-packages/gunicorn/arbiter.py", line 530, in reap_workers
self.log.warning(
File "/var/www/ste/venv/lib/python3.8/site-packages/gunicorn/glogging.py", line 261, in warning
self.error_log.warning(msg, *args, **kwargs)
File "/usr/lib/python3.8/logging/__init__.py", line 1458, in warning
self._log(WARNING, msg, args, **kwargs)
File "/usr/lib/python3.8/logging/__init__.py", line 1589, in _log
self.handle(record)
File "/usr/lib/python3.8/logging/__init__.py", line 1599, in handle
self.callHandlers(record)
File "/usr/lib/python3.8/logging/__init__.py", line 1661, in callHandlers
hdlr.handle(record)
File "/usr/lib/python3.8/logging/__init__.py", line 954, in handle
self.emit(record)
File "/usr/lib/python3.8/logging/__init__.py", line 1093, in emit
self.handleError(record)
File "/usr/lib/python3.8/logging/__init__.py", line 1006, in handleError
sys.stderr.write('--- Logging error ---\n')
RuntimeError: reentrant call inside <_io.BufferedWriter name='<stderr>'>
[2022-02-21 21:02:44 +0300] [650] [WARNING] Worker with pid 656 was terminated due to signal 4 ```
I have file main.py and app in it. Any ideas how to handle this error?
[1]: https://pythobyte.com/deploy-fastapi-application-on-ubuntu-with-nginx-gunicorn-and-uvicorn-3mbl-f789b2df/
I want to compile an exe with encryption (to prevent "casual" decompiling).
I am able to compile with Pyinstaller v2.1 in one exe file using a spec file, when I don't use encryption.
But, when I add the following line to the .spec file to introduce encryption (pycryptodome ):
block_cipher = pyi_crypto.PyiBlockCipher(key='1234567812345678')
I end up with this error:
File "c:\users\username\test-env\lib\site-packages\Crypto\Util\_raw_api.py", line 151, in c_uint8_ptr
raise TypeError("Object type %s cannot be passed to C code" % type(data))
TypeError: Object type <class 'str'> cannot be passed to C code
The log leading up to the error was:
90328 INFO: Appending 'datas' from .spec
90371 INFO: checking PYZ
90372 INFO: Building PYZ because out00-PYZ.toc is non existent
90373 INFO: Building PYZ (ZlibArchive) C:\Users\choom.000\Documents\masstools_clean\obf\build\graphms\out00-PYZ.pyz
Traceback (most recent call last):
File "C:\Users\choom.000\test-env\Scripts\pyinstaller-script.py", line 11, in <module>
load_entry_point('PyInstaller==3.3.1', 'console_scripts', 'pyinstaller')()
File "c:\users\choom.000\test-env\lib\site-packages\PyInstaller\__main__.py", line 94, in run
run_build(pyi_config, spec_file, **vars(args))
File "c:\users\choom.000\test-env\lib\site-packages\PyInstaller\__main__.py", line 46, in run_build
PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
File "c:\users\choom.000\test-env\lib\site-packages\PyInstaller\building\build_main.py", line 791, in main
build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
File "c:\users\choom.000\test-env\lib\site-packages\PyInstaller\building\build_main.py", line 737, in build
exec(text, spec_namespace)
File "<string>", line 20, in <module>
File "c:\users\choom.000\test-env\lib\site-packages\PyInstaller\building\api.py", line 98, in __init__
self.__postinit__()
File "c:\users\choom.000\test-env\lib\site-packages\PyInstaller\building\datastruct.py", line 161, in __postinit__
self.assemble()
File "c:\users\choom.000\test-env\lib\site-packages\PyInstaller\building\api.py", line 133, in assemble
pyz = ZlibArchiveWriter(self.name, toc, code_dict=self.code_dict, cipher=self.cipher)
File "c:\users\choom.000\test-env\lib\site-packages\PyInstaller\archive\writers.py", line 184, in __init__
super(ZlibArchiveWriter, self).__init__(archive_path, logical_toc)
File "c:\users\choom.000\test-env\lib\site-packages\PyInstaller\archive\writers.py", line 59, in __init__
self._add_from_table_of_contents(logical_toc)
File "c:\users\choom.000\test-env\lib\site-packages\PyInstaller\archive\writers.py", line 84, in _add_from_table_of_contents
self.add(toc_entry) # The guts of the archive.
File "c:\users\choom.000\test-env\lib\site-packages\PyInstaller\archive\writers.py", line 213, in add
obj = self.cipher.encrypt(obj)
File "c:\users\choom.000\test-env\lib\site-packages\PyInstaller\archive\pyz_crypto.py", line 58, in encrypt
return iv + self.__create_cipher(iv).encrypt(data)
File "c:\users\choom.000\test-env\lib\site-packages\PyInstaller\archive\pyz_crypto.py", line 64, in __create_cipher
return self._aesmod.new(self.key, self._aesmod.MODE_CFB, iv)
File "c:\users\choom.000\test-env\lib\site-packages\Crypto\Cipher\AES.py", line 200, in new
return _create_cipher(sys.modules[__name__], key, mode, *args, **kwargs)
File "c:\users\choom.000\test-env\lib\site-packages\Crypto\Cipher\__init__.py", line 55, in _create_cipher
return modes[mode](factory, **kwargs)
File "c:\users\choom.000\test-env\lib\site-packages\Crypto\Cipher\_mode_cfb.py", line 230, in _create_cfb_cipher
cipher_state = factory._create_base_cipher(kwargs)
File "c:\users\choom.000\test-env\lib\site-packages\Crypto\Cipher\AES.py", line 100, in _create_base_cipher
result = start_operation(c_uint8_ptr(key),
File "c:\users\choom.000\test-env\lib\site-packages\Crypto\Util\_raw_api.py", line 151, in c_uint8_ptr
raise TypeError("Object type %s cannot be passed to C code" % type(data))
TypeError: Object type <class 'str'> cannot be passed to C code
Seems like it is a problem with the "key" which is class 'str'.
I tried to change in the .spec file the key = 'a123456712345678' or u'1234567812345678' but still have the problem.
While running python make_dataset in the quick start example for Pylearn2, I've run across an import error in a Theano .so file. The heart of the issue seems to be this: undefined symbol: _gfortran_st_write. I'm running development versions of numpy, scipy, Theano, and Pylearn2. Any ideas?
Traceback (most recent call last):
File "make_dataset.py", line 58, in <module>
train.apply_preprocessor(preprocessor=pipeline, can_fit=True)
File "/home/mmay/Downloads/Installs/pylearn2/pylearn2/datasets/dense_design_matrix.py", line 710, in apply_preprocessor
preprocessor.apply(self, can_fit)
File "/home/mmay/Downloads/Installs/pylearn2/pylearn2/datasets/preprocessing.py", line 175, in apply
item.apply(dataset, can_fit)
File "/home/mmay/Downloads/Installs/pylearn2/pylearn2/datasets/preprocessing.py", line 1424, in apply
new_x_symbol)
File "/usr/local/lib/python2.7/dist-packages/Theano-0.6.0-py2.7.egg/theano/compile/function.py", line 223, in function
profile=profile)
File "/usr/local/lib/python2.7/dist-packages/Theano-0.6.0-py2.7.egg/theano/compile/pfunc.py", line 511, in pfunc
on_unused_input=on_unused_input)
File "/usr/local/lib/python2.7/dist-packages/Theano-0.6.0-py2.7.egg/theano/compile/function_module.py", line 1332, in orig_function
defaults)
File "/usr/local/lib/python2.7/dist-packages/Theano-0.6.0-py2.7.egg/theano/compile/function_module.py", line 1198, in create
_fn, _i, _o = self.linker.make_thunk(input_storage=input_storage_lists)
File "/usr/local/lib/python2.7/dist-packages/Theano-0.6.0-py2.7.egg/theano/gof/link.py", line 489, in make_thunk
output_storage=output_storage)[:3]
File "/usr/local/lib/python2.7/dist-packages/Theano-0.6.0-py2.7.egg/theano/gof/vm.py", line 881, in make_all
no_recycling))
File "/usr/local/lib/python2.7/dist-packages/Theano-0.6.0-py2.7.egg/theano/gof/op.py", line 618, in make_thunk
output_storage=node_output_storage)
File "/usr/local/lib/python2.7/dist-packages/Theano-0.6.0-py2.7.egg/theano/gof/cc.py", line 987, in make_thunk
keep_lock=keep_lock)
File "/usr/local/lib/python2.7/dist-packages/Theano-0.6.0-py2.7.egg/theano/gof/cc.py", line 930, in __compile__
keep_lock=keep_lock)
File "/usr/local/lib/python2.7/dist-packages/Theano-0.6.0-py2.7.egg/theano/gof/cc.py", line 1367, in cthunk_factory
key=key, fn=self.compile_cmodule_by_step, keep_lock=keep_lock)
File "/usr/local/lib/python2.7/dist-packages/Theano-0.6.0-py2.7.egg/theano/gof/cmodule.py", line 1005, in module_from_key
module = next(compile_steps)
File "/usr/local/lib/python2.7/dist-packages/Theano-0.6.0-py2.7.egg/theano/gof/cc.py", line 1282, in compile_cmodule_by_step
preargs=preargs)
File "/usr/local/lib/python2.7/dist-packages/Theano-0.6.0-py2.7.egg/theano/gof/cmodule.py", line 1993, in compile_str
return dlimport(lib_filename)
File "/usr/local/lib/python2.7/dist-packages/Theano-0.6.0-py2.7.egg/theano/gof/cmodule.py", line 290, in dlimport
rval = __import__(module_name, {}, {}, [module_name])
ImportError: ('The following error happened while compiling the node', Dot22(Elemwise{sub,no_inplace}.0, P_), '\n', '/home/mmay/.theano/compiledir_Linux-3.2.0-63-generic-x86_64-with-elementary_OS-0.2-luna-x86_64-2.7.3-64/tmpFGIAyD/0e96d34cc789a5edba0ae9e735b21a70.so:
undefined symbol: _gfortran_st_write', '[Dot22(<TensorType(float32, matrix)>, P_)]')
The problem was resolved after removing ATLAS, installing OpenBLAS, reinstalling numpy + scipy + theano, and then installing Pylearn2 from source.
See https://github.com/Theano/Theano/blob/master/doc/install_ubuntu.txt#L70 of the Theano install guide for a more detailed explanation.
I used latest version of GAE.
I try install Pylons v1.0 with this help article:
http://countergram.com/pylons-google-app-engine
paster serve --reload development.ini
work fine
Apache2+wsgi work fine
But: dev_appserver.py pylons
I have got error message:
INFO:root:Starting admin server at: [Link to localhost:8000 ERROR]
2013-07-11 11:55:07,816 cgi.py:121] Traceback (most recent call last):
File "/home/evgeny/PycharmProjects/pylons/app.py", line 41, in
run_wsgi_app(loadapp('config:development.ini',
relative_to=appdir)) File
"lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 247, in
loadapp ret*emphasized text*urn loadobj(APP, uri, name=name, **kw) File
"lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 271, in
loadobj global_conf=global_conf) File
"lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 296, in
loadcontext global_conf=global_conf) File
"lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 320, in
_loadconfig return loader.get_context(object_type, name, global_conf) File "lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 454,
in get_context section) File
"lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 476, in
_context_from_use object_type, name=use, global_conf=global_conf) File "lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 406,
in get_context global_conf=global_conf) File
"lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 296, in
loadcontext global_conf=global_conf) File
"lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 328, in
_loadegg return loader.get_context(object_type, name, global_conf) File "lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 620,
in get_context object_type, name=name) File
"lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 646, in
find_egg_entry_point possible.append((entry.load(), protocol,
entry.name)) File
"lib/python2.7/site-packages/distribute-0.6.19-py2.7.egg/pkg_resources.py",
line 1991, in load entry = import(self.module_name,
globals(),globals(), ['name']) File
"project/project/config/middleware.py", line 9, in from
routes.middleware import RoutesMiddleware File
"lib/python2.7/site-packages/routes/init.py", line 140, in
from routes.mapper import Mapper File
"lib/python2.7/site-packages/routes/mapper.py", line 7, in
from repoze.lru import LRUCache ImportError: No module named
repoze.lru
It's really simple decision.
At virtualenv path:
touch lib/python2.7/site-packages/repoze/__init__.py