RPM build Fails under 32bit linux
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
PySkein |
New
|
Undecided
|
Unassigned |
Bug Description
i pulled this copy of PySkein from a Hg Repositoy
running bdist_rpm
writing 'build/
running sdist
running check
warning: sdist: standard file not found: should have one of README, README.txt
reading manifest template 'MANIFEST.in'
writing manifest file 'MANIFEST'
creating filestore-11.08.0
making hard links in filestore-
hard linking COPYING -> filestore-11.08.0
hard linking COPYING.LESSER -> filestore-11.08.0
hard linking filestore.py -> filestore-11.08.0
hard linking setup.py -> filestore-11.08.0
hard linking test_filestore.py -> filestore-11.08.0
Creating tar archive
removing 'filestore-11.08.0' (and everything under it)
copying dist/filestore-
building RPMs
rpmbuild -ba --define _topdir /home/musicsuse
Executing(%prep): /bin/sh -e /var/tmp/
+ umask 022
+ cd '/home/
+ cd '/home/
+ rm -rf filestore-11.08.0
+ /bin/tar -xvvf -
+ /usr/bin/gzip -dc '/home/
drwxr-xr-x musicsuse/users 0 2011-08-10 13:40 filestore-11.08.0/
-rw-r--r-- musicsuse/users 43738 2011-08-09 13:16 filestore-
-rw-r--r-- musicsuse/users 54984 2011-08-09 13:16 filestore-
-rw-r--r-- musicsuse/users 7651 2011-08-09 13:16 filestore-
-rw-r--r-- musicsuse/users 35147 2011-08-09 13:16 filestore-
-rw-r--r-- musicsuse/users 265 2011-08-10 13:40 filestore-
-rwxr-xr-x musicsuse/users 2069 2011-08-09 13:16 filestore-
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd filestore-11.08.0
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/
+ umask 022
+ cd '/home/
+ /bin/rm -rf '/home/
++ dirname '/home/
+ /bin/mkdir -p /home/musicsuse
+ /bin/mkdir '/home/
+ cd filestore-11.08.0
+ python setup.py build
Traceback (most recent call last):
File "setup.py", line 34, in <module>
import filestore
File "/home/
SyntaxError: Non-ASCII character '\xc3' in file /home/musicsuse
error: Bad exit status from /var/tmp/
RPM build errors:
Bad exit status from /var/tmp/
error: command 'rpmbuild' failed with exit status 1
the 'RPMBuild' command Failes to build PySkein
Thanks for giving this a go! So is this only failing on 32-bit?
That error looks like Python2 is trying to import the filestore.py file, which happens to have a non-ascii character in it.
In Python3 the default encoding is UTF-8. Plus PySkein is Python3-only, thus filestore is also. I'm not that savvy with RPM spec files... but you just need to make sure it's only being built with Python3.
Hope that helps. Please bug me if you're still having trouble!