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

Windows only? #8

Open
soundsleit opened this issue Nov 13, 2020 · 4 comments
Open

Windows only? #8

soundsleit opened this issue Nov 13, 2020 · 4 comments

Comments

@soundsleit
Copy link

Hi - new to 3d slicer. I'm working with a team on a sonification project in conjunction with some MRI scans. I've been fiddling around with SlicerSoundControl, being a long time Pd programmer. However, I work on MacOS, and it looks to me like the plugin is geared for Windows only, yes?

@lassoan
Copy link
Contributor

lassoan commented Nov 13, 2020

The module is pure Python, works on all platforms. You need to install pure-data to generate the sound - it is available on Windows/Linux/Mac.

@lassoan lassoan closed this as completed Nov 13, 2020
@soundsleit
Copy link
Author

Yes - I’m very familiar with Pd. But the python code seems to have PC-specific file paths that don’t work on MacOS.

@soundsleit
Copy link
Author

PS: this is the error we are getting when we try to run the plug-in:

self.oscClient = OSC.OSCClient()

AttributeError: module 'OSC' has no attribute 'OSCClient'

We are using Pd 0.51-1 (vanilla - since extended is no longer maintained...)

@lassoan
Copy link
Contributor

lassoan commented Nov 13, 2020

Probably this error is due to Python2/3 differences in relative imports. The module was developed when Slicer used Python2 but now it uses Python3. You can fix the issue by modifying OpenSoundControl\OSC_init_.py (maybe changing its content to from .OSC import * is sufficient).

However, now Slicer can also install any Python package from PyPI, so if you have any trouble with making the bundled OpenSoundControl\OSC\OSC.py interface work then you can install python-osc or similar packages and use that (pip_install('python-osc')).

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

2 participants