! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Python install instructions for new building methodology
Status:
RESOLVED: FIXED
Product:
Catfish
Component:
General

Comments

Description Simon Dedman 2019-01-30 04:19:16 CET
Hi Sean,

Since the move to python installer vs configure/make/install, any chance the INSTALL file could have more detailed instructions on how to do this? I imagine you installed all the python libraries ages ago but for newbies my experience has been:

> sudo python setup.py install (per INSTALL)
To build catfish you need https://launchpad.net/python-distutils-extra

Go there, download, spend 15 mins reading install scripts of something which I don't know what it does or why I want it, info isn't actually helpful for installing, google issue:

> sudo apt install python-setuptools python-distutils-extra
and then in the downloaded distils extra folder just in case
> sudo python setup.py install

Back to catfish folder,
> sudo python setup.py install
ERROR: Python module zeitgeist.client not found
ERROR: Python module zeitgeist.datamodel not found
ERROR: Python module zeitgeist not found
ERROR: Python module pexpect not found
ERROR: Python module pexpect not found

Google pexpect,
> pip install pexpect
pip not found need to install
> sudo apt install python-pip
> pip install pexpect

Exception:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
  File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 360, in run
    prefix=options.prefix_path,
  File "/usr/lib/python2.7/dist-packages/pip/req/req_set.py", line 784, in install
    **kwargs
  File "/usr/lib/python2.7/dist-packages/pip/req/req_install.py", line 851, in install
    self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
  File "/usr/lib/python2.7/dist-packages/pip/req/req_install.py", line 1064, in move_wheel_files
    isolated=self.isolated,
  File "/usr/lib/python2.7/dist-packages/pip/wheel.py", line 247, in move_wheel_files
    prefix=prefix,
  File "/usr/lib/python2.7/dist-packages/pip/locations.py", line 153, in distutils_scheme
    i.finalize_options()
  File "/usr/lib/python2.7/distutils/command/install.py", line 395, in finalize_options
    ('build_lib', 'build_lib'))
  File "/usr/lib/python2.7/distutils/cmd.py", line 297, in set_undefined_options
    src_cmd_obj = self.distribution.get_command_obj(src_cmd)
  File "/usr/lib/python2.7/distutils/dist.py", line 856, in get_command_obj
    self._set_command_options(cmd_obj, options)
  File "/usr/lib/python2.7/distutils/dist.py", line 899, in _set_command_options
    % (source, command_name, option))
DistutilsOptionError: error in setup.cfg: command 'build' has no such option 'i18n'


TLDR: classic problem with linux. Trying to install a small program and half an hour later I'm trying to debug a dependency of a dependency of a dependency.
So yeah, any chance of a quick explanation of what we actually need to install and how we do it?
Or a deb or a ppa update?
Cheers!

p.s. v1.4.7 not listed in version number below. Are we supposed to file bugs here or launchpad?
Comment 1 Sean Davis editbugs 2019-03-06 02:29:35 CET
Thanks for the bug report! I've added version 1.4.6 and 1.4.7 to the list. Unfortunately the version increments are not automatic.

I'm going to work on improving the documentation for building Catfish to make it easier for new users to do, and will refresh the PPA as well.

In the meantime, version 1.4.7 is packaged for Ubuntu 19.04 here: https://launchpad.net/ubuntu/+source/catfish/1.4.7-1
You should be able to install this package version.
Comment 2 Simon Dedman 2019-03-06 03:09:34 CET
Brilliant stuff, cheers fella, will install tonight. Have a good one!
Comment 3 Simon Dedman 2019-03-06 16:33:06 CET
Cheers for the help, though I ran into the same problems. For the install file, these can be fixed as follows:

ERROR: Python module zeitgeist.client not found
ERROR: Python module zeitgeist.datamodel not found
ERROR: Python module zeitgeist not found
ERROR: Python module pexpect not found
ERROR: Python module pexpect not found

sudo apt-get install python-zeitgeist
sudo apt-get install python-pexpect

The install log also gave me this; not sure if it's a problem for FYI:
WARNING: the following files are not recognized by DistUtilsExtra.auto:
  ChangeLog
  INSTALL
  PKG-INFO

Also then launching catfish from terminal works fine (it seems) but gives this:

ERROR:dbus.proxies:Introspect error on org.gnome.zeitgeist.Engine:/org/gnome/zeitgeist/log/activity: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.zeitgeist.Engine was not provided by any .service files

(catfish:3799): Gtk-WARNING **: 07:27:39.424: ../../../../gtk/gtkwidget.c:8584: widget not within a GtkWindow


Cheers muchacho.
Comment 4 Git Bot editbugs 2019-09-07 12:21:22 CEST
Sean Davis referenced this bugreport in commit e2eb6bb22de7eb0712f19a0087eb973258df6ab2

Improve installation instructions (bug #15105)

https://git.xfce.org/apps/catfish/commit?id=e2eb6bb22de7eb0712f19a0087eb973258df6ab2
Comment 5 Sean Davis editbugs 2019-09-07 12:23:16 CEST
I've expanded the installation instructions based on your feedback. The changes can be found in the above commit.

Thanks!

Bug #15105

Reported by:
Simon Dedman
Reported on: 2019-01-30
Last modified on: 2019-09-07

People

Assignee:
Sean Davis
CC List:
1 user

Version

Attachments

Additional information