General Category > OpenLase Discussion
Level nearly completed ...
Fabrice:
MAcPod,
As you have recommended me, i have used the command
sudo pip install twitter
And I can found in
]/usr/local/lib/python2.7/dist-packages
the following files
twitter twitter-1.17.1.dist-info
Is it what should be expected ?
Thx MacPod
Macpod:
1.17.1 is correct.
The fact that it accepted the api = twitter.Twitter(...) line indicates you are using tweet vs tweet-python.. I'm not sure why this isn't working for you with the information provided.
Did you modify the python program?
Fabrice:
Hi MacPod,
Sorry to bother you, I have re-installed the twitter api once again, modified the code in the following manner
# Access token
#token = ''
# Access token secret
#token_key = ''
# Consumer key
con_secret = 'myvalue'
# Consumer Secret
con_secret_key = 'myvalue'
and i finally obtain
skappy@skappy-portable:~/Bureau/MacPod/openlase/examples$ python tweet.py test
File "tweet.py", line 42
def __init__(self):
^
IndentationError: expected an indented block
Can you please help me to understand the meaning of this error message...
May I ask you if I can try a another argument than 'test' in
python tweet.py test
Thank you very much and sorry once again :-[
Macpod:
--- Quote from: Fabrice on November 09, 2015, 02:12:13 AM ---skappy@skappy-portable:~/Bureau/MacPod/openlase/examples$ python tweet.py test
File "tweet.py", line 42
def __init__(self):
^
IndentationError: expected an indented block
Can you please help me to understand the meaning of this error message...
--- End quote ---
Python uses spacing at the start of the line to determine when code blocks start and end. It seems line 42 is improperly indented. Spaces are not considered the same as tabs. You will need to update the indentation of this line so the program can run.
https://docs.python.org/2/reference/lexical_analysis.html#indentation
--- Quote from: Fabrice on November 09, 2015, 02:12:13 AM ---
May I ask you if I can try a another argument than 'test' in
python tweet.py test
Thank you very much and sorry once again :-[
--- End quote ---
I can use whatever argument I want and it behaves the same.
If it is still installed, you should uninstall python-twitter:
pip uninstall python-twitter
Fabrice:
Dear McPod,
Today is a GREAT day !!!
I think that i'm as good at photo than at programming but despite the poor quality of the photo i'm very happy to announce you that tweet.py is running fine ...I would like to thanks you very much for your help and your assistance... I can not help but look at the scrolling messages ...
I do not want to abuse your patience and kindness but may i ask one last thing please MacPod ?
May i ask you how i should proceed in order to compile the jv4779 code please ? I would like to test asteroids game it would remind me great time ;) I encountered difficulties with Xmame when trying to compile ... I have installed VMplayer under Windows and runs a 10.04 Ubuntu version. 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 ...
Have a great day,
Thank you for all MacPod, :)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version