WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: system-config-printer doesn't start  (Read 6454 times)

Offline jls

  • Hero Member
  • *****
  • Posts: 2135
system-config-printer doesn't start
« on: September 11, 2015, 07:53:05 AM »
Hi
Code: [Select]
jls@box:~$ system-config-printer
Traceback (most recent call last):
  File "/usr/share/system-config-printer/system-config-printer.py", line 25, in <module>
    import config
ImportError: No module named config
Thanks
dCore user

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: system-config-printer doesn't start
« Reply #1 on: September 12, 2015, 08:23:09 PM »
system-config-printer brongs up the GUI in dCore-wheezy.  But in dCore-trusty, which I assume you are using, the package name is system-config-printer-gnome, and I see those errors you report.  I am sure you have the knowledge to help troubleshoot this, and that would be appreciated.  But I will look for the issue and try to resolve it.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: system-config-printer doesn't start
« Reply #2 on: September 19, 2015, 06:58:02 PM »
I have made some startup scripts for the python3 packages, system-config-printer is working in dCore-wily, or at least the gtk3 interface is working.  I will get it working on the other dCore ports.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: system-config-printer doesn't start
« Reply #3 on: September 19, 2015, 08:54:59 PM »
Got it working in dCore-trusty, just needed a missing dep.  Please run "sce-update -a" and reboot, or just update the SCE that contains system-config-printer if it does not exist in any other loaded SCEs during runtime. 

Thank you for the report and your help in the improvement of dCore.
« Last Edit: September 19, 2015, 09:11:30 PM by Jason W »

Offline jls

  • Hero Member
  • *****
  • Posts: 2135
Re: system-config-printer doesn't start
« Reply #4 on: September 20, 2015, 09:35:49 AM »
Hi
Code: [Select]
jls@box:~$ system-config-printer
ERROR:root:Could not find any typelib for Gdk
Traceback (most recent call last):
  File "/usr/share/system-config-printer/system-config-printer.py", line 32, in <module>
    from gi.repository import Gdk
ImportError: cannot import name Gdk
jls@box:~$

dCore user

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14794
Re: system-config-printer doesn't start
« Reply #5 on: September 20, 2015, 09:38:09 AM »
In core, this means you're missing gtk3-gir or similar

Offline jls

  • Hero Member
  • *****
  • Posts: 2135
Re: system-config-printer doesn't start
« Reply #6 on: September 20, 2015, 10:13:59 AM »
Hi
after an update it works but:
Code: [Select]
jls@box:/mnt/sdc1/tce/sce$ cat system-config-printer-gnome.sce.dep
printer-driver-gutenprint
sce-load system-config-printer-gnome doesn't autoload printer-driver-gutenprint.
Thanks
dCore user

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: system-config-printer doesn't start
« Reply #7 on: September 20, 2015, 10:50:21 AM »
Ok, I will check into the .dep issue.

In this case, the /usr/bin/python3.4 file itself needed to exist as a "real" file and not a symlink to /tmp/tcloop/...   as the python binary uses relative paths.   

Offline jls

  • Hero Member
  • *****
  • Posts: 2135
Re: system-config-printer doesn't start
« Reply #8 on: September 20, 2015, 11:36:53 AM »
Hi. what are the packages to import in order to have a nomad dcore that can print on 'any' printer like the live ubuntu does? Thanks
dCore user

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: system-config-printer doesn't start
« Reply #9 on: September 20, 2015, 11:57:48 AM »
I imported system-config-printer-gnome using printer-driver-gutenprint as a dep and it loads as expected here.

Outside of cups I am not familiar of a package set that supports all printers. 

Offline Onyarian

  • Sr. Member
  • ****
  • Posts: 337
Re: system-config-printer doesn't start
« Reply #10 on: September 23, 2015, 02:08:48 PM »
Hi,

I imported system-config-printer-gnome and printer-driver-gutenprint and make a system-config-printer-gnome.sce.dep with printer-driver-gutenprint on it, when I run:

Code: [Select]
tc@ub-dC-tr-ordjd:~$ system-config-printer
ERROR:root:Could not find any typelib for Gdk
Traceback (most recent call last):
  File "/usr/share/system-config-printer/system-config-printer.py", line 32, in <module>
    from gi.repository import Gdk
ImportError: cannot import name Gdk
tc@ub-dC-tr-ordjd:~$

Then I make a sce-update system-config-printer-gnome  with:

Code: [Select]
No updates available for chosen SCEs at this time.
tc@ub-dC-tr-ordjd:~$

I'm missing something?

All this in trusty.
« Last Edit: September 23, 2015, 02:18:13 PM by Onyarian »

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: system-config-printer doesn't start
« Reply #11 on: September 24, 2015, 12:44:10 AM »
What is the output of "ls -l /usr/bin/python3.4"?

Offline Onyarian

  • Sr. Member
  • ****
  • Posts: 337
Re: system-config-printer doesn't start
« Reply #12 on: September 24, 2015, 10:01:36 AM »

Code: [Select]
tc@ub-dC-tr-ordjd:~$ ls -l /usr/bin/python3.4
lrwxrwxrwx 1 root root 39 sep 24 15:48 /usr/bin/python3.4 -> /tmp/tcloop/jdudesk1t/usr/bin/python3.4
tc@ub-dC-tr-ordjd:~$

Offline jls

  • Hero Member
  • *****
  • Posts: 2135
Re: system-config-printer doesn't start
« Reply #13 on: September 24, 2015, 10:42:09 AM »
Hi
Code: [Select]
jls@box:~$ ls -l /usr/bin/python3.4
ls: impossibile accedere a /usr/bin/python3.4: File o directory non esistente
jls@box:~$
Which in english is: no such file or directory, but  system-config-printer here starts.
dCore user

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: system-config-printer doesn't start
« Reply #14 on: September 24, 2015, 10:46:05 PM »
Here is what I get with that command:

tc@box:~$ ls -l /usr/bin/python3.4
lrwxrwxrwx 1 root root 49 Sep 24 22:48 /usr/bin/python3.4 -> /tmp/tcloop/200-multimedia-wily/usr/bin/python3.4
tc@box:~$