Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: ERROR: No valid Python version



Hi,

Greg Troxel wrote:
did you cd to devel/scons (or really the PKGPATH of the installed pkg)
and type "make replace".  The pkg_rr man page says, or should say, to do
that, and then to deal with that error as if it were not from pkg_rr.

no, I didn't... I thought to have encountered some weird setup error. I did now. It fails with a cryptic message:

=> Generating post-install file lists
if test -d "/usr/pkgsrc/devel/scons/work/.destdir/usr/pkg/lib/python2.7/site-packages/scons-3.1.2-py2.7.egg-info"; then  /usr/bin/find /usr/pkgsrc/devel/scons/work/.destdir/usr/pkg/lib/python2.7/site-packages/scons-3.1.2-py2.7.egg-info -type f  -exec /bin/chmod 644 '{}' +;  fi
=> Checking file-check results for py27-scons-3.1.2nb7
=> Creating binary package /usr/pkgsrc/devel/scons/work/.packages/py27-scons-3.1.2nb7.tgz
===> Building binary package for py27-scons-3.1.2nb7
=> Creating binary package /usr/pkgsrc/packages/All/py27-scons-3.1.2nb7.tgz
===> Replacing for py27-scons-3.1.2nb7
*** Error code 1

Stop.
make[1]: stopped in /usr/pkgsrc/devel/scons
*** Error code 1



perhaps, scons 3 is now limited to py27.

Well it is trying to build the py27 version, also it is more "sane now" since it says: py27-scons-3.1.2nb7while with pkg_rr it was confused between the py310 and the "none" version:

RR> Replacing py310-scons-3.1.2nb4
===> Cleaning for none-scons-3.1.2nb7


In fact at the moment I have this one installed, according to pkg_info

py310-scons-3.1.2nb4 Python-based, open-source build system

so I suppose pkg_rr was right trying to subdtitute the py3 version

I recommend "pkgin ar" before a rebuild run.

Now it is a little late :-P

Riccardo


Home | Main Index | Thread Index | Old Index