Hello, Some help is needed to resolve this python error. How can the error be fixed ? Thanks Glenn
From the log:-
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.DEnHRL + umask 022 + cd /usr/src/packages/BUILD + cd namebench-1.1 + python setup.py install /usr/lib64/python2.6/distutils/dist.py:266: UserWarning: Unknown distribution option: 'zipfile' warnings.warn(msg) /usr/lib64/python2.6/distutils/dist.py:266: UserWarning: Unknown distribution option: 'windows' warnings.warn(msg) running install running build running build_py running build_scripts running install_lib creating /usr/local/lib/python2.6 error: could not create '/usr/local/lib/python2.6': Permission denied error: Bad exit status from /var/tmp/rpm-tmp.DEnHRL (%install)
---------- Spec File ->https://build.opensuse.org/package/view_file?file=namebench.spec&package... Log -> https://build.opensuse.org/package/live_build_log?arch=x86_64&package=na... Project -> https://build.opensuse.org/package/show?package=namebench&project=home%3...
Am Freitag, 29. Januar 2010 schrieb doiggl@velocitynet.com.au:
Hello, Some help is needed to resolve this python error. How can the error be fixed ?
read: http://en.opensuse.org/Packaging/Python
use: %install %{__python} setup.py install --prefix=%{_prefix} --root=%{buildroot} --record-rpm=INSTALLED_FILES
Thanks Glenn
From the log:- Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.DEnHRL
- umask 022
- cd /usr/src/packages/BUILD
- cd namebench-1.1
- python setup.py install
/usr/lib64/python2.6/distutils/dist.py:266: UserWarning: Unknown distribution option: 'zipfile' warnings.warn(msg) /usr/lib64/python2.6/distutils/dist.py:266: UserWarning: Unknown distribution option: 'windows' warnings.warn(msg) running install running build running build_py running build_scripts running install_lib creating /usr/local/lib/python2.6 error: could not create '/usr/local/lib/python2.6': Permission denied error: Bad exit status from /var/tmp/rpm-tmp.DEnHRL (%install)
Spec File ->https://build.opensuse.org/package/view_file?file=namebench.spec&package... namebench&project=home%3Adoiggl Log -> https://build.opensuse.org/package/live_build_log?arch=x86_64&package=na... ench&project=home%3Adoiggl&repository=openSUSE_11.2 Project -> https://build.opensuse.org/package/show?package=namebench&project=home%3... iggl
Hello, I made the change, %install %{__python} setup.py install --prefix=%{_prefix} --root=%{buildroot} --record-rpm=INSTALLED_FILES
The compilation got much further then fell over with error
error: Could not open %files file
/usr/src/packages/BUILD/namebench-1.1/filelist: No such file or directory
It looks like this has some influence here http://en.opensuse.org/Packaging/Python#File_lists Thanks Glenn
From the log:-
Checking permissions and ownerships - using the permissions files /tmp/Check.perms.I3Cd6z setting /usr/src/packages/BUILDROOT/namebench-1.1-6.1.x86_64/ to root:root 0755. (wrong owner/group abuild:abuild) setting /usr/src/packages/BUILDROOT/namebench-1.1-6.1.x86_64/usr/ to root:root 0755. (wrong owner/group abuild:abuild) + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip-debug + /usr/lib/rpm/brp-check-la + /usr/lib/rpm/brp-symlink + /usr/lib/rpm/brp-desktop WARNING: '/usr/lib/rpm/brp-desktop.data/suse-screensavers.menu' does not exist WARNING: '/usr/lib/rpm/brp-desktop.data/preferences-gnome.menu' does not exist WARNING: '/usr/lib/rpm/brp-desktop.data/applications-kmenuedit.menu' does not exist + /usr/lib/rpm/brp-rpath + /usr/lib/rpm/brp-pie + /usr/lib/rpm/brp-rootfs + /usr/lib/rpm/brp-tcl + /usr/lib/rpm/brp-check-python /usr/src/packages/BUILD/namebench-1.1/third_party/jinja2/_speedups.c:18: 'PyUnicode_DecodeASCII' uses Py_ssize_t for input parameters /usr/src/packages/BUILD/namebench-1.1/third_party/jinja2/_speedups.c:83: 'PyUnicode_FromUnicode' uses Py_ssize_t for input parameters + /usr/lib/rpm/brp-check-bytecode-version + /usr/lib/rpm/brp-boot-scripts + /usr/lib/rpm/brp-hook Processing files: namebench-1.1-6.1.x86_64 error: Could not open %files file /usr/src/packages/BUILD/namebench-1.1/filelist: No such file or directory
---------- Spec File ->https://build.opensuse.org/package/view_file?file=namebench.spec&package...
Log -> https://build.opensuse.org/package/live_build_log?arch=x86_64&package=na... Project ->https://build.opensuse.org/package/show?package=namebench&project=home%3...
Hello,
On Sat, 30 Jan 2010, doiggl@velocitynet.com.au wrote:
Hello, I made the change, %install %{__python} setup.py install --prefix=%{_prefix} --root=%{buildroot}
The compilation got much further then fell over with error
error: Could not open %files file
/usr/src/packages/BUILD/namebench-1.1/filelist: No such file or directory
It looks like this has some influence here http://en.opensuse.org/Packaging/Python#File_lists
[..]
error: Could not open %files file /usr/src/packages/BUILD/namebench-1.1/filelist: No such file or directory
You need to use the filename you use with '--record-rpm='.
%{__python} setup.py install \ --prefix=%{_prefix} --root=%{buildroot} --record-rpm=INSTALLED_FILES
... %files -f INSTALLED_FILES
You had it right first (--record-rpm=filelist + %files -f filelist).
-dnh