You are not logged in.
Pages: 1
I get this error:
==> Starting build()...
Traceback (most recent call last):
File "./configure.py", line 30, in <module>
store()
File "./configure.py", line 20, in store
print >> f, "_CFLAGS=" + ' '.join (CFLAGS)
TypeError: unsupported operand type(s) for >>: 'builtin_function_or_method' and '_io.TextIOWrapper'
Aborting...
==> ERROR: Makepkg was unable to build caps
Am i missing some package or something?
I need caps for alsaequal.
Offline
Does this help?
Offline
I emailed the author of alsaequal.
He said "...maybe they have a way to temporarily point to Python 2 and then change it back"
can someone please help me figure this out? im pretty new on arch.
Offline
According to the PKGBUILD, python is an optional dependency for this package, only required for a CFLAGS check. If you were to build the package in a clean chroot, the error would not occur, because python would not be installed. As you are presumably not doing that, you could remove python from your system, build the package, then reinstall python.
Or, if you want to do it the right way, change 'python' to 'python2' on line 20 of the PKGBUILD and use either sed or a patch to change the configure.py script to use python2.
Offline
Ok. i tried removing python and then installing caps. went fine first but i still get an error and the package will not install.
could you please explain how to use "sed" or a patch to the change configure.py?
Offline
after the download open PKGBUILD and in the build section
add 2 or 2.7 after the word python.
type -p python 1>/dev/null && ./configure.py
to
type -p python2 1>/dev/null && ./configure.py
or
type -p python2.7 1>/dev/null && ./configure.py
Offline
Ok. i tried removing python and then installing caps. went fine first but i still get an error
What error?
Offline
Hello, I have exactly the same problem.
So I replaced
type -p python 1>/dev/null && ./configure.py
by
type -p python2.7 1>/dev/null && ./configure.py
The compilation does not work and I have the following error message:
Lancer la compilation de caps ? [O/n]
==> -------------------------------------
==>
==> Construction et installation du paquet
==> Création du paquet caps 0.4.4-1 (lun. oct. 25 08:28:06 CEST 2010)
==> Vérification des dépendances...
==> Vérification des dépendances pour la compilation...
==> Récupération des sources...
-> caps_0.4.4.tar.gz trouvé
==> Validation des fichiers sources avec md5sums...
caps_0.4.4.tar.gz ... Réussite
==> Validation des fichiers sources avec sha256sums...
caps_0.4.4.tar.gz ... Réussite
==> Extraction des sources...
-> Extraction de caps_0.4.4.tar.gz avec bsdtar
==> Suppression du répertoire pkg/ existant...
==> Lancement de build()...
Traceback (most recent call last):
File "./configure.py", line 30, in <module>
store()
File "./configure.py", line 20, in store
print >> f, "_CFLAGS=" + ' '.join (CFLAGS)
TypeError: unsupported operand type(s) for >>: 'builtin_function_or_method' and '_io.TextIOWrapper'
Abandon...
==> ERROR: Makepkg n'a pas pu construire caps.
Offline
i've just downloaded caps-0.4.4-2 from AUR and it compield with no error.
(with no change in the files)
maybe it because i changed the python symlink
to point to python2.7 instead of python3.
ezik
Offline
Indeed, following an update of caps, it compiles perfectly.
There are no more error.
Thank you for your help.
Offline
Pages: 1