Open GoogleCodeExporter opened 9 years ago
I get a similar error when running Django site using Apache.
In my views.py file I have the following...
from P4 import P4,P4Exception
When I attempt to load the page, there is an error generated (see below).
However, when I run from command prompt I can import with no errors.
[Fri Jul 12 16:08:43 2013] [error] Traceback (most recent call last):
[Fri Jul 12 16:08:43 2013] [error] File
"C:\\Python27\\lib\\site-packages\\django\\core\\handlers\\base.py", line 92,
in get_response
[Fri Jul 12 16:08:43 2013] [error] response = middleware_method(request)
[Fri Jul 12 16:08:43 2013] [error] File
"C:\\Python27\\lib\\site-packages\\django\\middleware\\common.py", line 69, in
process_request
[Fri Jul 12 16:08:43 2013] [error] if (not
urlresolvers.is_valid_path(request.path_info, urlconf) and
[Fri Jul 12 16:08:43 2013] [error] File
"C:\\Python27\\lib\\site-packages\\django\\core\\urlresolvers.py", line 551, in
is_valid_path
[Fri Jul 12 16:08:43 2013] [error] resolve(path, urlconf)
[Fri Jul 12 16:08:43 2013] [error] File
"C:\\Python27\\lib\\site-packages\\django\\core\\urlresolvers.py", line 440, in
resolve
[Fri Jul 12 16:08:43 2013] [error] return
get_resolver(urlconf).resolve(path)
[Fri Jul 12 16:08:43 2013] [error] File
"C:\\Python27\\lib\\site-packages\\django\\core\\urlresolvers.py", line 319, in
resolve
[Fri Jul 12 16:08:43 2013] [error] for pattern in self.url_patterns:
[Fri Jul 12 16:08:43 2013] [error] File
"C:\\Python27\\lib\\site-packages\\django\\core\\urlresolvers.py", line 347, in
url_patterns
[Fri Jul 12 16:08:43 2013] [error] patterns = getattr(self.urlconf_module,
"urlpatterns", self.urlconf_module)
[Fri Jul 12 16:08:43 2013] [error] File
"C:\\Python27\\lib\\site-packages\\django\\core\\urlresolvers.py", line 342, in
urlconf_module
[Fri Jul 12 16:08:43 2013] [error] self._urlconf_module =
import_module(self.urlconf_name)
[Fri Jul 12 16:08:43 2013] [error] File
"C:\\Python27\\lib\\site-packages\\django\\utils\\importlib.py", line 35, in
import_module
[Fri Jul 12 16:08:43 2013] [error] __import__(name)
[Fri Jul 12 16:08:43 2013] [error] File
"C:\\Users\\mdaloia\\TARTworkspace\\TBWin\\web\\pyTB\\urls.py", line 7, in
<module>
[Fri Jul 12 16:08:43 2013] [error] import test_bench.views
[Fri Jul 12 16:08:43 2013] [error] File
"C:\\Users\\mdaloia\\TARTworkspace\\TBWin\\web\\pyTB\\test_bench\\views.py",
line 123, in <module>
[Fri Jul 12 16:08:43 2013] [error] from P4 import P4,P4Exception
[Fri Jul 12 16:08:43 2013] [error] File
"C:\\Python27\\lib\\site-packages\\P4.py", line 362, in <module>
[Fri Jul 12 16:08:43 2013] [error] import P4API
[Fri Jul 12 16:08:43 2013] [error] ImportError: DLL load failed: A dynamic link
library (DLL) initialization routine failed.
Original comment by donzen...@gmail.com
on 12 Jul 2013 at 8:12
Original issue reported on code.google.com by
squis...@gmail.com
on 10 Jun 2013 at 5:16