Monday, April 18, 2011

rosinstall-0.5.16-py2.6.egg

While attempting to install ROS on a MacBookPro, I ran into the following issue:

...
File "/usr/local/lib/python2.6/dist-packages/rosinstall-0.5.16-py2.6.egg/EGG-INFO/scripts/rosinstall", line 115, in install
error_message = "Failed to detect %s presence at %s."%(self.vcsc.type, self.path)
AttributeError: VCSClient instance has no attribute 'type'

(Detailed explanation of error at: https://code.ros.org/trac/ros/ticket/3393.)

There's a ticket on ros.org, and several comments pointing out that the issue is "that using vcsc.type isn't supposed to work." and that "Instead calling get_vcs_type_name() fixes it."

So I thought to myself, "Great! It's a known error, I'll just change the line and run it again." Not so. It turns out that the file we need is inside the file /2.6/site-packages/rosinstall-0.5.16-py2.6.egg. After some reading, I found out what a .egg file was (like a jar file, but for python) and I unzipped it. There I found the offending file, and changed it.

At this point, however, the issue was egg-ing it back up again. More reading showed that I needed a setup.py file to make an egg, and that was nowhere to be found. After much googling, I found a similar setup.py file from rosinstall that wasn't actually meant to be an egg file, but something similar and I altered it a little bit.

Still no dice. Eventually, what I ended up doing was downloading the source code, changing the line, and hacking together a setup.py in order to create a new rosinstall-0.5.16-py2.6.egg.

If anyone else ever runs into this problem again, they should be able to just replace the current /2.6/site-packages/rosinstall-0.5.16-py2.6.egg with this one.

TL;DR: Download to http://www.seas.upenn.edu/~lfrazier/projects/rosinstall-0.5.16-py2.6.egg if you can't install ROS on a Mac due to the type/get_vcs_type_name() issue.

Friday, January 1, 2010

The Gaga Saga

Over the past week I have become fascinated once again by the insanity of Lady Gaga. I never thought I would know the beginning part of "Bad Romance" by heart, but just this afternoon I found myself correcting people ("It's 'ra ra ah ah ah roma roma ma Gaga ooh la la'! Come on!"). One other thing I picked up from one of my many viewings of the video is that she has a lot of product placements for Beats headphones. I got a pair myself, this Christmas, and I was excited to see Lady Gaga promoting her earbuds (unfortuantely, my headphones are on-ear, not the Lady Gaga model). All of a sudden, I was compelled to find every Beats reference in her videos, so here it is: The Beats Headphones/Gaga Saga. (All these videos are from the Youtube channel LadyGagaVEVO.)

Poker Face:
1:27
1:30
2:01

Bad Romance:
0:12
0:16

More will be added as I get bored and watch videos on repeat...

Thursday, October 22, 2009

Nursery Rhymes or Horror Movies (or Both??)

The following are all lines from nursery rhymes, copied verbatim:

Along Came a Spider

Someone's in the Kitchen with Dinah

Don't Let the Bedbugs Bite

Cradle and All

That Mockingbird Won't Sing

Lock Her Up, My Fair Lady

Tattered and Torn

Jill Came Tumbling After

This Old Man Came Rolling Home

Crying Through the Lock

Down Will Come Baby