You are not logged in.

#1 2018-12-16 02:17:02

prk07
Member
Registered: 2018-12-16
Posts: 44

[SOLVED] can't build mate-tweak

Hi all,

I am trying to install the mate-tweak Aur package and getting the following error.
---------
==> Building and installing package
==> Making package: mate-tweak 18.10.2-1 (Sun 16 Dec 2018 07:36:20 AM IST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading mate-tweak-18.10.2.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   131    0   131    0     0    122      0 --:--:--  0:00:01 --:--:--   122
100  165k    0  165k    0     0  43476      0 --:--:--  0:00:03 --:--:--  102k
  -> Downloading ubuntu-mate-settings-18.04.17.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   142    0   142    0     0    143      0 --:--:-- --:--:-- --:--:--   143
100 44010    0 44010    0     0  17745      0 --:--:--  0:00:02 --:--:-- 91878
==> Validating source files with sha256sums...
    mate-tweak-18.10.2.tar.gz ... Passed
    ubuntu-mate-settings-18.04.17.tar.gz ... Passed
==> Extracting sources...
  -> Extracting mate-tweak-18.10.2.tar.gz with bsdtar
  -> Extracting ubuntu-mate-settings-18.04.17.tar.gz with bsdtar
==> Starting prepare()...
==> Entering fakeroot environment...
==> Starting package()...
Traceback (most recent call last):
  File "setup.py", line 27, in <module>
    import DistUtilsExtra.command.build_extra
ModuleNotFoundError: No module named 'DistUtilsExtra'
==> ERROR: A failure occurred in package().
    Aborting...
==> ERROR: Makepkg was unable to build mate-tweak.
==> Restart building mate-tweak ? [y/N]
-------
I have tried looking up the issue in the upstream and also tried to build in python2 environment but the error remains the same.

Help needed !!

Last edited by prk07 (2018-12-17 05:17:26)

Offline

#2 2018-12-16 02:27:21

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: [SOLVED] can't build mate-tweak

Your system is broken.

The package correctly has a makedepends on the python-distutils-extra package, which contains the mentioned module. makepkg did not error out with a missing buildtime dependency, which means the package was installed, but the python interpreter could not find it. This means that either your python interpreter is broken, or your python-distutils-extra package is broken. There may be other broken packages as well...


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#3 2018-12-16 05:26:16

prk07
Member
Registered: 2018-12-16
Posts: 44

Re: [SOLVED] can't build mate-tweak

I have an anaconda installation and the default python environment is 3.6.x

Can you please direct me what do I need to do in such cases for a successful build??
I am stuck in here.

Last edited by prk07 (2018-12-16 06:12:55)

Offline

#4 2018-12-16 16:31:50

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,739

Re: [SOLVED] can't build mate-tweak

Serious question -- Why are you running Anaconda on Linux?  Especially Arch Linux?   It is my understanding that Anaconda's purpose is to simplify the task of getting the environment set up on systems such as Windows.  Anaconda is not a prerequisite for things such as Juypter in Arch Linux.

How, specifically, did you install Anaconda?
Also, on Arch, trying to use a Python interpreter on a system wide basis that it not the one in the official repos is going to be like trying to push a rope.
If you must use 3.6, then set up a virtual environment for it and keep it private to your user.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#5 2018-12-16 16:45:22

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: [SOLVED] can't build mate-tweak

prk07 wrote:

I have an anaconda installation and the default python environment is 3.6.x

That will result in all applications on your system which are written in python, to use the WRONG python version. Many Desktop Environments are written at least partially in python, as are many common applications. Python is a popular programming language...

DO NOT USE ANACONDA. It's bad for the health of a Linux system. If you must use Anaconda, do not allow it to be on the $PATH -- start anaconda explicitly whenever you need it, e.g. by sourcing a script that sets up the anaconda environment.

Also, Anaconda sucks and is bad for you. This is a really important piece of information to realize.


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#6 2018-12-17 05:16:55

prk07
Member
Registered: 2018-12-16
Posts: 44

Re: [SOLVED] can't build mate-tweak

Thanks @eschwartz and @ewaller.

I have removed the conda from path and symlinked.
Now the python is not managed by Anaconda and the Aur package got successfully build.

Thankss!!

Offline

#7 2019-11-15 11:47:07

timtody
Member
Registered: 2019-11-15
Posts: 1

Re: [SOLVED] can't build mate-tweak

Anaconda does not suck and it is not bad for you and the health of your Linux system. You just need to think, as always. If you have anaconda set up in a way where it activates the base environment by default, just conda deactivate in order to use system python by default.

Offline

#8 2019-11-15 14:28:14

2ManyDogs
Forum Moderator
Registered: 2012-01-15
Posts: 4,645

Re: [SOLVED] can't build mate-tweak

Thanks for the comment, but this thread is almost a year old and marked solved, so I will close it now.

Please do not necrobump.

Last edited by 2ManyDogs (2019-11-15 14:29:20)


How to post. A sincere effort to use modest and proper language and grammar is a sign of respect toward the community.

Offline

Board footer

Powered by FluxBB