python is sexy

December 17th, 2007

flipp@borked:~/bin/python-twitter-0.5$ sudo python setup.py clean
running clean
flipp@borked:~/bin/python-twitter-0.5$ sudo python setup.py build
running build
running build_py
running egg_info
writing requirements to python_twitter.egg-info/requires.txt
writing python_twitter.egg-info/PKG-INFO
writing top-level names to python_twitter.egg-info/top_level.txt
writing dependency_links to python_twitter.egg-info/dependency_links.txt
reading manifest file ‘python_twitter.egg-info/SOURCES.txt’
writing manifest file ‘python_twitter.egg-info/SOURCES.txt’
flipp@borked:~/bin/python-twitter-0.5$ sudo python setup.py install
running install
running bdist_egg
running egg_info
writing requirements to python_twitter.egg-info/requires.txt
writing python_twitter.egg-info/PKG-INFO
writing top-level names to python_twitter.egg-info/top_level.txt
writing dependency_links to python_twitter.egg-info/dependency_links.txt
reading manifest file ‘python_twitter.egg-info/SOURCES.txt’
writing manifest file ‘python_twitter.egg-info/SOURCES.txt’
installing library code to build/bdist.linux-i686/egg
running install_lib
running build_py
creating build/bdist.linux-i686/egg
copying build/lib/twitter.py -> build/bdist.linux-i686/egg
byte-compiling build/bdist.linux-i686/egg/twitter.py to twitter.pyc
creating build/bdist.linux-i686/egg/EGG-INFO
copying python_twitter.egg-info/PKG-INFO -> build/bdist.linux-i686/egg/EGG-INFO
copying python_twitter.egg-info/SOURCES.txt -> build/bdist.linux-i686/egg/EGG-IN
FO
copying python_twitter.egg-info/dependency_links.txt -> build/bdist.linux-i686/e
gg/EGG-INFO
copying python_twitter.egg-info/requires.txt -> build/bdist.linux-i686/egg/EGG-I
NFO
copying python_twitter.egg-info/top_level.txt -> build/bdist.linux-i686/egg/EGG-
INFO
zip_safe flag not set; analyzing archive contents…
creating ‘dist/python_twitter-0.5-py2.5.egg’ and adding ‘build/bdist.linux-i686/
egg’ to it
removing ‘build/bdist.linux-i686/egg’ (and everything under it)
Processing python_twitter-0.5-py2.5.egg
Removing /usr/lib/python2.5/site-packages/python_twitter-0.5-py2.5.egg
Copying python_twitter-0.5-py2.5.egg to /usr/lib/python2.5/site-packages
python-twitter 0.5 is already the active version in easy-install.pthInstalled /usr/lib/python2.5/site-packages/python_twitter-0.5-py2.5.egg
Processing dependencies for python-twitter==0.5
Finished processing dependencies for python-twitter==0.5
flipp@borked:~/bin/python-twitter-0.5$

it’s even simpler than using cpan for perl. no setup program, not prompts, just some commands and bam stuff gets configured, built, and installed. i’ve played with coding with python before, mostly in dealing with red hat/anaconda installs but this is just too cool. checkout this comment for more info on setting up python.
[ setting up python-twitter for deskbar-twitter for deskbar]

 

ubuntu/compiz not loading gnome panel applets

December 13th, 2007

i really haven’t had much luck with compiz and this nvidia card. sometimes it wants to work and sometimes it doesn’t. it looks like the ubuntu developers are working on making compiz from ubuntu 7.10 forwards compatible with ubuntu 8.04. right now everything seems to be working minus the gnome disk mounter applet. some applets are able to be loaded into the panel, some just don’t draw, and others spit out: “The panel encountered a problem while loading “OAFIID:XXXXApplet”.”

back to reading i guess. i did have to add some option to my xorg.conf, they weren’t added by the restricted modules applet when i upgraded from 7.04 to 7.10.

flipp@borked:/etc/X11$ diff xorg.conf xorg.conf.121307
99,101d98
< Option “AllowGLXWithComposite” “true”
< Option “RenderAccel” “true”
< Option “NoLogo” “True”
105,108d101
< Section “Extensions”
< Option “Composite” “Enable”
< EndSection
<
146d138
< Option “AddARGBGLXVisuals” “True”

i still need test a few apps to see if they are drawn correctly, but so far so good.

update: here’s some links if you need some help setting up compiz
- compiz.org : ubuntu installation guide
- debian how-to : AIGLX + compiz [good how-to]
- some applications won’t start or are displayed incorrectly
- ubuntu guide (gutsy) advanced desktop effects
- compiz up and running in debian

also, the gnome disk manager works in the panel now. strange. there’s definatly something wierd going on with setup when i turn on the gl desktop.

checking /var/log/Xorg.0.log it looks like i’m currently running this driver, NVIDIA dlloader X Driver 1.0-9639 Mon Apr 16. you can also use glxinfo | grep -i “opengl version” to figure out what driver you’re using. (OpenGL version string: 2.1.0 NVIDIA 96.39)

the compiz nvidia how-to says that version should be fine, but looking at the latest nvidia drivers [here] it looks like the 96.x series is for older gpus and there’s a 100.x series for newer cards. i found my card [Quadro NVS 110M] in the 100.14.19 readme, so i guess i’ll try removing my current driver and installing the new one.

 
other posts [ newer ]