What python modules (or packages) does variety need?
I am trying to install Variety on Debian Sid. The setup.py gives me following errors (it gave one more, but I managed to solve it):
```
% python setup.py install --user
ERROR:root:Could not find any typelib for Notify
ERROR: Python module DominantColors not found
ERROR:root:Could not find any typelib for Notify
ERROR: Python module Util not found
ERROR:root:Could not find any typelib for Notify
ERROR: Python module DominantColors not found
running install
Traceback (most recent call last):
File "setup.py", line 114, in <module>
cmdclass=
File "/usr/lib/
distutils.
File "/usr/lib/
dist.
File "/usr/lib/
self.
File "/usr/lib/
cmd_obj.run()
File "setup.py", line 76, in run
values = {'__variety_
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
```
I am not able to find packages "python-
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Variety Edit question
- Assignee:
- No assignee Edit question
- Last query:
- 2012-11-23
- Last reply:
- 2012-12-09
Peter Levi (peterlevi) said : | #1 |
Both DominantColors and Util are internal Variety files (see them in variety folder), not external module dependencies. To be fair I haven't personally tried running setup.py, I use Quickly to package it for Ubuntu. You can see the list of external module dependencies in debian/control.
1. Is Quickly available for Debian?
2. If you install the external dependencies (listed in debian/control) you should be able to run Variety even without running setup.py. It is pretty self contained and can run from its sources (just run bin/variety -v). Please tell me if this approach works for you.
I'm not on my dev machine right now, but later on I will try running setup.py myself to see why it can't find DominantColors and Util classes.
Mikaela Suomalainen (mikaela) said : | #2 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
10.11.2012 18:20, Peter Levi kirjoitti:
> 1. Is Quickly available for Debian?
Quickly looking at "apt-cache search quickly" doesn't seem to show it.
It gives long list of other packages. What is the package name in Ubuntu?
> 2. If you install the external dependencies (listed in
> debian/control) you should be able to run Variety even without
> running setup.py. It is pretty self contained and can run from its
> sources (just run bin/variety -v). Please tell me if this approach
> works for you.
I think that I have installed them, but
```
% python setup.py install --user
ERROR:root:Could not find any typelib for Notify
ERROR: Python module DominantColors not found
ERROR:root:Could not find any typelib for Notify
ERROR: Python module Util not found
ERROR:root:Could not find any typelib for Notify
ERROR: Python module DominantColors not found
running install
Traceback (most recent call last):
File "setup.py", line 114, in <module>
cmdclass=
File "/usr/lib/
100, in setup
distutils.
File "/usr/lib/
dist.
File "/usr/lib/
self.
File "/usr/lib/
cmd_obj.run()
File "setup.py", line 76, in run
values = {'__variety_
'/share/variety/'),
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
mkaysi@Devgan ~/Lataukset/variety
% bin/variety
ERROR:root:Could not find any typelib for Notify
Traceback (most recent call last):
File "bin/variety", line 43, in <module>
import variety
File "/home/
in <module>
from variety import VarietyWindow
File "/home/
26, in <module>
from gi.repository import Gtk, Gdk, GdkPixbuf, GObject, Gio,
Notify # pylint: disable=E0611
ImportError: cannot import name Notify
```
- --
Mika Suomalainen
http://
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
Comment: Homepage: http://
Comment: Public key: http://
Comment: gpg --fetch-keys http://
Comment: Fingerprint = 24BC 1573 B8EE D666 D10A AA65 4DB5 3CFE 82A4 6728
Comment: I have personal problem with PGP/MIME...
Comment: ...so signature *IS* long. See http://
Comment: Please remove PGP lines in replies. http://
Comment: Charset of this message should be UTF-8.
Comment: Using GnuPG with undefined - http://
iQIcBAEBCgAGBQJ
Q+K6T4dkGtfObzD
pVJqY5zuiL3Th5A
Yn3klLg1pZFUtHL
rpkdW4eioxjQAkH
7GnxvNa2Jv8GbFm
QMEsDfzju2iNZvg
oexeM5UGsnZlwoN
ZUFQNfbA4Wt+
sJi7o/ka3bT1Znk
2EMM6Rp7p+
QcNAdp78PkM/
=KOo3
-----END PGP SIGNATURE-----
Peter Levi (peterlevi) said : | #3 |
1. Package in Ubuntu is "quickly"
2. No, don't try to tun setup.py. Just unpack Variety's tar somewhere, install the external dependencies (listed in debian/control), and then directly run bin/variety. Setup.py is something generated and used by Quickly that I'm not sure is supposed to be run manually.
Mikaela Suomalainen (mikaela) said : | #4 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
23.11.2012 15:01, Peter Levi kirjoitti:
> 1. Package in Ubuntu is "quickly"
It doesn't seem to exist in Debian.
```
% LC_ALL=en_EN.UTF-8 apt-cache show quickly
N: Unable to locate package quickly
E: No packages found
```
> 2. No, don't try to tun setup.py. Just unpack Variety's tar
> somewhere, install the external dependencies (listed in
> debian/control), and then directly run bin/variety. Setup.py is
> something generated and used by Quickly that I'm not sure is
> supposed to be run manually.
I have now installed them and variety starts.
Thank you for your help.
- --
Mika Suomalainen
http://
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
Comment: Homepage: http://
Comment: Public key: http://
Comment: gpg --fetch-keys http://
Comment: Fingerprint = 24BC 1573 B8EE D666 D10A AA65 4DB5 3CFE 82A4 6728
Comment: I have personal problem with PGP/MIME...
Comment: ...so signature *IS* long. See http://
Comment: Please remove PGP lines in replies. http://
Comment: Charset of this message should be UTF-8.
Comment: Using GnuPG with undefined - http://
iQIcBAEBCgAGBQJ
wBzma18vwYbSxY5
okT58065KQLNqMq
FZtonvp5ftv0tb+
FG5fHYYEIpuskgX
8pICMA+
RBgIrJZL/
xe1TVcWyKHs0CVI
q/5nmQsdXxpT2XK
N+fe6CGruLWXHzA
aIqvguRhdqtd0YP
kddV+VGqBUqwyBz
=5bYM
-----END PGP SIGNATURE-----
Launchpad Janitor (janitor) said : | #5 |
This question was expired because it remained in the 'Open' state without activity for the last 15 days.
Peter Levi (peterlevi) said : | #6 |
User issue is resolved
Peter Levi (peterlevi) said : | #7 |
Full info on how to run from source:
Variety runs on Python 2 (2.7.3+).
1. Download the source archive in tar.gz and unpack it to some directory. Or, alternatively, install Bazaar and run bzr branch lp:variety – this means you will be running from the latest trunk development version (which I try to keep stable).
2. Install the dependencies:
gir1.2-notify-0.7, python-configobj, python-pyexiv2, python-pycurl, gir1.2-gtk-3.0, python-dbus, gir1.2-pango-1.0, gir1.2-glib-2.0, python-imaging, python-cairo, gir1.2-
gir1.2-
3. Now simply run it. No building or installing is necessary:
cd <folder with Variety's sources>
bin/variety -v