Forum Index > Projects > Egg-Bot
 Few Issues
 |  Printable Version
By: Anonymous: dlarrivee () on Thursday, November 18 2010 @ 10:19 PM PST (Read 3594 times)  
Anonymous: dlarrivee

First of all, I've got a MacBook with 10.4.11, and an Intel chip. I can only find a .dmg for Inkscape 0.47 not 0.48 that will work on this...

When I open Eggbot Control and try to do anything I get an error:


File "Contents/Resources/extensions/eggbot.py", line 705
d = "".join( ["M " + pa if i == 0 else " L " + pa for i in range( 0, len( pa ) )] )
^
SyntaxError: invalid syntax



The other strange thing, I've got the Eggbot plugged into the wall, and the USB connected to the Macbook and the led for usb on the EiBot Board is flashing?

Thanks for any help.





       
   
By: dnewman (offline) on Thursday, November 18 2010 @ 10:44 PM PST  
dnewman

Quote by: dlarrivee

First of all, I've got a MacBook with 10.4.11, and an Intel chip. I can only find a .dmg for Inkscape 0.47 not 0.48 that will work on this...

When I open Eggbot Control and try to do anything I get an error:


File "Contents/Resources/extensions/eggbot.py", line 705
d = "".join( ["M " + pa if i == 0 else " L " + pa for i in range( 0, len( pa ) )] )
^
SyntaxError: invalid syntax



At issue is that the Python being used by your Inkscape is too old to support some of the Python expressions used in eggbot.py and eggbot_maze.py. To accomodate this, both extensions have been updated to support older versions of Python. From the Eggbot code repository,

http://code.google.com/p/eggbotcode/source/browse/#svn/trunk/inkscape_driver

you can pull the latest eggbot.py and eggbot.inx and place them in the directory

/Applications/Inkscape.app/Contents/Resources/extensions/


The other strange thing, I've got the Eggbot plugged into the wall, and the USB connected to the Macbook and the led for usb on the EiBot Board is flashing?



Brian is the authority, but my observations for Macs are that there are at least three blink patterns:

Really fast blink: no USB connection
Slow, on/off blink: establishing USB connection
on/off on/off pause blink: USB connection established

Regards,
Dan


Cow Canyon Saddle Clear Sky Chart


Forum Evil Scientist
Evil Scientist

Status: offline

Registered: 09/08/10
Posts: 149
Mt. Baldy,
California

Profile Email    
   
By: Anonymous: dlarrivee () on Friday, November 19 2010 @ 12:01 AM PST  
Anonymous: dlarrivee

That made a difference, now I'm getting an error like this:

The fantastic lxml wrapper for libxml2 is required by inkex.py and therefore this extension. Please download and install the latest version from http://cheeseshop.python.org/pypi/lxml/, or install it through your package manager by a command like: sudo apt-get install python-lxml



Wish I could use a newer version of Inkscape...





       
   
By: Windell (offline) on Friday, November 19 2010 @ 10:42 AM PST  
Windell

I don't immediately know the answer to this one (Dan may). It may mean that you need to install a newer version of Inkscape, or edit the paths that Inkscape uses for its python. It could also mean that you actually need to install that software it refers to. I'll look into it.

Now, this particular error is *not* eggbot related-- it's a pure problem with Inkscape and its ability to run any extensions at all --so you could potentially ask for help on it at https://answers.launchpad.net/inkscape


Windell H. Oskay
drwho(at)evilmadscientist.com
http://www.evilmadscientist.com/

Forum Evil Scientist
Evil Scientist

Status: offline

Registered: 06/15/06
Posts: 1932
Sunnyvale, CA

Profile Email Website  
   
By: dnewman (offline) on Friday, November 19 2010 @ 11:52 AM PST  
dnewman

Unfortunately, I do not know the answer to that issue. I know how to produce the same error message on OS X 10.5 and 10.6: just try running any of the extensions from a terminal window,

% cd /Applications/Inkscape.app/Contents/Resources/extensions/
% python handles.py
The fantastic lxml wrapper for libxml2 is required by inkex.py and therefore this extension. Please download and install the latest version from http://cheeseshop.python.org/pypi/lxml/, or install it through your package manager by a command like: sudo apt-get install python-lxml

On OS X 10.5 and 10.6, I get that error because I haven't set up my run environment correctly. In the versions of Inkscape I'm familiar with, there's an inkscape shell script which establishes the correct run-time environment,

/Applications/Inkscape.app/Contents/Resources/bin/inkscape

So, you're seeing an error about a missing libxml2 suggests either that you are really missing it, or the runtime environment isn't being correctly established when Inkscape starts running.

However, as Windell points out this is an issue with Inkscape itself. You may want to scan the Inkscape FAQs and forums to see if this issue has arisen before. If you want to post to the Inkscape folks, you may want to reproduce the issue running one of the extensions which ship with Inkscape. That so that you don't get a knee-jerk reaction of, "not our extension".

Dan



Cow Canyon Saddle Clear Sky Chart


Forum Evil Scientist
Evil Scientist

Status: offline

Registered: 09/08/10
Posts: 149
Mt. Baldy,
California

Profile Email    
   
By: dnewman (offline) on Saturday, November 20 2010 @ 04:37 PM PST  
dnewman

Quote by: dlarrivee

First of all, I've got a MacBook with 10.4.11, and an Intel chip. I can only find a .dmg for Inkscape 0.47 not 0.48 that will work on this...



I've looked but been unable to locate an Inkscape build for Intel OS X 10.4. I've seen Inkscape 0.47 and 0.48 builds for PPC OS X 10.4 but not for Intel. Are you perhaps using the PPC build of Inkscape 0.47 and running it under PPC emulation (Roesetta) on your MacBook? I'm not sure that that should make any difference. I'm just trying to understand what exactly you are running for Inkscape.

Dan


Cow Canyon Saddle Clear Sky Chart


Forum Evil Scientist
Evil Scientist

Status: offline

Registered: 09/08/10
Posts: 149
Mt. Baldy,
California

Profile Email    
   
By: dnewman (offline) on Sunday, November 21 2010 @ 07:47 AM PST  
dnewman

BTW, here's my concern about whether you're running a PPC version of Inkscape on an Intel system: the PPC Inkscape distro does not include the Python packages for Intel architecture. (I looked in Inkscape-0.48.0-1-TIGER-PPC.dmg.) When you start Inkscape running, the inkscape shell script sets up an architecture dependent PYTHONPATH environment variable. On your Intel MacBook, it will reference Intel Python packages which were NOT provided by the 0.47 Inkscape PPC distribution for OS X. You might try pulling those Python packages from the Inkscape site (see a prior posting of mine in this thread) and installing the Intel (i386) packages to

/Volumes/Inkscape/Inkscape.app/Contents/Resources/python/site-packages/i386/

and see if that helps.

Regards,
Dan


Cow Canyon Saddle Clear Sky Chart


Forum Evil Scientist
Evil Scientist

Status: offline

Registered: 09/08/10
Posts: 149
Mt. Baldy,
California

Profile Email    
   
By: dnewman (offline) on Sunday, November 21 2010 @ 07:53 AM PST  
dnewman

Sorry, I thought I had mentioned the Inkscape Python packages download site in a prior message. I see that I hadn't. It's at

http://inkscape.modevia.com/macosx-snap/?C=M;O=D

Look for the entry "Python-packages.dmg". It's the i386 folder which you would move to the directory

/Volumes/Inkscape/Inkscape.app/Contents/Resources/python/site-packages/

Dan


Cow Canyon Saddle Clear Sky Chart


Forum Evil Scientist
Evil Scientist

Status: offline

Registered: 09/08/10
Posts: 149
Mt. Baldy,
California

Profile Email    
   
By: Windell (offline) on Sunday, November 21 2010 @ 12:27 PM PST  
Windell

This is starting to make sense. My test system here with 10.4 is on a G5, so I haven't come across this one myself, but it sounds like Dan is on the right track.


Windell H. Oskay
drwho(at)evilmadscientist.com
http://www.evilmadscientist.com/

Forum Evil Scientist
Evil Scientist

Status: offline

Registered: 06/15/06
Posts: 1932
Sunnyvale, CA

Profile Email Website  
   



 All times are PDT. The time is now 12:15 AM.
Normal Topic Normal Topic
Locked Topic Locked Topic
Sticky Topic Sticky Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Able to Post 
Filtered HTML Allowed 
Censored Content 

Evil Mad Scientist Forum Archives — Read only!

Please visit our new forums for new discussions.


DIY Hardware for Electronic Art


The Original Egg-Bot Kit


Octolively
Interactive LED kits


Meggy Jr RGB
LED matrix game
development kit.


Business-card sized
AVR target boards


Peggy 2
LED Pegboard kits

My Account






Lost your password?