General Category > OpenLase Discussion

Level nearly completed ...

(1/6) > >>

Fabrice:
Dear Macpod and all others Lasershark Aficionados !

I have finally succeed in making my green laser projector based on lasershark working really fine under Ubuntu 14.04 ! Thank you very much for all the support that the macpod.net website is offering ...
I would like to go one step further and, sorry for that, i will need your help once again  :)

2 questions haunt me...

-1- I'm totally newbie in the programmation field, I'm starting to learn Python but i'm very curious if discovering the 'tweet.py' application. I have tried to compile it but it does not run properly . Have I miss something ?

-2- I have installed VMplayer under Windows and runs a 10.04 Ubuntu version in order to be able to discover  the Jeremy van Grinsven project (https://github.com/jv4779/openlase-mame).The main problem is that Ubuntu 10.04 is the last version of Ubuntu which has Xmame. When trying to install jackd2 library 
via "sudo apt-get install libjack-jackd2-dev" system answers that it does not exist ...
I do not want to update the Ubuntu Version because i would then lost the possibility of Xmame ... May I ask you how i should proceed please ?

Thank you very much for your help and your patience? Sorry for writing such a long post  ;)

Have a great day

PS. Can't wait for the laserShark RGB Version ...

Macpod:
Hi Fabrice,

Glad you got your projector working to your liking.


1. This question is very difficult to answer without output to identify the problem you are encountering.

2. jv4779 modified xmame to support OpenLase. By default Xmame does not support OpenLase. You are going to have to compile jv4779's code.

A fair warning: I did this a while ago and even with proper 30kpps galvos, it was quite choppy and probably overly-complicated for a galvo system. I don't know or have access to many ROMs, but if you do experiment, do so with very simple games like asteroids.

Fabrice:
Dear Macpod,

Thank you for your fast answer , sorry to be such a lamer but it seems that I have everything to learn ...

May I abuse from your patience once again please ?

1° I have installed the python wrapper for the twitter API. I have done it via
 'sudo easy_install python-twitter' ' 

Then, under the terminel,
'python twitter.py' ' 

The python compiler returns

Traceback (most recent call last):
  File "tweet.py", line 114, in <module>
    search = sys.argv[1]
IndexError: list index out of range

From this point i really need help  ;) i'm trying to learn python but not fast enough it seems ...

2° I understand that Xmame does not natively support Openlase, the main problem comes from the fact that the Xmame package is no more available under the last version of Ubuntu . I do not know how to compile the jv4779's sources under Ubuntu 14.04. jv4779 wrote in the GitHub that Ubuntu 10.04 was the last Ubuntu version with Xmame. I have tried to install openlase under Ubuntu 10.04 (VM player) but the jackd2 library is not available under this ubuntu version  :'(

May I ask you if you remember how you had proceed for compiling the jv4779's sources please ? 

Thank you very much for your help Macpod and sorry to be painful...

Macpod:
Lets start on question 1. Please read through this fully because there are multiple problems here:

a. 'sudo easy_install python-twitter'
This is not actually the twitter library used by openlase, instead this one is just called "twitter"

I would suggest using pip vs easy_install to install packages:
sudo pip install twitter

b. 'python tweet.py'
This is not the correct usage. You need to specify a twitter search term. This is why you are getting this error:
Traceback (most recent call last):
  File "tweet.py", line 114, in <module>
    search = sys.argv[1]
IndexError: list index out of range

Try running it as:
python tweet.py test

Since you say you want to learn more about programming check out these tutorials which talk more about parsing command line arguments:
http://www.cyberciti.biz/faq/python-command-line-arguments-argv-example/

c. Twitter no longer supports their v1 REST API so even if you did import the right modules and provide the proper command line arguments it would not work. I'll take a look at what is needed to update this tomorrow.

Down the rabbit hole! :)

Fabrice:
Dear MacPod,

Thank you so much for your help, I can now stop to pull my hair  :)
I have never imagine that the command should be used as you explain... Thank for that Macpod...
I will immediately visit the link you mentionned, and, of course, i say YES to the update you propose as my level in python is increasing really very slowly  ;)

Thank you for your assistance MacPod, have a great day ...

Navigation

[0] Message Index

[#] Next page

Go to full version