Boston Python Workshop 3/Friday/OSX project dependencies: Difference between revisions

m
Protected "Boston Python Workshop 3/Friday/OSX project dependencies" ([edit=autoconfirmed] (indefinite) [move=autoconfirmed] (indefinite))
imported>Jesstess
(Created page with '==ColorWall== ===Download the ColorWall project=== You'll be writing graphical effects for an existing ColorWall project. Download this ColorWall code and example effects so yo…')
 
imported>Jesstess
m (Protected "Boston Python Workshop 3/Friday/OSX project dependencies" ([edit=autoconfirmed] (indefinite) [move=autoconfirmed] (indefinite)))
 
(8 intermediate revisions by 3 users not shown)
Line 7:
# Create a new folder called ColorWall on your Desktop
# Save the following files to the ColorWall folder:
#* http://web.mit.edu/jesstesslizdenys/www/BostonPythonWorkshop2BostonPythonWorkshop3/ColorWall/ascii8x8advanced_effects.py
#* http://web.mit.edu/jesstesslizdenys/www/BostonPythonWorkshop2BostonPythonWorkshop3/ColorWall/effectsascii8x8.py
#* http://web.mit.edu/jesstesslizdenys/www/BostonPythonWorkshop2BostonPythonWorkshop3/ColorWall/runeffects.py
#* http://web.mit.edu/jesstesslizdenys/www/BostonPythonWorkshop2BostonPythonWorkshop3/ColorWall/wallrun.py
#* http://web.mit.edu/lizdenys/www/BostonPythonWorkshop3/ColorWall/wall.py
 
===Test the ColorWall code===
 
Start a command prompt and navigate to the Desktop/ColorWall directory where the ColorWall code lives. For example, if the ColorWall project is at <code>/Usershome/jesstess/Desktop/ColorWall</code>,
 
<pre>
cd /Usershome/jesstess/Desktop/ColorWall
</pre>
 
Line 33 ⟶ 34:
 
at the command prompt to execute the run.py Python script. You should see a window pop up and start cycling through colorful effects. If you don't, let a staff member know.
 
Now type:
 
<pre>
python run.py -a -s
</pre>
 
at the command prompt to execute the run.py Python script so that it runs only the advanced effects. You should see a window pop up and start cycling through different colorful effects. If you don't, let a staff member know.
 
You can also run both sets of effects by typing:
 
<pre>
python run.py -a
</pre>
 
===Success!===
Line 45 ⟶ 60:
 
# Create a new folder called Wordplay on your Desktop
# Save http://mit.edu/jesstess/www/BostonPythonWorkshop2/Wordplay/words.pythe following files to the Wordplay folder.:
# Save# http://mit.edu/jesstess/www/BostonPythonWorkshop2BostonPythonWorkshop3/Wordplay/wordssowpods.txt to the Wordplay folder.
## http://mit.edu/jesstess/www/BostonPythonWorkshop3/Wordplay/scrabble.py
## http://mit.edu/jesstess/www/BostonPythonWorkshop3/Wordplay/scrabble_cheater.py
## http://mit.edu/jesstess/www/BostonPythonWorkshop3/Wordplay/words1.py
## http://mit.edu/jesstess/www/BostonPythonWorkshop3/Wordplay/words2.py
## http://mit.edu/jesstess/www/BostonPythonWorkshop3/Wordplay/words3.py
## http://mit.edu/jesstess/www/BostonPythonWorkshop3/Wordplay/words4.py
## http://mit.edu/jesstess/www/BostonPythonWorkshop3/Wordplay/words5.py
## http://mit.edu/jesstess/www/BostonPythonWorkshop3/Wordplay/words6.py
 
===Test the Wordplay code===
Line 62 ⟶ 85:
</pre>
 
will show you the source code files in that directory. One of the files is "wordswords1.py", which has a ".py" extension indicating that it is a Python script. Type:
 
<pre>
python wordswords1.py
</pre>
 
at the command prompt to execute the wordswords1.py Python script. You should see a column of English words printed to the screen. If you don't, let a staff member know.
 
===Success!===
Line 80 ⟶ 103:
<ol>
<li>Click and save these four dependencies to your Desktop:
* http://mit.edu/jesstess/www/BostonPythonWorkshop2BostonPythonWorkshop3/Twitter/simplejsonhttplib2-2.10.6.0.zip
 
* http://mit.edu/jesstess/www/BostonPythonWorkshop2BostonPythonWorkshop3/Twitter/httplib2simplejson-02.61.06.zip
* http://mit.edu/jesstess/www/BostonPythonWorkshop2BostonPythonWorkshop3/Twitter/python-twitter-0.8.2.zip
* http://mit.edu/jesstess/www/BostonPythonWorkshop2BostonPythonWorkshop3/Twitter/python-oauth2.zip
* http://mit.edu/jesstess/www/BostonPythonWorkshop2/Twitter/simplejson-2.1.6.zip
</li>
<li>
Line 93 ⟶ 115:
===Install the Twitter project dependencies===
 
Each of these 4 dependencies has an installer script that we'll need to run at a command prompt to install the software. '''It is important that the dependencies are installed in the order listed above.''' For each project, start a command prompt and navigate to the Desktop directory where the source code lives. For example, if the httplib2-0.6.0 project was extracted to /Users/jesstess/Desktop/Twitter/httplib2-0.6.0,
 
<pre>
Line 116 ⟶ 138:
 
<pre>
sudo python setup.py install
</pre>
 
Line 124 ⟶ 146:
 
# Create a new folder called Twitter on your Desktop
# Save http://mit.edu/jesstess/www/BostonPythonWorkshop2BostonPythonWorkshop3/Twitter/twitter_api.py to the Twitter folder.
# Save http://mit.edu/jesstess/www/BostonPythonWorkshop3/Twitter/util.py to the Twitter folder.
 
===Test the Twitter code===
Anonymous user