OpenViBE forum

The OpenViBE community
It is currently Fri Aug 17, 2018 7:09 pm

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Wed Mar 21, 2018 4:10 pm 
Offline

Joined: Fri Mar 09, 2018 3:23 pm
Posts: 5
Hello,

I'm new to both OpenViBE and Python. I'm trying to run the 'python-moving-circle.py' script through a Python Scripting box.

Analyzing the code, it seems to me that no box inputs and outputs are required, as well as no extra box settings and that it should display a screen with a white background and a black circle moving (please correct me if this is not true), once play is pressed. No errors are produced in the designer console, but nothing happens.

Can you advice me in what I should do in order to correctly run this script and visualize the screen?

I've been able to run all python scenarios available with no problems. Also, I have all the required python packages in this script installed.

Thank you so much in advance


Top
 Profile  
Reply with quote  
PostPosted: Thu Mar 22, 2018 8:50 am 
Offline

Joined: Tue Dec 04, 2012 3:53 pm
Posts: 733
Location: INRIA Rennes, FRANCE
Hi,

which operating system are you using? To our knowledge that script is only working on linux and it depends on the pygame library. It is illustrated by the scenario 'python-pygame-multiprocessing.xml' which is not installed on Windows. According to that tutorial scenario the box really doesn't need any inputs/outputs for that script.

It may be possible to get the script to work on windows but that'll likely require installing the needed packages and maybe some additional hacking.


Best,
Jussi


Top
 Profile  
Reply with quote  
PostPosted: Thu Mar 22, 2018 11:03 am 
Offline

Joined: Fri Mar 09, 2018 3:23 pm
Posts: 5
Thank you so much for your reply!
I am indeed using Windows. I was wondering why there were no scenarios that illustrated the use of the 'python-moving-circle.py' script.

I'll experiment this on Linux then


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group
Americanized by Maƫl Soucaze.