Welcome! Log In Create A New Profile

Advanced

Need help setting up Pronterface in Ubuntu

Posted by Mendel90 
Need help setting up Pronterface in Ubuntu
October 23, 2014 03:02PM
I have no experience with Ubuntu or Linux in general but managed to install the software needed for printrun.

In the terminal when I want to start the application with
Quote
pronterface.py

I get the following error:

Quote
jim@Ilias:~/Printrun$ ./pronterface.py
WARNING:root:Memory-efficient GCoder implementation unavailable: No module named gcoder_line
[WARNING] Could not setup DBus for sleep inhibition: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.ScreenSaver was not provided by any .service files
Traceback (most recent call last):
File "./pronterface.py", line 32, in from printrun.pronterface import PronterApp
File "/home/jim/Printrun/printrun/pronterface.py", line 32, in from . import pronsole
File "/home/jim/Printrun/printrun/pronsole.py", line 42, in from .power import powerset_print_start, powerset_print_stop
File "/home/jim/Printrun/printrun/power/__init__.py", line 90, in orig_nice = p.get_nice()
AttributeError: 'Process' object has no attribute 'get_nice'


Do I get this error because I do not have my 3D printer connected at this time?
In Windows I can open the program without the 3D printer connected.
Re: Need help setting up Pronterface in Ubuntu
October 23, 2014 11:14PM
seems like a missing dependency, sometimes a needed package get flagged as "suggested" instead of "required" and is omitted when installing. i suppose you followed this page? [reprap.org]

It might be a bit outdated... (it didn't work for me since i run 14.10)

In any case, the GCoder line is not the issue here, its the DBus.Error that's bugging me... might be related to a missing library...

Someone with a similar problem solved it by installing libappindicator and libdbusmenu-glib. It might or might not do you any good, but it doesn't hurt to try. Do a search with "apt-cache search libappindicator" for example to make sure of the name.

You might try installing build-essential as well its a big guess though...

You could also open an issue at the developper's github, you're going to need to register to do that, after you're logged in, click on the + sign beside your username and choose "new issue". [github.com]
Re: Need help setting up Pronterface in Ubuntu
October 24, 2014 01:23PM
Hi,

Thnx for the reply.
Just giving an update.

I've tried to install libappindicator but ran into some errors.
There are packages wich haven't been found so I'm looking into installing those as well.
As you mentioned the glib package has to be installed as well.

Quote
configure: error:
Package requirements
(gtk+-2.0 >= 2.18
glib-2.0 >= 2.26
gio-2.0 >= 2.26
indicator-0.4 >= 0.4.93
dbusmenu-gtk-0.4 >= 0.5.90) were not met:

No package 'gtk+-2.0' found
No package 'glib-2.0' found
No package 'gio-2.0' found
No package 'indicator-0.4' found
No package 'dbusmenu-gtk-0.4' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables LIBRARY_CFLAGS and LIBRARY_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.



Creality CR10/X Dual color/material
Creality CR10S
Ender3 Pro
Photon
Mendel90 (decommissioned)
Mamorubot Jupiter CoreXY
Re: Need help setting up Pronterface in Ubuntu
October 24, 2014 02:47PM
I've now installed all the libraries you mentioned the program doesn't want to open.

It seems to be an problem with privileges.
I get the following error:

First I tried:
Quote
jim@Ilias:~/Printrun$
cd printrun jim@Ilias:~/Printrun/printrun$ ./pronterface.py
bash: ./pronterface.py: Permission denied


Then:
Quote

jim@Ilias:~/Printrun$ cd printrun
jim@Ilias:~/Printrun/printrun$ sudo bash -c ./pronterface.py
bash: ./pronterface.py: Permission denied
jim@Ilias:~/Printrun/printrun$



Creality CR10/X Dual color/material
Creality CR10S
Ender3 Pro
Photon
Mendel90 (decommissioned)
Mamorubot Jupiter CoreXY
Re: Need help setting up Pronterface in Ubuntu
October 24, 2014 10:21PM
try with sudo usermod -a -G dialout $(whoami)

logout to activate the new group...

if it doesn't work, try sudo python pronterface.py
Re: Need help setting up Pronterface in Ubuntu
October 25, 2014 07:16AM
Quote

jim@Ilias:~/Printrun$ cd printrun
jim@Ilias:~/Printrun/printrun$ ./pronterface.py
bash: ./pronterface.py: Permission denied

chmod 755 ./pronterface.py   # needed only once
./pronterface.py
or
python ./pronterface.py


Generation 7 Electronics Teacup Firmware RepRap DIY
     
Re: Need help setting up Pronterface in Ubuntu
October 25, 2014 09:05AM
I have tried all the above and I think the priveliges are no longer an issue.
Now I have a new error.

Quote

jim@Ilias:~/Printrun/printrun$ chmod 755 ./pronterface.py
jim@Ilias:~/Printrun/printrun$ ./pronterface.py
Traceback (most recent call last):
File "./pronterface.py", line 32, in
from . import pronsole
ValueError: Attempted relative import in non-package

I have searched this valueError online but it seems to be to complicated for a novice like me...


Creality CR10/X Dual color/material
Creality CR10S
Ender3 Pro
Photon
Mendel90 (decommissioned)
Mamorubot Jupiter CoreXY
Re: Need help setting up Pronterface in Ubuntu
October 25, 2014 07:02PM
this is normal, do not run from ~/Printrun/printrun, run from ~/Printrun

i should've seen that earlier, i get the same error when running from Printrun/printrun, so...
Re: Need help setting up Pronterface in Ubuntu
October 26, 2014 11:14AM
I wasn't exactly sure wich pronterface.py to use so I started off with the 1 in Printrun folder and then tried the Printrun/printrun wich also doesn't work.

When I try to execute the file in the Printrun folder this is what happens:

Quote

jim@Ilias:~/Printrun$ chmod 755 ./pronterface.py
jim@Ilias:~/Printrun$ ./pronterface.py
WARNING:root:Memory-efficient GCoder implementation unavailable: No module named gcoder_line [WARNING] Could not setup DBus for sleep inhibition: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.ScreenSaver was not provided by any .service files

Traceback (most recent call last):
File "./pronterface.py", line 32, in from printrun.pronterface import PronterApp
File "/home/jim/Printrun/printrun/pronterface.py", line 32, in from . import pronsole
File "/home/jim/Printrun/printrun/pronsole.py", line 42, in from .power import powerset_print_start, powerset_print_stop
File "/home/jim/Printrun/printrun/power/__init__.py", line 90, in orig_nice = p.get_nice()
AttributeError: 'Process' object has no attribute 'get_nice' jim@Ilias:~/Printrun$



Creality CR10/X Dual color/material
Creality CR10S
Ender3 Pro
Photon
Mendel90 (decommissioned)
Mamorubot Jupiter CoreXY
Re: Need help setting up Pronterface in Ubuntu
October 26, 2014 11:31AM
Just a question, why are you using linux if you don't have no experience with it?

You could also try running Repetier Host, it may work for you. You will have to run it's dependency and configure scripts first.
Re: Need help setting up Pronterface in Ubuntu
October 26, 2014 12:08PM
did you make a bug report on the github/issue link i gave you earlier? and even before that, make sure you are running the latest github version...

and yes, i agree with isonoob, you might have more luck with repetier host.
Re: Need help setting up Pronterface in Ubuntu
October 26, 2014 12:39PM
I have installed Ubuntu on another partition on my old WinXP laptop.
Repetier host doesn't work good on XP and neither it will in Linux I suspect.(I have 1GB RAM)

I'm working on a fresh install off Ubuntu and almost immediately installed pronterface.
I downloaded and installed this program in the terminal and this should work.

@swe3tdave
I have visited the site on github and there the problems are printrun related.
I suspect my issue is with Linux and not with printrun.

My Win XP doesn't connect anymore with my 3D printer, due to an driver problem, so installing Ubuntu was my best alternative I could find.


Creality CR10/X Dual color/material
Creality CR10S
Ender3 Pro
Photon
Mendel90 (decommissioned)
Mamorubot Jupiter CoreXY
Re: Need help setting up Pronterface in Ubuntu
October 26, 2014 01:32PM
where did you download your copy of pronterface? what commands did you use?
Re: Need help setting up Pronterface in Ubuntu
October 26, 2014 01:34PM
what version of ubuntu are you using?
Re: Need help setting up Pronterface in Ubuntu
October 26, 2014 02:25PM
I'm using Ubuntu 12.04 (non PAE) because my CPU doesn't have PAE on it.
This has python 2.7 allready installed.

I got it from github.
I extracted the package to the printrun folder and installed it in terminal with 'setup.py'
Also I installed alot of other dependencies (pyserial, pyglet, wxPython e.a

Reading package lists... Done
Building dependency tree
Reading state information... Done
python-serial is already the newest version.
python-tk is already the newest version.
python-pyglet is already the newest version.
python-wxgtk2.8 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.



Only after that I found commands online to install pronterface directly in the terminal.
Maybe if you could tell me howto uninstall the version I have installed now I could try it
with a command in the terminal found on github? github

Edited 2 time(s). Last edit at 10/26/2014 02:34PM by Mendel90.


Creality CR10/X Dual color/material
Creality CR10S
Ender3 Pro
Photon
Mendel90 (decommissioned)
Mamorubot Jupiter CoreXY
Re: Need help setting up Pronterface in Ubuntu
October 26, 2014 02:46PM
not sure where your going with this but, if you installed with sudo python setup.py install

then you can uninstall with sudo python setup.py uninstall
Re: Need help setting up Pronterface in Ubuntu
October 26, 2014 03:00PM
yes that's how I installed it.
I was thinking of re-installing it as it doesn't work.

Does the printrun folder has to be installed in a specific folder?
I installed the printrun folder in my /Home directory


Creality CR10/X Dual color/material
Creality CR10S
Ender3 Pro
Photon
Mendel90 (decommissioned)
Mamorubot Jupiter CoreXY
Re: Need help setting up Pronterface in Ubuntu
October 26, 2014 03:46PM
the installation is supposed to make you enable to start pronterface without going into the folder and running ./pronterface.py

this is what i get:

swe3tdave@server:~$ pronterface.py 
Traceback (most recent call last):
  File "/usr/bin/pronterface.py", line 32, in 
    from printrun.pronterface import PronterApp
ImportError: No module named printrun.pronterface

it does work when running from ~/github/Printrun/pronterface.py

as for the location, you can put the Printrun folder wherever you want, i have a few other github apps that i keep in a github folder but this is entirely up to you.

with that said, dont bother running install, something is probably wrong with the code there... and since the program could have been updated since last time you downloaded, get a new copy:
And Verify if you have all the dependencies again:
sudo apt-get install python-serial python-wxgtk2.8 python-pyglet python-tornado python-setuptools python-libxml2 python-gobject avahi-daemon libavahi-compat-libdnssd1 python-dbus python-psutil git
git clone https://github.com/kliment/Printrun.git

EDIT: Oh and before that, run
sudo apt-get update

and then
sudo apt-get upgrade

Edited 1 time(s). Last edit at 10/26/2014 03:53PM by swe3tdave.
Re: Need help setting up Pronterface in Ubuntu
October 26, 2014 03:59PM
Your version of Ubuntu is a bit old, if you have 12.04 its 2 years and 6 months old... if its still not working, check the requirements: [github.com]

you can use synaptic to verify the installed version of a package. If you see something is lacking you're going to have to install that particular package from source...

Did you try installing 14.04 with forcepae? [help.ubuntu.com]

Edited 2 time(s). Last edit at 10/26/2014 04:09PM by swe3tdave.
Re: Need help setting up Pronterface in Ubuntu
October 26, 2014 04:12PM
oh and i just realized, there is a package of pronterface for your version of ubuntu... so try it first

sudo apt-add-repository ppa:richi-paraeasy/ppa
sudo apt-get update
sudo apt-get install pronterface
Re: Need help setting up Pronterface in Ubuntu
October 26, 2014 06:21PM
First I tried the last version of Ubuntu wich failed to install without error message.
I lost a few discs and decided to burn a new version wich told me right away about the PAE being non present.
forcepae didn't do anything so I searched and found the non-pae version 12.04

I have done an setup.py uninstall (printrun folder remains. Only /usr/lib and /usr/share files are uninstalled)
All dependencies are installed.

I did the git clone command wich made a new Printrun folder in my /Home folder

Then I downloaded the repository (I found this exact same command on the skeinforge site...)
The update then was installed but the last command sudo apt-get install pronterface gave me an error:

Quote

jim@Ilias:~$ sudo apt-get install pronterface
Reading package lists...
Done Building dependency tree
Reading state information... Done
E: Unable to locate package pronterface

I did not do the upgrade.
Quote
sudo apt-get upgrade
since I want to stay on 12.04 non pae


Creality CR10/X Dual color/material
Creality CR10S
Ender3 Pro
Photon
Mendel90 (decommissioned)
Mamorubot Jupiter CoreXY
Re: Need help setting up Pronterface in Ubuntu
October 26, 2014 06:40PM
When I look in synaptic manager the Pronterface package is not present (should be before python no?)
In the File menu I choose 'Add downloaded packages' and Pronterface is there but then It will not add itself to the list of packages...


Creality CR10/X Dual color/material
Creality CR10S
Ender3 Pro
Photon
Mendel90 (decommissioned)
Mamorubot Jupiter CoreXY
Re: Need help setting up Pronterface in Ubuntu
October 26, 2014 07:16PM
its possible the repository is just gone... confused smiley

honestly, i dont know what to tell you anymore
Re: Need help setting up Pronterface in Ubuntu
October 26, 2014 07:36PM
No problem.
Big thnx for helping me find a solution!


Creality CR10/X Dual color/material
Creality CR10S
Ender3 Pro
Photon
Mendel90 (decommissioned)
Mamorubot Jupiter CoreXY
Re: Need help setting up Pronterface in Ubuntu
October 26, 2014 10:59PM
This PPA only contains printrun packages for Oneiric (Ubuntu 11.10 which is long obsolete) and Trusty (14.04). So it is normal that there would be no package found on Ubuntu 12.04.

[launchpad.net]
Re: Need help setting up Pronterface in Ubuntu
October 27, 2014 05:13AM
Quote
Mendel90
I lost a few discs and decided to burn a new version wich told me right away about the PAE being non present.

PAE is something you have to switch on in your BIOS, IIRC.


Generation 7 Electronics Teacup Firmware RepRap DIY
     
Re: Need help setting up Pronterface in Ubuntu
October 27, 2014 07:01AM
If your CPU doesn't have PAE you will not have the
possibility to activate this in your BIOS. I have looked into all this
before I installed this version. My laptop is from 2006 btw.


Creality CR10/X Dual color/material
Creality CR10S
Ender3 Pro
Photon
Mendel90 (decommissioned)
Mamorubot Jupiter CoreXY
Re: Need help setting up Pronterface in Ubuntu
October 27, 2014 08:29AM
Hello,
If you want to install pronterface using its repository, you must add the repository in the source.list file (or using the GUI), and you must run "apt-get update" before trying to install the package (if you do not an update, your system will not see the packages in the new repository).

But it seems that this repository contains packages for most recent Ubuntu, then when you will try to install pronterface, I think some dependancies will not be found.
I advise you to find a way to install a newer version of Ubuntu (or another distro). You can also upgrade your Ubuntu to the latest LTS version (14.04) using the update manager.
Re: Need help setting up Pronterface in Ubuntu
October 29, 2014 02:22PM
I finally got Pronterface to open!
First I upgrade python from 2.7 to 3.2 but still didn't work.
Then I installed python-numpy and bang Pronterface opened.

Unfortunately the install is not over yet and I was hoping if somebody could help me to connect to my 3D printer.

1) I installed Skeinforge with sudo apt-get install skeinforge in terminal
Install happened without issues. However I do not know where it is installed.
Pronterface gives the following command: "python skeinforge/skeinforge_application/skeinforge.py" but can't find this file.
2) in Pronterface there are no COM ports to choose from. It just says 'none' (with my 3D printer connected)

Edited 1 time(s). Last edit at 10/29/2014 02:25PM by Mendel90.


Creality CR10/X Dual color/material
Creality CR10S
Ender3 Pro
Photon
Mendel90 (decommissioned)
Mamorubot Jupiter CoreXY
Re: Need help setting up Pronterface in Ubuntu
October 29, 2014 04:46PM
to connect to your 3D printer using 250000 baud rate, you need pyserial 2.7 or better. the package's name in ubuntu is python-serial or python3-serial

or you could try connecting at 115200...

as for the COM port, on my PC its /dev/ttyACM0

you can also try /dev/ttyUSB0

as for skeinforge location try: whereis skeinforge
it should give you the location /usr/bin/skeinforge

you can also try Slic3r instead of skeinforge: [slic3r.org]
there is a precompiled option if you dont want to use the source.
Sorry, only registered users may post in this forum.

Click here to login