FS#26412 - [namcap] UnicodeDecodeError

Attached to Project: Arch Linux
Opened by Alexander F. Rødseth (xyproto) - Wednesday, 12 October 2011, 12:03 GMT
Last edited by Rémy Oudompheng (remyoudompheng) - Saturday, 15 October 2011, 14:05 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Rémy Oudompheng (remyoudompheng)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:
When running namcap on a pkg I get this error:

Traceback (most recent call last):
File "/usr/lib/python3.2/runpy.py", line 160, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python3.2/runpy.py", line 73, in _run_code
exec(code, run_globals)
File "/usr/lib/python3.2/site-packages/namcap.py", line 265, in <module>
process_realpackage(package, active_modules)
File "/usr/lib/python3.2/site-packages/namcap.py", line 118, in process_realpackage
rule.analyze(pkginfo, pkgtar)
File "/usr/lib/python3.2/site-packages/Namcap/rules/shebangdepends.py", line 112, in analyze
pkglist, orphans = findowners(scriptlist)
File "/usr/lib/python3.2/site-packages/Namcap/rules/shebangdepends.py", line 84, in findowners
if scriptpath in pkg.files:
UnicodeDecodeError: 'utf8' codec can't decode byte 0xe5 in position 24: invalid continuation byte

Additional info:
* package version(s)
namcap 3.1-1

Steps to reproduce:
1. cower -d google-appengine-go; cd google-appengine-go; makepkg; namcap google-appengine-go-1.5.5-1-x86_64.pkg.tar.xz
This task depends upon

Closed by  Rémy Oudompheng (remyoudompheng)
Saturday, 15 October 2011, 14:05 GMT
Reason for closing:  Fixed
Comment by Jens Adam (byte) - Thursday, 13 October 2011, 05:50 GMT
I get that for probably half a year now, for all packages containing binaries.
Just tested a few older (tar.gz) packages in my /var/abs/local - no problems.
A recent ttf-isabella-1.201-1-any.pkg.tar.xz - no problem.
It's always that "findowners in shebangdepends.py" with "UnicodeDecodeError: 'utf8' codec can't decode byte 0xf1 in position 19: invalid continuation byte", for example.

Comment by Rémy Oudompheng (remyoudompheng) - Saturday, 15 October 2011, 14:05 GMT
Fixed in pyalpm-git.

Loading...