Help Getting Started with PyCharm in Windows 10

82 views
Skip to first unread message

compvisionguy

unread,
Aug 10, 2021, 9:14:54 PM8/10/21
to psmove
I want use to the PS Move API prebuilt library in PyCharm with Python, but I don't know how. What do I do with PyCharm in order to be able to run the PSMove API? I would like to be able to run always.py from a new PyCharm project.

compvisionguy

unread,
Aug 10, 2021, 9:22:44 PM8/10/21
to psmove
So far, I'm stuck at "No module named 'psmove' "

compvisionguy

unread,
Aug 10, 2021, 10:00:06 PM8/10/21
to psmove
I tried adding these to my Windows 10 Environment Variables:

PYTHONPATH
C:\Users\Winuser\Desktop\psmoveapi-4.0.12-windows-msvc2017-x64\bindings\python

PSMOVEAPI_LIBRARY_PATH
C:\Users\Winuser\Desktop\psmoveapi-4.0.12-windows-msvc2017-x64\lib

But when I run always.py, I get this error:
<...>
ImportError: DLL load failed while importing _psmove: The specified module could not be found.

compvisionguy

unread,
Aug 10, 2021, 10:43:27 PM8/10/21
to psmove

I also tried downloading and adding C:\swigwin-4.0.2 to my c: and Path. Not working yet.

compvisionguy

unread,
Aug 10, 2021, 11:02:43 PM8/10/21
to psmove
I'm going to download Visual Studio 2017, and then use ' call scripts/visualc/build_msvc.bat 2017 x64' 

I can't seem to use ' call scripts/visualc/build_msvc.bat 2017 x64' with Visual Studio 2019.

compvisionguy

unread,
Aug 10, 2021, 11:46:16 PM8/10/21
to psmove
I still get the same error with Developer Command Prompt for VS 2017.

What I did was:
* start Developer Command Prompt for VS 2017
* cd C:\Users\Winuser\Desktop\psmoveapi-master
* call scripts/visualc/build_msvc.bat 2017 x64

But I still get the same error:
'"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\..\..\VC\vcvarsall.bat"' is not recognized as an internal or external command,
operable program or batch file.
Applying libusb dynamic CRT patch...
error: msvc/libusb_static_2013.vcxproj: No such file or directory
error: msvc/libusb_static_2015.vcxproj: No such file or directory
Failed to apply libusb patch. Perhaps it was already applied or libub was not checked out.

Building libusb (Debug)
Microsoft (R) Build Engine version 15.9.21+g9802d43bc3 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

MSBUILD : error MSB1009: Project file does not exist.
Switch: C:\Users\user\Desktop\psmoveapi-master\scripts\visualc\..\..\\external\libusb-1.0/msvc/libusb_static_2017.vcxproj
Failed to build libusb (Debug)

There was an error running one of the build commands. Please see the output for more information.

Abdul Rasheed

unread,
Jan 23, 2023, 2:19:13 PM1/23/23
to psmove
Hi, Did you fix the "ImportError: DLL load failed while importing _psmove: The specified module could not be found." error?
Reply all
Reply to author
Forward
0 new messages