Welcome! Log In Create A New Profile

Advanced

Problems running Printrun

Posted by z0ttel 
Problems running Printrun
January 07, 2013 02:42PM
Dear RepRappers grinning smiley

I've some problems running Printrun on my PC (Ubuntu 12.04 x32). I've followed the installation procedure as described on the related wiki page Setup via experimental packages.

If I now start pronterface via 'pronterface' on the shell, I'll get the error message
Can't load image from file 'P-face.ico': file does not exist.
I've checked /usr/share/pronterface but the file 'P-face.ico' actually exists, so I don't see a reason why this message pops up.

Then I tried the installation method as described here Setup via update script. The error message mentioned above doesn't show up now, but the two lower bars showing the Extruder and Heat Bed temperature are not visible. Second, when clicking on File -> Projector, I get following error message on the shell and nothing happens:

oliver@IbmT60:~/Tools/reprap/Printrun$ python pronterface.py
Traceback (most recent call last):
  File "pronterface.py", line 415, in project
    from printrun import projectlayer
  File "/home/oliver/Tools/reprap/Printrun/printrun/projectlayer.py", line 22, in 
    import svg.document as wxpsvgdocument
  File "/home/oliver/Tools/reprap/Printrun/printrun/svg/document.py", line 13, in 
    from svg.css.colour import colourValue
ImportError: No module named svg.css.colour

Any ideas about how to solve these issues (I would be glad if at least one issue could be solved winking smiley )

Thanks!

Oliver

Edited 1 time(s). Last edit at 01/07/2013 03:29PM by z0ttel.
Re: Problems running Printrun
January 09, 2013 04:11AM
You may have better luck removing what you've installed, and then getting one of the pre-compiled printrun packages, unzip the kliment-printrun folder and dump it in your home folder, and then run it like:
python /home/oliver/kliment-Printrun-b6935b9/pronterface.py

The name of your kliment-Printrun folder may vary.

Oh, and if that gives you issues, sometimes you have better luck with it running it "sudo"

sudo python /home/oliver/kliment-Printrun-b6935b9/pronterface.py
(Ubuntu is sometimes funny about giving pronterface USB access if it's not running root)

Edited 2 time(s). Last edit at 01/09/2013 04:14AM by xclusive585.
Re: Problems running Printrun
January 10, 2013 02:21PM
Hi xclusive585,

thanks for your hint. It might be a dumb question, but do you know where I could find the precompiled packages? The only references I've found are those to the github repository and there are no packages.

Thanks!

Oliver
Re: Problems running Printrun
January 10, 2013 02:41PM
Github is where you want.

[github.com]

1. Download the Zip folder. (icon upper left of the page)

2. Extract the contained "kliment-Printrun...." folder into your "home" (/home/oliver/) directory
-this can be done by right clicking the zip, opening the zip and dragging the kliment folder into your home, or any number of other methods.

3. Follow the earlier instructions to launch it.

HTH

-Dave

[If you plan on using Skeinforge to slice your files, you will need to get that also from github and add it in "/home/oliver/kliment-Printrunxxxxx/skeinforge/")

Edited 1 time(s). Last edit at 01/10/2013 02:45PM by xclusive585.
Re: Problems running Printrun
January 10, 2013 03:48PM
Hi xclusive585,

ok, I thought there some packages provided elsewhere. The procedure described by you leads me to my first problem (please have a look at the screenshot)

Any ideas?

BR
Oliver
Attachments:
open | download - Bildschirmfoto vom 2013-01-10 21:44:15.png (166.4 KB)
Re: Problems running Printrun
January 11, 2013 09:30AM
Edit /home/oliver/Tools/reprap/Printrun-master/printrun/svg/document.py and remove "svg." from lines 13 and 14:

"""
    SVGDocument
"""
import wx

from cStringIO import StringIO
import warnings
import math
from functools import wraps

import pathdata
import css
from css.colour import colourValue
from css import values
from attributes import paintValue
Re: Problems running Printrun
January 11, 2013 12:30PM
That did solve the problem - thank you miso!

Do you have an idea why this is causing problems on my system? Normally, I would expect that the files located at github are actually correct.
Re: Problems running Printrun
January 14, 2013 07:31AM
Glad to hear that helped.

This also affects my (gentoo) system, though I'v never used that feature before so I didn't noticed. Maybe its a bug, maybe its only supposed to work when properly setup-ed. Since I prefer running pronterface directly from git repository, and "setup.py install" requires root access, I am not very eager to further investigate it, sorry. Judging from the lack of peoples response, I would say it either works for them, or they simply don't care. Anyway, if you think so its a bug, that should be fixed, feel free to report it.
Re: Problems running Printrun
February 01, 2013 03:05PM
I'm sorry but I have to re-open this thread once again. Now I have a Gen7 electronics with the Teacup firmware up and running. From the shell, I'm able to communicate with the electronics (using func.sh which is part of the Teacup firmware) - I can drive the motors or fetch information from the Ecu.

But once again, I have trouble running Printrun/pronterface, because it won't connect with the printer. The port is the same as for func.sh, the baud rate is the same and it also doesn't matter if it's running as root or not. Every time I try to connect to the Ecu, I get a "Connecting ..." in the log view but nothing more happens.

Does anybody know what to do or where to look?

Thanks in advance!
Oliver


Edit: Seems that I've found and solved the issue grinning smiley

When the connect button is being hit, pronterface waits for a short time for a response from the printer. If the printer hasn't responded, the command to 'connect' (basically, it's just sending M105 and waiting for a response) is repeated.

In my case, it seems that the timeout time while waiting for a response was too short. I've modified line 150 in printcore.py from

if empty_lines == 5: break


to

if empty_lines == 50: break


...and now the connection always succeeds.

I'm not sure if this is a problem of Teacup or Printrun - anyway, it's fixed for me grinning smiley

Edited 2 time(s). Last edit at 02/01/2013 05:57PM by z0ttel.
Sorry, only registered users may post in this forum.

Click here to login