Author Topic: [SOLVED] Failed to install python-cstruct with yaourt  (Read 2426 times)

0 Members and 1 Guest are viewing this topic.

Offline hillz

  • Neuling
  • *
  • Posts: 34
  • I'm new. Be nice!
  • Skill: Novice
[SOLVED] Failed to install python-cstruct with yaourt
« on: 14. April 2016, 08:14:17 »
Please bear with me, I'm new to manjaro. So I was trying to install python-cstruct with yaourt:
Code: [Select]
[galih@x ~]$ yaourt python-cstruct
1 aur/python-cstruct 1.0-1 (1) (0.08)
    C-style structs for Python
==> Enter n° of packages to be installed (ex: 1 2 3 or 1-3)
==> -------------------------------------------------------
==> 1


==> Downloading python-cstruct PKGBUILD from AUR...
x .SRCINFO
x PKGBUILD
python-cstruct 1.0-1  (2015-12-10 03:20)
( Unsupported package: Potentially dangerous ! )
==> Edit PKGBUILD ? [Y/n] ("A" to abort)
==> ------------------------------------
==> n

==> WARNING: This PKGBUILD describes a split package.
==> Specific package options are unknown
==> python-cstruct dependencies:
 - python (already installed) [makedepend]
 - python (already installed) [makedepend]
 - python2 (already installed) [makedepend]


==> Continue building python-cstruct ? [Y/n]
==> ----------------------------------------
==> y

==> Building and installing package
==> Making package: python-cstruct 1.0-1 (Thu Apr 14 13:07:22 WIB 2016)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading cstruct-1.0.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  7274  100  7274    0     0    447      0  0:00:16  0:00:16 --:--:--  1957
==> Validating source files with md5sums...
    cstruct-1.0.tar.gz ... Passed
==> Extracting sources...
  -> Extracting cstruct-1.0.tar.gz with bsdtar
==> Starting prepare()...
==> Starting build()...
running build
running build_py
creating build
creating build/lib
creating build/lib/cstruct
copying cstruct/__init__.py -> build/lib/cstruct
creating build/lib/cstruct/tests
copying cstruct/tests/test_cstruct.py -> build/lib/cstruct/tests
copying cstruct/tests/__init__.py -> build/lib/cstruct/tests
creating build/lib/cstruct/examples
copying cstruct/examples/fdisk.py -> build/lib/cstruct/examples
copying cstruct/examples/__init__.py -> build/lib/cstruct/examples
running egg_info
writing cstruct.egg-info/PKG-INFO
writing entry points to cstruct.egg-info/entry_points.txt
writing dependency_links to cstruct.egg-info/dependency_links.txt
writing top-level names to cstruct.egg-info/top_level.txt
reading manifest file 'cstruct.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'cstruct.egg-info/SOURCES.txt'
Traceback (most recent call last):
  File "setup.py", line 1, in <module>
    from setuptools import setup, find_packages
ImportError: No module named setuptools
==> ERROR: A failure occurred in build().
    Aborting...
==> ERROR: Makepkg was unable to build python-cstruct.
==> Restart building python-cstruct ? [y/N]
==> ---------------------------------------
==>
The module setuptools is already installed, I've checked it with:
Code: [Select]
[galih@x ~]$ python -c "import setuptools"
[galih@x ~]$ echo $?
0
[galih@x ~]$
I don't know how to fix that, please help me.
« Last Edit: 14. April 2016, 15:36:59 by hillz »

Offline Strit

  • Maintainer
  • ***
  • Posts: 746
  • Manjaro Torrent Maintainer
    • Strits.dk
  • Branch: Stable
  • Desktop: XFCE
  • GPU Card: GTX 760 OC
  • GPU driver: Non-free nvidia 361
  • Kernel: 4.4.8-1-MANJARO
  • Skill: Intermediate
Re: Failed to install python-cstruct with yaourt
« Reply #1 on: 14. April 2016, 08:21:30 »
This should be moved to AUR section, as it's about an AUR specific package with a problem.

Source: https://aur.archlinux.org/packages/python-cstruct/
Desktop PC: Manjaro XFCE 15.12 (stable, kernel 4.4)
Private Laptop: Manjaro Strit 16.03 (unstable, kernel 4.6)
Work Laptop: Manjaro Strit 16.03 (stable, kernel 4.4)
Netbook: Arch Linux XFCE/LXqt (i686, kernel 4.0)

Offline hillz

  • Neuling
  • *
  • Posts: 34
  • I'm new. Be nice!
  • Skill: Novice
Re: Failed to install python-cstruct with yaourt
« Reply #2 on: 14. April 2016, 11:29:50 »
This should be moved to AUR section, as it's about an AUR specific package with a problem.

Source: https://aur.archlinux.org/packages/python-cstruct/

idk how to move this thread to the AUR section, I guess a moderator can do that instead of a normal user like me.

Offline kouros17

  • Held Mitglied
  • *****
  • Posts: 531
  • Branch: Unstable
  • Desktop: Xfce (4.12.3)
  • GPU Card: AMD Radeon HD 8570 / R7 200 Series
  • GPU driver: Non-free (Catalyst)
  • Kernel: 4.6rc7 - x86_64
  • Skill: Intermediate
Re: Failed to install python-cstruct with yaourt
« Reply #3 on: 14. April 2016, 12:06:55 »
Did you try to install it manually?
Download snapshot - unpack the folder - go into the unpacked folder with PKGBUILD, open a terminal in this folder and do:

Code: [Select]
makepkg -csir
« Last Edit: 14. April 2016, 12:08:47 by kouros17 »

Offline hillz

  • Neuling
  • *
  • Posts: 34
  • I'm new. Be nice!
  • Skill: Novice
Re: Failed to install python-cstruct with yaourt
« Reply #4 on: 14. April 2016, 12:43:38 »
Did you try to install it manually?
Download snapshot - unpack the folder - go into the unpacked folder with PKGBUILD, open a terminal in this folder and do:

Code: [Select]
makepkg -csir
It didn't work
Code: [Select]
[galih@x tmp]$ git clone https://aur.archlinux.org/python-cstruct.git
Cloning into 'python-cstruct'...
remote: Counting objects: 4, done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 4 (delta 0), reused 4 (delta 0)
Unpacking objects: 100% (4/4), done.
Checking connectivity... done.
[galih@x tmp]$ cd python-cstruct/
[galih@x python-cstruct]$ ls
PKGBUILD
[galih@x python-cstruct]$ makepkg -csir
==> Making package: python-cstruct 1.0-1 (Thu Apr 14 17:39:29 WIB 2016)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading cstruct-1.0.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  7274  100  7274    0     0    476      0  0:00:15  0:00:15 --:--:--  1938
==> Validating source files with md5sums...
    cstruct-1.0.tar.gz ... Passed
==> Extracting sources...
  -> Extracting cstruct-1.0.tar.gz with bsdtar
==> Starting prepare()...
==> Starting build()...
running build
running build_py
creating build
creating build/lib
creating build/lib/cstruct
copying cstruct/__init__.py -> build/lib/cstruct
creating build/lib/cstruct/tests
copying cstruct/tests/test_cstruct.py -> build/lib/cstruct/tests
copying cstruct/tests/__init__.py -> build/lib/cstruct/tests
creating build/lib/cstruct/examples
copying cstruct/examples/fdisk.py -> build/lib/cstruct/examples
copying cstruct/examples/__init__.py -> build/lib/cstruct/examples
running egg_info
writing cstruct.egg-info/PKG-INFO
writing top-level names to cstruct.egg-info/top_level.txt
writing dependency_links to cstruct.egg-info/dependency_links.txt
writing entry points to cstruct.egg-info/entry_points.txt
reading manifest file 'cstruct.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'cstruct.egg-info/SOURCES.txt'
Traceback (most recent call last):
  File "setup.py", line 1, in <module>
    from setuptools import setup, find_packages
ImportError: No module named setuptools
==> ERROR: A failure occurred in build().
    Aborting...
[galih@x python-cstruct]$

Offline Kirek

  • Core Team
  • *****
  • Posts: 1209
  • Branch: unstable
  • Desktop: Plasma 5
  • GPU Card: Intel HD4000 + Nvidia 620M / Geforxe GTX 970
  • GPU driver: nonfree
  • Kernel: Latest
  • Skill: Intermediate
Re: Failed to install python-cstruct with yaourt
« Reply #5 on: 14. April 2016, 12:59:26 »
Missing dependency maybe? Try installing python-setuptools

Offline hillz

  • Neuling
  • *
  • Posts: 34
  • I'm new. Be nice!
  • Skill: Novice
Re: Failed to install python-cstruct with yaourt
« Reply #6 on: 14. April 2016, 13:30:54 »
Missing dependency maybe? Try installing python-setuptools
It's been installed
Code: [Select]
[galih@x ~]$ yaourt python-setuptools
1 extra/python-setuptools 1:20.6.7-1 [installed]
    Easily download, build, install, upgrade, and uninstall Python packages
2 community/python-setuptools-markdown 0.2-1
    Use Markdown for your project description
3 community/python-setuptools_scm 1.10.1-1
    Handles managing your python package versions in scm metadata.

Offline Kirek

  • Core Team
  • *****
  • Posts: 1209
  • Branch: unstable
  • Desktop: Plasma 5
  • GPU Card: Intel HD4000 + Nvidia 620M / Geforxe GTX 970
  • GPU driver: nonfree
  • Kernel: Latest
  • Skill: Intermediate
Re: Failed to install python-cstruct with yaourt
« Reply #7 on: 14. April 2016, 13:45:05 »
Install python2-setuptools too

Offline hillz

  • Neuling
  • *
  • Posts: 34
  • I'm new. Be nice!
  • Skill: Novice
Re: Failed to install python-cstruct with yaourt
« Reply #8 on: 14. April 2016, 15:36:21 »
Install python2-setuptools too
Thank you very much, it solved the problem :D