Tiny Core Linux

dCore Import Debian Packages to Mountable SCE extensions => dCore X86 => dCore x86 Imported Extensions => Topic started by: jls on September 11, 2015, 07:53:05 AM

Title: system-config-printer doesn't start
Post by: jls 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
Title: Re: system-config-printer doesn't start
Post by: Jason W 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.
Title: Re: system-config-printer doesn't start
Post by: Jason W 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.
Title: Re: system-config-printer doesn't start
Post by: Jason W 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.
Title: Re: system-config-printer doesn't start
Post by: jls 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:~$

Title: Re: system-config-printer doesn't start
Post by: Juanito on September 20, 2015, 09:38:09 AM
In core, this means you're missing gtk3-gir or similar
Title: Re: system-config-printer doesn't start
Post by: jls 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
Title: Re: system-config-printer doesn't start
Post by: Jason W 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.   
Title: Re: system-config-printer doesn't start
Post by: jls 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
Title: Re: system-config-printer doesn't start
Post by: Jason W 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. 
Title: Re: system-config-printer doesn't start
Post by: Onyarian 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.
Title: Re: system-config-printer doesn't start
Post by: Jason W on September 24, 2015, 12:44:10 AM
What is the output of "ls -l /usr/bin/python3.4"?
Title: Re: system-config-printer doesn't start
Post by: Onyarian 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:~$
Title: Re: system-config-printer doesn't start
Post by: jls 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.
Title: Re: system-config-printer doesn't start
Post by: Jason W 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:~$
Title: Re: system-config-printer doesn't start
Post by: sm8ps on January 27, 2016, 08:44:53 AM
Hope it is okay to revive a dormant thread! I am at the same point as Onyarian. After loading printer-driver-gutenprint and system-config-printer-gnome, I get the following:
Code: [Select]
$ 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
I installed python-gtk2 to no avail.
Since it seemed to play a role in this thread:
Code: [Select]
$ ls -l /usr/bin/python*
lrwxrwxrwx 1 root root       9 Jan 27 13:59 /usr/bin/python -> python2.7
lrwxrwxrwx 1 root root       9 Jan 27 14:26 /usr/bin/python2 -> python2.7
-rwxr-xr-x 1 root root 3156448 Jun 22  2015 /usr/bin/python2.7
lrwxrwxrwx 1 root root      18 Jan 27 14:04 /usr/bin/python3 -> /usr/bin/python3.4
-rwxr-xr-x 1 root root 3802224 Jun 19  2015 /usr/bin/python3.4
lrwxrwxrwx 1 root root      35 Jan 27 14:04 /usr/bin/python3.4m -> /tmp/tcloop/lxde/usr/bin/python3.4m
lrwxrwxrwx 1 root root      10 Jan 27 14:04 /usr/bin/python3m -> python3.4m
Title: Re: system-config-printer doesn't start
Post by: sm8ps on January 27, 2016, 09:40:59 AM
Progress made after a lot of fruitless searching: it seems that gir1.2-gtk-3.0 is needed. Can somebody verify? (Onyarian?)
The following DBus-related error message seems harmless but may need additional attention when it comes to saving credentials on network printers.
Code: [Select]
** (system-config-printer.py:29303): WARNING **: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files
ERROR:root:Could not find any typelib for GnomeKeyring
Title: Re: system-config-printer doesn't start
Post by: Jason W on January 27, 2016, 10:23:00 AM
I just removed those dependencies from system-config-printer since you said in another thread the package does not exist.  How did you import it?
Title: Re: system-config-printer doesn't start
Post by: sm8ps on January 27, 2016, 10:26:29 AM
Thanks for checking back, Jason! The package is system-config-printer-gnome which imports fine. The remark about the package system-config-printer was simply to point out the issue but it was not an obstacle.
Title: Re: system-config-printer doesn't start
Post by: Jason W on January 27, 2016, 12:11:40 PM
Ok, the dep gir1.2-gtk-3.0 has been added back to system-config-printer.
Title: Re: system-config-printer doesn't start
Post by: sm8ps on January 28, 2016, 05:45:43 AM
I am a bit confused about the difference between system-config-printer{-gnome}. Nevertheless, would you please add gir1.2-gtk-3.0 as dependency of system-config-printer-gnome? At present only the following packages get included.
Code: [Select]
gir1.2-gdkpixbuf-2.0
gir1.2-glib-2.0
gir1.2-notify-0.7
gir1.2-packagekitglib-1.0
Title: Re: system-config-printer doesn't start
Post by: Jason W on January 28, 2016, 10:09:32 AM
Ok, added.