Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to install and setup? #412

Closed
gabrielcosi opened this issue Aug 10, 2020 · 7 comments
Closed

How to install and setup? #412

gabrielcosi opened this issue Aug 10, 2020 · 7 comments

Comments

@gabrielcosi
Copy link

I'm new to python programming and I'd like to use but I can't figure out how to install it. I've already downloaded de lastest release for windows x64. Also I can't install the PS3 Eye Camera, I'm using https://archive.org/details/CLEyeDriver5.3.0.0341Emuline but it only shows on the CL Eye Test and not in cv2. I know this is not related with the API but if someone can help me I'd really appreciate it. Thanks

@nitsch
Copy link
Collaborator

nitsch commented Aug 15, 2020 via email

@a-eye-tech
Copy link

a-eye-tech commented Sep 1, 2020

@nitsch Thanks, that help me out. However, the sensor values I get all remain at 0:

<Vec3 (0.00, 0.00, 0.00)> -> <RGB (0.00, 0.50, 1.00)> usb: True bt: False
Update controller: <Controller #0 a0:ab:51:5b:cc:36> 2

The connected PS Move controller at least turns blue.

The sensor values also remain at zero even when I run example_new_api.exe from Visual Studio.

Can someone please help me with this issue?

@nitsch
Copy link
Collaborator

nitsch commented Sep 1, 2020 via email

@a-eye-tech
Copy link

@nitsch Ok, sorry about that.

@nitsch nitsch closed this as completed Oct 12, 2020
@heretique
Copy link

heretique commented Jan 9, 2021

Hi guys, I have a similar issue (not being able to use the old python api) when using the latest release version 4.0.12 and Python 3.9.
I've installed the release to c:\apps\psmoveapi\ and then I set the environment variable PSMOVEAPI_LIBRARY_PATH to point to the lib folder c:\apps\psmoveapi\lib. For my test I didn't altered the PYTHONPATH variable, instead I copied the python bindings directly in the same folder as my test .py file.
When I import psmoveapi all is well and good but when I import psmove as in some of the examples that come with the source code archive, I get some exceptions:

 File "e:\Workspace\PythonProjects\TestPsMove\src\psmove.py", line 14, in swig_import_helper
  return importlib.import_module(mname)
File "C:\Python39\Lib\importlib\__init__.py", line 127, in import_module
  return _bootstrap._gcd_import(name[level:], package, level)
File "C:\Python39\Lib\importlib\_bootstrap.py", line 1030, in _gcd_import
  return _find_and_load(name, _gcd_import)
File "C:\Python39\Lib\importlib\_bootstrap.py", line 1007, in _find_and_load
  return _find_and_load_unlocked(name, import_)
File "C:\Python39\Lib\importlib\_bootstrap.py", line 986, in _find_and_load_unlocked
  module = _load_unlocked(spec)
File "C:\Python39\Lib\importlib\_bootstrap.py", line 666, in _load_unlocked
  module = module_from_spec(spec)
File "C:\Python39\Lib\importlib\_bootstrap.py", line 565, in module_from_spec
  module = spec.loader.create_module(spec)
File "C:\Python39\Lib\importlib\_bootstrap_external.py", line 1108, in create_module
  module = _bootstrap._call_with_frames_removed(
File "C:\Python39\Lib\importlib\_bootstrap.py", line 228, in _call_with_frames_removed
  return f(*args, **kwds)

builtins.ImportError: DLL load failed while importing _psmove: The specified module could not be found.

During handling of the above exception, another exception occurred:

 File "e:\Workspace\PythonProjects\TestPsMove\src\test_dearpygui.py", line 7, in <module>
  import psmove
 File "e:\Workspace\PythonProjects\TestPsMove\src\psmove.py", line 17, in <module>
  _psmove = swig_import_helper()
 File "e:\Workspace\PythonProjects\TestPsMove\src\psmove.py", line 16, in swig_import_helper
  return importlib.import_module('_psmove')
File "C:\Python39\Lib\importlib\__init__.py", line 127, in import_module
  return _bootstrap._gcd_import(name[level:], package, level)

builtins.ImportError: DLL load failed while importing _psmove: The specified module could not be found.

I need to use the tracking feature to implement a 3D sculpting app and it seems that is available only with the old psmove api.
Any help would be appreciated. Thank you!

@nitsch
Copy link
Collaborator

nitsch commented Jan 12, 2021 via email

@heretique
Copy link

Created a new issue here #436.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants