Pithos error on openSUSE and Xfce

I installed openSUSE 13.2 with the Xfce desktop environment and at first installed Pithos from the repositories, but received an error when I tried to run it.

I removed that version and installed version 1.0 from the OBS and get what seems to be the same error.

drew@linux-6flt:~> pithos

** (pithos:9496): WARNING **: Couldn't register with accessibility bus: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
Traceback (most recent call last):
  File "/usr/bin/pithos", line 9, in <module>
    load_entry_point('pithos==1.0.0', 'gui_scripts', 'pithos')()
  File "/usr/lib/python3.4/site-packages/pkg_resources.py", line 356, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python3.4/site-packages/pkg_resources.py", line 2431, in load_entry_point
    return ep.load()
  File "/usr/lib/python3.4/site-packages/pkg_resources.py", line 2147, in load
    '__name__'])
  File "/usr/lib/python3.4/site-packages/pithos/pithos.py", line 33, in <module>
    from dbus.mainloop.glib import DBusGMainLoop
ImportError: No module named 'dbus'

I made sure I had gstreamer installed

drew@linux-6flt:~> zypper se -i gstreamLoading repository data...
Reading installed packages...


S | Name                        | Summary                                          | Type   
--+-----------------------------+--------------------------------------------------+--------
i | libgstreamer-0_10-0         | Streaming-Media Framework Runtime                | package
i | gstreamer-0_10-plugins-base | GStreamer Streaming-Media Framework Plug-Ins     | package
i | gstreamer-plugins-ugly      | GStreamer Streaming-Media Framework Plug-Ins     | package
i | gstreamer-plugins-bad       | GStreamer Streaming-Media Framework Plug-Ins     | package
i | libgstreamer-1_0-0          | Streaming-Media Framework Runtime                | package
i | gstreamer-plugins-good      | GStreamer Streaming-Media Framework Plug-Ins     | package
i | gstreamer-plugins-libav     | GStreamer Streaming-Media libav Plug-In          | package
i | gstreamer-0_10              | Streaming-Media Framework Runtime                | package
i | gstreamer                   | Streaming-Media Framework Runtime                | package
i | gstreamer-plugins-base      | GStreamer Streaming-Media Framework Plug-Ins     | package
i | gstreamer-fluendo-mp3       | GStreamer plug-in from Fluendo for MP3 support   | package
i | PackageKit-gstreamer-plugin | Simple software installation management software | package
i | gstreamer-plugin-gstclutter | GStreamer Clutter Plug-In                        | package
i | phonon-backend-gstreamer    | Phonon Multimedia Platform Abstraction           | package

Any ideas?

On Sat 31 Jan 2015 03:26:01 AM CST, dragonbite wrote:

I installed openSUSE 13.2 with the Xfce desktop environment and at first
installed Pithos from the repositories, but received an error when I
tried to run it.
<snip>
Any ideas?

Hi
Is dbus-1-python3 installed?


Cheers Malcolm °¿° LFCS, SUSE Knowledge Partner (Linux Counter #276890)
SUSE Linux Enterprise Desktop 12 GNOME 3.10.1 Kernel 3.12.32-33-default
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!

That did the trick!

Doesn’t packages in the repositories also list required dependencies so that they can be installed as well? I’m just wondering why this wasn’t pulled in initially.
What always gets me is “how do you figure this out?” with only this little bit of information? :slight_smile: I did look and saw dbus was installed.

When I run it from the terminal, I get these warning messages but I think unless I start digging into the code, it doesn’t do me much help

drew@linux-6flt:~> pithos

** (pithos:1898): WARNING **: Couldn't register with accessibility bus: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
/usr/lib/python3.4/site-packages/pithos/pithos.py:981: Warning: The property GtkButton:use-stock is deprecated and shouldn't be used anymore. It will be removed in a future version.
  builder.add_from_file(get_ui_file('main'))
/usr/lib/python3.4/site-packages/pithos/pithos.py:981: Warning: The property GtkSettings:gtk-button-images is deprecated and shouldn't be used anymore. It will be removed in a future version.
  builder.add_from_file(get_ui_file('main'))
/usr/lib/python3.4/site-packages/pithos/pithos.py:981: Warning: The property GtkImage:stock is deprecated and shouldn't be used anymore. It will be removed in a future version.
  builder.add_from_file(get_ui_file('main'))
/usr/lib/python3.4/site-packages/pithos/pithos.py:981: Warning: The property GtkImageMenuItem:image is deprecated and shouldn't be used anymore. It will be removed in a future version.
  builder.add_from_file(get_ui_file('main'))
/usr/lib/python3.4/site-packages/pithos/pithos.py:981: Warning: The property GtkSettings:gtk-menu-images is deprecated and shouldn't be used anymore. It will be removed in a future version.
  builder.add_from_file(get_ui_file('main'))
/usr/lib/python3.4/site-packages/pithos/PreferencesPithosDialog.py:248: Warning: The property GtkAlignment:left-padding is deprecated and shouldn't be used anymore. It will be removed in a future version.
  builder.add_from_file(get_ui_file('preferences'))
/usr/lib/python3.4/site-packages/pithos/PreferencesPithosDialog.py:248: Warning: The property GtkButton:xalign is deprecated and shouldn't be used anymore. It will be removed in a future version.
  builder.add_from_file(get_ui_file('preferences'))
/usr/lib/python3.4/site-packages/pithos/PreferencesPithosDialog.py:248: Warning: The property GtkWidget:margin-left is deprecated and shouldn't be used anymore. It will be removed in a future version.
  builder.add_from_file(get_ui_file('preferences'))
/usr/lib/python3.4/site-packages/pithos/PreferencesPithosDialog.py:248: Warning: The property GtkWidget:margin-right is deprecated and shouldn't be used anymore. It will be removed in a future version.
  builder.add_from_file(get_ui_file('preferences'))

Thanks again!

Hi
I guess I should know since I’m the maintainer, it’s a python3 application now :wink:

I need to fix the spec file, since I use GNOME, only test against a default install and add requires when problems encountered for other DE’s…

Those warnings are gone in the 1.0.1 version from GNOME:Apps I would grab that one…

Ugh… got an error with Pithos again.

Time I’m running Tumbleweed (KDE).

I installed Pithos from the repositories, removed it and tried the Tumbleweed 1-click from OBS (http://software.opensuse.org/package/pithos) which failed due to repository errors, and re-installed from the base repositories again.

Running Pithos …

  drew@Naga:~> pithos 
Traceback (most recent call last): 
  File "/usr/bin/pithos", line 5, in <module> 
    from pkg_resources import load_entry_point 
  File "/usr/lib/python3.4/site-packages/pkg_resources/__init__.py", line 3084, in <module> 
    @_call_aside 
  File "/usr/lib/python3.4/site-packages/pkg_resources/__init__.py", line 3070, in _call_aside 
    f(*args, **kwargs) 
  File "/usr/lib/python3.4/site-packages/pkg_resources/__init__.py", line 3097, in _initialize_master_working_set 
    working_set = WorkingSet._build_master() 
  File "/usr/lib/python3.4/site-packages/pkg_resources/__init__.py", line 651, in _build_master 
    ws.require(__requires__) 
  File "/usr/lib/python3.4/site-packages/pkg_resources/__init__.py", line 952, in require 
    needed = self.resolve(parse_requirements(requirements)) 
  File "/usr/lib/python3.4/site-packages/pkg_resources/__init__.py", line 839, in resolve 
    raise DistributionNotFound(req, requirers) 
pkg_resources.DistributionNotFound: The 'six' distribution was not found and is required by pylast 
drew@Naga:~> 



Gstreamer is installed

 drew@Naga:~> zypper se -i gstream 
Loading repository data... 
Reading installed packages... 

S | Name                              | Summary                              | Type        
--+-----------------------------------+--------------------------------------+------------ 
i | GStreamer Multimedia Codecs       | Multimedia playback for APE, AVI, -> | application 
i | PackageKit-gstreamer-plugin       | Simple software installation manag-> | package     
i | gstreamer                         | Streaming-Media Framework Runtime    | package     
i | gstreamer-0_10                    | Streaming-Media Framework Runtime    | package     
i | gstreamer-0_10-plugins-base       | GStreamer Streaming-Media Framewor-> | package     
i | gstreamer-0_10-plugins-good       | GStreamer Streaming-Media Framewor-> | package     
i | gstreamer-0_10-plugins-good-lang  | Languages for package gstreamer-0_-> | package     
i | gstreamer-fluendo-mp3             | GStreamer plug-in from Fluendo for-> | package     
i | gstreamer-plugins-bad             | GStreamer Streaming-Media Framewor-> | package     
i | gstreamer-plugins-base            | GStreamer Streaming-Media Framewor-> | package     
i | gstreamer-plugins-good            | GStreamer Streaming-Media Framewor-> | package     
i | gstreamer-plugins-libav           | GStreamer Streaming-Media libav Pl-> | package     
i | gstreamer-plugins-qt              | C++/Qt bindings for GStreamer        | package     
i | gstreamer-plugins-ugly            | GStreamer Streaming-Media Framewor-> | package     
i | gstreamer-plugins-ugly-orig-addon | GStreamer Streaming-Media Framewor-> | package     
i | libgstreamer-0_10-0               | Streaming-Media Framework Runtime    | package     
i | libgstreamer-1_0-0                | Streaming-Media Framework Runtime    | package     
i | phonon-backend-gstreamer          | Phonon Multimedia Platform Abstrac-> | package     
i | phonon4qt5-backend-gstreamer      | Phonon Multimedia Platform Abstrac-> | package     
drew@Naga:~>    


and dbus-1-python3

 drew@Naga:~> zypper info dbus-1-python3 
Loading repository data...                                                                 
Reading installed packages...                                                              


Information for package dbus-1-python3: 
--------------------------------------- 
Repository: openSUSE-Tumbleweed-Oss 
Name: dbus-1-python3 
Version: 1.2.0-6.5 
Arch: x86_64 
Vendor: openSUSE 
Installed: Yes 
Status: up-to-date 
Installed Size: 863.9 KiB 
Summary: Python bindings for D-Bus 
Description:  
  D-Bus python bindings for use with python programs. 
drew@Naga:~> 


Not sure what is missing…

On Sun 16 Aug 2015 03:16:01 PM CDT, dragonbite wrote:

Ugh… got an error with Pithos again.

Time I’m running Tumbleweed (KDE).

I installed Pithos from the repositories, removed it and tried the
Tumbleweed 1-click from OBS
(openSUSE Software) which failed due to
repository errors, and re-installed from the base repositories again.

Running Pithos …

Code:

drew@Naga:~> pithos
Traceback (most recent call last):
File “/usr/bin/pithos”, line 5, in <module>
from pkg_resources import load_entry_point
File “/usr/lib/python3.4/site-packages/pkg_resources/init.py”,
line 3084, in <module> @_call_aside
File “/usr/lib/python3.4/site-packages/pkg_resources/init.py”,
line 3070, in _call_aside f(*args, **kwargs)
File “/usr/lib/python3.4/site-packages/pkg_resources/init.py”,
line 3097, in _initialize_master_working_set working_set =
WorkingSet._build_master() File
“/usr/lib/python3.4/site-packages/pkg_resources/init.py”, line 651,
in _build_master ws.require(requires) File
“/usr/lib/python3.4/site-packages/pkg_resources/init.py”, line 952,
in require needed = self.resolve(parse_requirements(requirements)) File
“/usr/lib/python3.4/site-packages/pkg_resources/init.py”, line 839,
in resolve raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The ‘six’ distribution was not
found and is required by pylast drew@Naga:~>


Gstreamer is installed
Code:

drew@Naga:~> zypper se -i gstream
Loading repository data…
Reading installed packages…

S | Name |
Summary | Type
–±----------------------------------±-------------------------------------±-----------
i | GStreamer Multimedia Codecs | Multimedia playback for APE,
AVI, -> | application i | PackageKit-gstreamer-plugin | Simple
software installation manag-> | package i |
gstreamer | Streaming-Media Framework
Runtime | package i | gstreamer-0_10 |
Streaming-Media Framework Runtime | package i |
gstreamer-0_10-plugins-base | GStreamer Streaming-Media
Framewor-> | package i | gstreamer-0_10-plugins-good | GStreamer
Streaming-Media Framewor-> | package i |
gstreamer-0_10-plugins-good-lang | Languages for package
gstreamer-0_-> | package i | gstreamer-fluendo-mp3 |
GStreamer plug-in from Fluendo for-> | package i |
gstreamer-plugins-bad | GStreamer Streaming-Media
Framewor-> | package i | gstreamer-plugins-base | GStreamer
Streaming-Media Framewor-> | package i |
gstreamer-plugins-good | GStreamer Streaming-Media
Framewor-> | package i | gstreamer-plugins-libav | GStreamer
Streaming-Media libav Pl-> | package i |
gstreamer-plugins-qt | C++/Qt bindings for
GStreamer | package i | gstreamer-plugins-ugly |
GStreamer Streaming-Media Framewor-> | package i |
gstreamer-plugins-ugly-orig-addon | GStreamer Streaming-Media
Framewor-> | package i | libgstreamer-0_10-0 |
Streaming-Media Framework Runtime | package i |
libgstreamer-1_0-0 | Streaming-Media Framework
Runtime | package i | phonon-backend-gstreamer | Phonon
Multimedia Platform Abstrac-> | package i |
phonon4qt5-backend-gstreamer | Phonon Multimedia Platform
Abstrac-> | package drew@Naga:~> --------------------

and dbus-1-python3

Code:

drew@Naga:~> zypper info dbus-1-python3
Loading repository
data… Reading installed
packages…

Information for package dbus-1-python3:

Repository: openSUSE-Tumbleweed-Oss
Name: dbus-1-python3
Version: 1.2.0-6.5
Arch: x86_64
Vendor: openSUSE
Installed: Yes
Status: up-to-date
Installed Size: 863.9 KiB
Summary: Python bindings for D-Bus
Description:
D-Bus python bindings for use with python programs.
drew@Naga:~>


Not sure what is missing…

Hi
Is python3-six installed?


Cheers Malcolm °¿° LFCS, SUSE Knowledge Partner (Linux Counter #276890)
SUSE Linux Enterprise Desktop 12 GNOME 3.10.1 Kernel
3.12.44-52.10-default If you find this post helpful and are logged into
the web interface, please show your appreciation and click on the star
below… Thanks!

How many “python3-???” are there?! :wink:

That was it. It wasn’t installed and once python3-six was installed, Pithos worked! Thanks (again)!