user1478497
user1478497

Reputation: 81

import P4API fails on win 64, python 3.5.1

I'm getting the following error when running import P4:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python35\lib\site-packages\P4.py", line 410, in <module>
    import P4API
ImportError: DLL load failed: The specified module could not be found.

I looked online but couldn't find something that would help.

Upvotes: 5

Views: 849

Answers (1)

EricB
EricB

Reputation: 478

I've experienced a slightly different wording of what might be the same issue.

 File "C:\Program Files\Python311\Lib\site-packages\P4.py", line 413, in <module>
    import P4API
ImportError: DLL load failed while importing P4API: The specified module could not be found.

To solve it, make sure you have P4V.exe installed. Installing P4V solved the issue for me on Windows 7 and Windows 11.

Upvotes: 0

Related Questions