RPM build Fails under 32bit linux

Bug #823846 reported by PCWinWeb
6
This bug affects 1 person
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/bdist.linux-i686/rpm/SPECS/filestore.spec'
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-11.08.0...
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-11.08.0.tar.gz -> build/bdist.linux-i686/rpm/SOURCES
building RPMs
rpmbuild -ba --define _topdir /home/musicsuse/NovaCut Dev/filestore/build/bdist.linux-i686/rpm --clean build/bdist.linux-i686/rpm/SPECS/filestore.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.tFe55z
+ umask 022
+ cd '/home/musicsuse/NovaCut Dev/filestore/build/bdist.linux-i686/rpm/BUILD'
+ cd '/home/musicsuse/NovaCut Dev/filestore/build/bdist.linux-i686/rpm/BUILD'
+ rm -rf filestore-11.08.0
+ /bin/tar -xvvf -
+ /usr/bin/gzip -dc '/home/musicsuse/NovaCut Dev/filestore/build/bdist.linux-i686/rpm/SOURCES/filestore-11.08.0.tar.gz'
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-11.08.0/filestore.py
-rw-r--r-- musicsuse/users 54984 2011-08-09 13:16 filestore-11.08.0/test_filestore.py
-rw-r--r-- musicsuse/users 7651 2011-08-09 13:16 filestore-11.08.0/COPYING.LESSER
-rw-r--r-- musicsuse/users 35147 2011-08-09 13:16 filestore-11.08.0/COPYING
-rw-r--r-- musicsuse/users 265 2011-08-10 13:40 filestore-11.08.0/PKG-INFO
-rwxr-xr-x musicsuse/users 2069 2011-08-09 13:16 filestore-11.08.0/setup.py
+ 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/rpm-tmp.iEX4mr
+ umask 022
+ cd '/home/musicsuse/NovaCut Dev/filestore/build/bdist.linux-i686/rpm/BUILD'
+ /bin/rm -rf '/home/musicsuse/NovaCut Dev/filestore/build/bdist.linux-i686/rpm/BUILDROOT/filestore-11.08.0-1.i386'
++ dirname '/home/musicsuse/NovaCut Dev/filestore/build/bdist.linux-i686/rpm/BUILDROOT/filestore-11.08.0-1.i386'
+ /bin/mkdir -p /home/musicsuse/NovaCut Dev/filestore/build/bdist.linux-i686/rpm/BUILDROOT
+ /bin/mkdir '/home/musicsuse/NovaCut Dev/filestore/build/bdist.linux-i686/rpm/BUILDROOT/filestore-11.08.0-1.i386'
+ 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/musicsuse/NovaCut Dev/filestore/build/bdist.linux-i686/rpm/BUILD/filestore-11.08.0/filestore.py", line 98
SyntaxError: Non-ASCII character '\xc3' in file /home/musicsuse/NovaCut Dev/filestore/build/bdist.linux-i686/rpm/BUILD/filestore-11.08.0/filestore.py on line 99, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
error: Bad exit status from /var/tmp/rpm-tmp.iEX4mr (%build)

RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.iEX4mr (%build)
error: command 'rpmbuild' failed with exit status 1

the 'RPMBuild' command Failes to build PySkein

Revision history for this message
Jason Gerard DeRose (jderose) wrote :

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!

Revision history for this message
Jason Gerard DeRose (jderose) wrote :

Hmm, bit confused... the above trace looks like a problem with building filestore... but as far as this PySkein build error:

http://paste.ubuntu.com/662377/

Could you try running:

python3 setup.py build

And see if that works? You'll need the Python3 dev package installed, which I believe is called python3-devel on most RPM based systems.

Revision history for this message
PCWinWeb (devlabn) wrote :

python3-devel is installed

musicsuse@linux-eao4:~/NovaCut Dev/ps> python3 setup.py build
running build
running build_py
running build_ext
running build_scripts

nothing else

Revision history for this message
Jason Gerard DeRose (jderose) wrote :

Well, it looks like it builds fine when you run `python3 setup.py build` directly.

Wait, I was just looking at http://paste.ubuntu.com/662377/ again...

Look at the 4th from last line:

  + env 'CFLAGS=-O2 -g -m32 ...' python setup.py build

Looks like it using `python` instead of `python3`. Can you pastebin me the RPM spec file you're using? I think you might just need to update the build and install commands to using python3 instead of python.

Revision history for this message
PCWinWeb (devlabn) wrote :

thanks for pointing that!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.