[solved] Can I import pysony or gopro
Hi!
Now I am trying to import pysony or gopro to control the camera wirelessly with the expriment trial in inline script. Can I import these libraries to opensesame? If possible, it would be great!
Hiro
Hi!
Now I am trying to import pysony or gopro to control the camera wirelessly with the expriment trial in inline script. Can I import these libraries to opensesame? If possible, it would be great!
Hiro
Comments
pysony is the library here, https://pypi.python.org/pypi/pysony/0.1.9
gopro is here, https://pypi.python.org/pypi/gopro/0.0.2
Hi Hiro,
Yes, that's possible. You just download the Python modules/ packages and put them in the OpenSesame program folder. (Assuming you're on Windows.)
You should put only the relevant folders/ files in the OpenSesame folder. For
pysonythis looks to be the filepysony.py. Forgoprothis looks to be the foldergopro.Cheers,
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Great! Now I could install pysony into my python27 by pip, and successfully manage to import pysony in my Python, but I cannot understand how dose it for opensesame, sorry. Now I simply downloaded the pysony.py script file from GitHub, and saved the file in the self-made new folder of "pysony" under the program folder "Opensamame", but it doesn't work (by checking "import pysony" command in debug window of opensesame).
Cheers, Hiro
You need to put
pysony.pydirectly in the OpenSesame program folder, because that folder is part of the Python path. Think of it like this:site-packagesfolder.site-packagesfolder, but the OpenSesame program folder functions in the same way.Does that clear things up?
Cheers,
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
I can do! Many thanks for kind suggestion! K
Hello everyone!
I'm going to revive post from last year
I'm trying to follow the instructions mentioned above and yet getting "No module named requests".
in this link: https://pypi.python.org/pypi/gopro/0.0.2
there are 3 relevant files:
gopro-0.0.2-py2.py3-none-any.whl
gopro-0.0.2.tar.gz
in https://github.com/DenisCarriere/gopro, the folder "gopro"
which one should I download and where should I paste it?
I've tried each one of these options and neither created me the desired extension/plugin.
Thanks for your help!
SH
@S_H I responded to your question here. In the future, please don't post the same question multiple times! [-X
Check out SigmundAI.eu for our OpenSesame AI assistant!
Thanks! I wasn't sure I'll get help on [solved] discussion