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

ModuleNotFoundError: No module named 'psmove' (SWIG removed in psmoveAPI) #289

Open
Mattman842 opened this issue Jan 4, 2023 · 5 comments

Comments

@Mattman842
Copy link

I have tried to install JoustMania to a new RasberyPi 4 b 8Gb. Running on the latest version of Pi OS that the Raspberry Pi Imager recommends. I have tried running the rerunning Setup.sh multiple times. Also, different SD cards all within the recommendations.

I have tried a whole ton of other things but I'm not confident with troubleshooting these, so they were most likely just shots in the dark.

The error I get when trying to run Joust.sh

ModuleNotFoundError: No module named 'psmove'

Just wondering if you've seen this error before and If I've just messed something up along the way.

@adangert
Copy link
Owner

adangert commented Jan 4, 2023

Yes that either means that the psmove api didn't install correctly, or that python is having trouble finding psmove. There are some example scripts within the psmove folder that should run if everything works correctly. I currently don't have a computer so I can't test from scratch at the moment, but should be able to next week

@Mattman842
Copy link
Author

Thanks for that. Example scripts weren't working I believe. I was going to try and install the psmoveapi from scratch separately then try to reinstall Joust but haven't had a chance yet. Thanks for the info, let me know how you go with your testing once you've had a chance.

@anoopr
Copy link

anoopr commented Jan 11, 2023

I just went through this. Adding git checkout 8a1f8d035e9c82c5c134d848d9fbb4dd37a34b58 on the line after cd psmoveapi at line 60 of setup.sh fixes this by using a version of psmoveapi from October. A change they've made since then breaks the Raspberry Pi build.

@adangert
Copy link
Owner

adangert commented Jan 11, 2023

Thanks for looking through this! I've made the change in the master branch and will look into what changed on the psmove side of things that caused the problems. Joustmania should install correctly now

@adangert
Copy link
Owner

adangert commented Nov 30, 2023

From this commit here:
thp/psmoveapi@1c9210e
removed SWIG-based Python bindings
This will need to be updated for all files

This removes the SWIG based API, for the ctypes python3 api here:
thp/psmoveapi#338

This likely will take a rework of JoustMania in order to accommodate the new cpp based api (but it may be faster once this is done)

Swig and other dependencies can also be removed after this update:

default-jdk ant liblwjgl-java
mono-mcs
swig3.0 freeglut3-dev

@adangert adangert changed the title ModuleNotFoundError: No module named 'psmove' ModuleNotFoundError: No module named 'psmove' (SWIG removed in psmoveAPI) Mar 11, 2024
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

3 participants