You are not logged in.

#1 2020-08-26 15:25:06

mikey_effin_d!
Member
Registered: 2020-08-26
Posts: 7

help me to understand the output of a package that is failing to build

in an effort to actually learn what is going wrong so i no longer need to hit the forums every time a package doesnt compile correctly, i would like to understand what is happening that is causing the package build to fail. ive been using linux for a while and have an entry level (but not brand new) understanding of bash and the basic terminal commands.

in this case i am trying to build a package from the AUR:
<yay -S python-num2words>

i know since this is a python package a basic understanding of python output is needed. my skills in python end at the ever so basic: print

HERE IS THE OUTPUT SUMMARY:

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Ran 236 tests in 0.695s

OK
running test
WARNING: Testing via this command is deprecated and will be removed in a future version. Users looking for a generic test entry point independent of test runner are encouraged to use tox.
WARNING: The wheel package is not available.
/usr/lib/python2.7/site-packages/cryptography/__init__.py:39: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.
  CryptographyDeprecationWarning,
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/developme … -2-support
  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python2 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-wheel-kAxX3h/docopt/setup.py'"'"'; __file__='"'"'/tmp/pip-wheel-kAxX3h/docopt/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-JyS8VC
       cwd: /tmp/pip-wheel-kAxX3h/docopt/
  Complete output (6 lines):
  usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
     or: setup.py --help [cmd1 cmd2 ...]
     or: setup.py --help-commands
     or: setup.py cmd --help
 
  error: invalid command 'bdist_wheel'
  ----------------------------------------
  ERROR: Failed building wheel for docopt
ERROR: Failed to build one or more wheels
error: Command '['/usr/bin/python2', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpLvblPG', '--quiet', 'docopt>=0.6.2']' returned non-zero exit status 1
==> ERROR: A failure occurred in check().
    Aborting...
error making: python-num2words

Last edited by mikey_effin_d! (2020-08-26 15:37:09)

Offline

#2 2020-08-26 15:27:40

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: help me to understand the output of a package that is failing to build

Please edit your post to add code tags around the commands / output.  Then read the comments on the AUR page for this package.

Last edited by Trilby (2020-08-26 15:27:54)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2020-08-26 15:30:37

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,694

Re: help me to understand the output of a package that is failing to build

if you just need the python3 version, remove the python2 package from the pkgname array and remove the python2 line in the check function.

Offline

#4 2020-08-26 15:31:59

mikey_effin_d!
Member
Registered: 2020-08-26
Posts: 7

Re: help me to understand the output of a package that is failing to build

SOLVED on my own. after paying closer attention to the output i noticed the build was failing due to the missing python-docopt, which i attempted to fix with yay -S python-docopt, only to see it was already installed. then i noted the notice about python 2 being discontinued so i hit it with a
yay -S python2-docopt && yay -S python-num2words
PROBLEM SOLVED.  though im still interested in the breakdown of the output so i better understand whats going on

Offline

#5 2020-08-26 15:32:53

mikey_effin_d!
Member
Registered: 2020-08-26
Posts: 7

Re: help me to understand the output of a package that is failing to build

though it is a python3 package it had a python2 dependency

Offline

#6 2020-08-26 15:35:45

mikey_effin_d!
Member
Registered: 2020-08-26
Posts: 7

Re: help me to understand the output of a package that is failing to build

like whats up with all the error code exit 1. i see that a lot when packages fail to build. what does 1 mean. and after that all the f****** crap after:
command: /usr/bin/python2 <blah blah -blah --blah "blahblah" blah>

Offline

#7 2020-08-26 15:36:25

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: help me to understand the output of a package that is failing to build

mikey_effin_d! wrote:

though it is a python3 package

No, it is a split package that builds both a python2 and python3 package.  The python2 dependencies are (should be) only build time dependencies.  Again, this is all covered in the comments on the package's AUR page.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#8 2020-08-26 15:36:49

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,694

Re: help me to understand the output of a package that is failing to build

mikey_effin_d! wrote:

though it is a python3 package it had a python2 dependency

Sounds like you didn't bother reading the PKGBUILD

Offline

#9 2020-08-26 15:47:54

mikey_effin_d!
Member
Registered: 2020-08-26
Posts: 7

Re: help me to understand the output of a package that is failing to build

Scimmia wrote:
mikey_effin_d! wrote:

though it is a python3 package it had a python2 dependency

Sounds like you didn't bother reading the PKGBUILD

i can barely understand half of a PKGBUILD file. a super basic one is almost doable for me, but im not there yet. ive been on linux for about 5 years now. Ive settled down as an arch user and dont see myself going anywhere else even though its sometimes more advance then my skill level. i spend more time in jail and prison then on the streets so when im out im always trying to catch up on what i forgot. leaves little time to learn new crap. one of my first milestones / goals would be to learn how to build my own package with a functional PKGBUILD and all the necessary source code files needed

Offline

#10 2020-08-26 15:48:39

mikey_effin_d!
Member
Registered: 2020-08-26
Posts: 7

Re: help me to understand the output of a package that is failing to build

im slowly starting to get the hang of this forum stuff....

Offline

Board footer

Powered by FluxBB