Ask Your Question
0

Kazam Screencast: ImportError: No module named 'DistUtilsExtra'

asked 2013-03-02 17:22:05 -0500

wlcosta gravatar image

updated 2013-03-04 05:07:13 -0500

FranciscoD_ gravatar image

Hello there. I'm trying to install Kazam to make some video-tutorials for the community, but i'm having some hard time to do it.

First i've download Kazam from Launchpad. Extracted it, and when I try to run install.py this is what I got:

[root@localhost kazam-1.0.7]# python3 setup.py
Traceback (most recent call last):
  File "setup.py", line 4, in <module>
    from DistUtilsExtra.command import *
ImportError: No module named 'DistUtilsExtra'

I have already tried a newer version. Same problem.

[root@localhost kazam-1.0.7]# yum install python-distutils-extra
Plugins carregados: langpacks, presto, refresh-packagekit
O pacote python-distutils-extra-2.34-1.fc18.noarch já está instalado em sua última versão
Nada a ser feito

Plugins loaded: langpacks, presto, refresh-packagekit
The package python-distutils-extra-2.34-1.fc18.noarch is already installed in his last version.
Nothing to be done.

Any ideas on how should I proceed?

edit retag flag offensive close merge delete

3 Answers

Sort by » oldest newest most voted
1

answered 2013-08-06 13:21:45 -0500

zquintana gravatar image

To install you need to install python3's distutils-extra and dbus. Do that with:

sudo yum install python3-distutils-extra python3-dbus

Afterwards, it should work like a charm.

edit flag offensive delete link more
0

answered 2016-10-02 02:33:44 -0500

I have installed Python3.5 and accessed kazam command[./kazam] from the bin directory after the extraction kazam tar ball, it started working for me. No additional modules nothing extra needed i guess.

edit flag offensive delete link more
0

answered 2013-03-04 05:19:20 -0500

FranciscoD_ gravatar image

It's because you're using python3, whose path by default is:

[ankur@dhcppc1  ~]$ python3
Python 3.3.0 (default, Sep 29 2012, 22:07:38)
[GCC 4.7.2 20120921 (Red Hat 4.7.2-2)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.path
['', '/usr/lib64/python33.zip', '/usr/lib64/python3.3', '/usr/lib64/python3.3/plat-linux', '/usr/lib64/python3.3/lib-dynload', '/usr/lib64/python3.3/site-packages', '/usr/lib/python3.3/site-packages']
>>>

However, the python-distutils-extra package is only built for python2 and puts files in the python2.7 directory, not python3.3.

[ankur@dhcppc1  ~]$ sudo repoquery -l "*distutils*"
/usr/lib/python2.7/site-packages/DistUtilsExtra
/usr/lib/python2.7/site-packages/DistUtilsExtra/__init__.py
/usr/lib/python2.7/site-packages/DistUtilsExtra/__init__.pyc
/usr/lib/python2.7/site-packages/DistUtilsExtra/__init__.pyo
/usr/lib/python2.7/site-packages/DistUtilsExtra/auto.py
/usr/lib/python2.7/site-packages/DistUtilsExtra/auto.pyc
/usr/lib/python2.7/site-packages/DistUtilsExtra/auto.pyo
/usr/lib/python2.7/site-packages/DistUtilsExtra/command
/usr/lib/python2.7/site-packages/DistUtilsExtra/command/__init__.py
/usr/lib/python2.7/site-packages/DistUtilsExtra/command/__init__.pyc
/usr/lib/python2.7/site-packages/DistUtilsExtra/command/__init__.pyo
/usr/lib/python2.7/site-packages/DistUtilsExtra/command/build_extra.py
/usr/lib/python2.7/site-packages/DistUtilsExtra/command/build_extra.pyc
/usr/lib/python2.7/site-packages/DistUtilsExtra/command/build_extra.pyo
/usr/lib/python2.7/site-packages/DistUtilsExtra/command/build_help.py
/usr/lib/python2.7/site-packages/DistUtilsExtra/command/build_help.pyc
/usr/lib/python2.7/site-packages/DistUtilsExtra/command/build_help.pyo
/usr/lib/python2.7/site-packages/DistUtilsExtra/command/build_i18n.py
/usr/lib/python2.7/site-packages/DistUtilsExtra/command/build_i18n.pyc
/usr/lib/python2.7/site-packages/DistUtilsExtra/command/build_i18n.pyo
/usr/lib/python2.7/site-packages/DistUtilsExtra/command/build_icons.py
/usr/lib/python2.7/site-packages/DistUtilsExtra/command/build_icons.pyc
/usr/lib/python2.7/site-packages/DistUtilsExtra/command/build_icons.pyo
/usr/lib/python2.7/site-packages/DistUtilsExtra/command/clean_i18n.py
/usr/lib/python2.7/site-packages/DistUtilsExtra/command/clean_i18n.pyc
/usr/lib/python2.7/site-packages/DistUtilsExtra/command/clean_i18n.pyo
/usr/lib/python2.7/site-packages/DistUtilsExtra/command/pylint.py
/usr/lib/python2.7/site-packages/DistUtilsExtra/command/pylint.pyc
/usr/lib/python2.7/site-packages/DistUtilsExtra/command/pylint.pyo
/usr/lib/python2.7/site-packages/python_distutils_extra-2.34-py2.7.egg-info
/usr/lib/python2.7/site-packages/python_distutils_extra-2.34-py2.7.egg-info/PKG-INFO
/usr/lib/python2.7/site-packages/python_distutils_extra-2.34-py2.7.egg-info/SOURCES.txt
/usr/lib/python2.7/site-packages/python_distutils_extra-2.34-py2.7.egg-info/dependency_links.txt
/usr/lib/python2.7/site-packages/python_distutils_extra-2.34-py2.7.egg-info/entry_points.txt
/usr/lib/python2.7/site-packages/python_distutils_extra-2.34-py2.7.egg-info/top_level.txt
/usr/share/doc/python-distutils-extra-2.34
/usr/share/doc/python-distutils-extra-2.34/FAQ
/usr/share/doc/python-distutils-extra-2.34/LICENSE
/usr/share/doc/python-distutils-extra-2.34/README
/usr/share/doc/python-distutils-extra-2.34/setup.cfg.example
/usr/share/doc/python-distutils-extra-2.34/setup.py.example
[ankur@dhcppc1  ~]$

You'll have to request the maintainer of python-distutils-extra to build it for python3 if it supports it. You can file an RFE here

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-03-02 17:22:05 -0500

Seen: 14,071 times

Last updated: Oct 02 '16