Opened 16 years ago
Closed 12 years ago
#3966 closed defect (fixed)
import error in wsgiplugin.py of trac.web.main._open_environment
Reported by: | Bill5107 | Owned by: | Ryan J Ollos |
---|---|---|---|
Priority: | normal | Component: | TracWsgiPlugin |
Severity: | normal | Keywords: | trac wsgi |
Cc: | william.rivet@… | Trac Release: | 0.10 |
Description
The zipfile from http://trac-hacks.org/wiki/TracWsgiPlugin did not work out of the box for me:
... File "c:\virtualenv\lib\site-packages\wsgitrac-0.3dev-py2.5.egg\wsgiplugin\wsgiplugin.py", line 15, in <module> from trac.web.main import dispatch_request, _open_environment ImportError: cannot import name _open_environment
I simply removed the leading "_" in _open_environment in trac/web/main.py, which seemed to work for me.
Attachments (0)
Change History (8)
comment:1 Changed 12 years ago by
Owner: | changed from martinpaljak to Roman Kozlovskiy |
---|---|
Status: | new → assigned |
comment:2 follow-up: 3 Changed 12 years ago by
Owner: | changed from Roman Kozlovskiy to Ryan J Ollos |
---|---|
Status: | assigned → new |
comment:3 Changed 12 years ago by
Replying to kroman0:
Please, give me write access to subversion to commit fix for TracWsgiPlugin. Thanks
I'd be happy to give you access, but the policy is to follow the steps in AdoptingHacks. In the meantime, please let me know if the next check-in resolves the issues for you.
comment:4 Changed 12 years ago by
comment:5 follow-up: 7 Changed 12 years ago by
Please also change _open_environment
to open_environment
in http://trac-hacks.org/browser/tracwsgiplugin/0.11/wsgiplugin/wsgiplugin.py#L89
comment:6 Changed 12 years ago by
comment:7 Changed 12 years ago by
Replying to kroman0:
Please also change
_open_environment
toopen_environment
in http://trac-hacks.org/browser/tracwsgiplugin/0.11/wsgiplugin/wsgiplugin.py#L89
Thanks. Stupid oversight on my part.
comment:8 Changed 12 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Thanks. Now all work fine
Please, give me write access to subversion to commit fix for TracWsgiPlugin. Thanks