Originally created by: squis...@gmail.com
What steps will reproduce the problem?
Download and install the 2.7 API from the website
Check it works by running in the python.exe shell. import P4
Then boot Max and try via the Py3dsMax implementation.
The system reports the error : ImportError: DLL load failed: The specified module could not be found.
What is the expected output? What do you see instead?
Successful import of Perforce P4 module
What version of the product are you using? On what operating system?
Max 2014 Python 2.7.5 and Py3dsMax plugin
Please provide any additional information below.
Same issue with Python 2.7.4 as well, moved up to .5 to see if this would fix it. Also import uuid reports a error dialog but works fine.
View and moderate all "tickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Originally posted by: donzen...@yahoo.com
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.