Your message dated Tue, 15 May 2018 22:10:43 +0200
with message-id <[email protected]>
and subject line This module isn't to be used outside of uwsgi
has caused the Debian Bug report #896244,
regarding python3-uwsgidecorators: uwsgidecorators fails to import
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
896244: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=896244
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: python3-uwsgidecorators
Version: 2.0.15-10.4
Severity: serious
User: [email protected]
Usertags: python-import

After installing python3-uwsgidecorators importing the module uwsgidecorators
into a python interpreter fails with the following error:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python3/dist-packages/uwsgidecorators.py", line 10, in <module>
    import uwsgi
ModuleNotFoundError: No module named 'uwsgi'

The vast majority of import failures is attributed to missing dependencies.
Often times that manifests as an ImportError or ModuleNotFoundError.
Typically, dependencies should be inserted by dh-python via ${python:Depends}
or ${python3:Depends}. Thus a missing dependency can be caused by incomplete
install_requires in setup.py. Sometimes a missing dependency of a dependency
is the cause, in such cases this bug should be reassigned.

Helmut

--- End Message ---
--- Begin Message ---
Hi,

It's perfectly normal that this Python module cannot be imported the way
Helmut Grohne did. Indeed, it can only be imported from within a WSGI
application that runs under UWSGI. Relevant documentation may be found here:

http://uwsgi-docs.readthedocs.io/en/latest/PythonDecorators.html

Moreover, it has been discussed on IRC the possibility to push
uwsgidecorators outside of the standard PYTHONPATH, since the uwsgi
plugin is launching the interpreter (and could therefore play with the
sys.path.append API or something). However, this would add complexity to
the packaging for something that is not done upstream, and I don't see
the added value for the burden it would add on the Debian packaging.

Therefore, I'm closing this bug.
Cheers,

Thomas Goirand (zigo)

--- End Message ---

Reply via email to