[Neurodebian-users] python-joblib and python2.7
Emanuele Olivetti
emanuele at relativita.com
Wed Dec 7 23:37:48 UTC 2011
My fault. I just discovered it is ubuntu 10.10 and not 11.04
and 2.7 is not listed as supported :-(
---
$ cat /usr/share/python/debian_defaults
[DEFAULT]
# the default python version
default-version = python2.6
# all supported python versions
supported-versions = python2.6
# formerly supported python versions
old-versions = python2.3, python2.4, python2.5
# unsupported versions, including older versions
unsupported-versions = python2.3, python2.4, python2.5
---
So I guess there is little that can be done besides manual installs etc.
In the short term I found a workaround but then
I'll move to 11.04 or just switch to debian ;-)
Thanks for your help,
Emanuele
I am glad it is
OK on 11.04.
On 12/08/2011 12:01 AM, Yaroslav Halchenko wrote:
> Hi Emanuele,
>
> I thought by now you would be all Debian ;) oh well -- now both of us
> need to suffer...
>
> I can't reproduce your problem -- doing that in a clean 11.04 chroot and
> everything is splendid as long as I have both 2.6 and 2.7 available (see
> below). so check that you do have 11.04, that you do have both pythons, that
> you have them listed as supported in /usr/share/python/debian_defaults, try
> reinstalling it (apt-get install --reinstall python-joblib),...
>
> neurodebian at head2:~$ sudo nd_login nd+ubuntu natty amd64 /tmp
> -> Copying COW directory
> forking: rm -rf /backup/neurodebian/build/cow.4086
> forking: cp -al /backup/neurodebian/cow/nd+ubuntu-natty-amd64.cow /backup/neurodebian/build/cow.4086
> I: removed stale ilistfile /backup/neurodebian/build/cow.4086/.ilist
> -> Invoking pbuilder
> forking: pbuilder login --aptcache /backup/neurodebian/ubuntu_aptcache --bindmounts /tmp --buildplace /backup/neurodebian/build/cow.4086 --no-targz --internal-chrootexec chroot /backup/neurodebian/build/cow.4086 cow-shell
> W: /root/.pbuilderrc does not exist
> I: Running in no-targz mode
> I: copying local configuration
> I: mounting /proc filesystem
> I: mounting /dev/pts filesystem
> I: Mounting /tmp
> I: Mounting /var/cache/pbuilder/ccache
> I: policy-rc.d already exists
> I: Obtaining the cached apt archive contents
> apt-get install python-joblib
> I: entering the shell
> root at head2:/# apt-get install python-joblib
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> The following extra packages will be installed:
> libexpat1 mime-support neurodebian-popularity-contest popularity-contest python python-support python2.7
> Suggested packages:
> anacron python-doc python-tk python-profiler python2.7-doc python2.7-profiler
> Recommended packages:
> file python-numpy python-nose python-simplejson
> The following NEW packages will be installed:
> libexpat1 mime-support neurodebian-popularity-contest popularity-contest python python-joblib python-support python2.7
> 0 upgraded, 8 newly installed, 0 to remove and 0 not upgraded.
> Need to get 0 B/3016 kB of archives.
> After this operation, 12.1 MB of additional disk space will be used.
> Do you want to continue [Y/n]?
> debconf: delaying package configuration, since apt-utils is not installed
> Selecting previously deselected package libexpat1.
> (Reading database ... 13599 files and directories currently installed.)
> Unpacking libexpat1 (from .../libexpat1_2.0.1-7ubuntu3_amd64.deb) ...
> Selecting previously deselected package popularity-contest.
> Unpacking popularity-contest (from .../popularity-contest_1.51ubuntu1_all.deb) ...
> Selecting previously deselected package mime-support.
> Unpacking mime-support (from .../mime-support_3.51-1ubuntu1_all.deb) ...
> Selecting previously deselected package python2.7.
> Unpacking python2.7 (from .../python2.7_2.7.1-5ubuntu2_amd64.deb) ...
> Selecting previously deselected package python.
> Unpacking python (from .../python_2.7.1-0ubuntu5_all.deb) ...
> Selecting previously deselected package python-support.
> Unpacking python-support (from .../python-support_1.0.10ubuntu3_all.deb) ...
> Selecting previously deselected package neurodebian-popularity-contest.
> Unpacking neurodebian-popularity-contest (from .../neurodebian-popularity-contest_0.25~nd11.04+1_all.deb) ...
> Selecting previously deselected package python-joblib.
> Unpacking python-joblib (from .../python-joblib_0.5.4-1~nd11.04+1_all.deb) ...
> Setting up libexpat1 (2.0.1-7ubuntu3) ...
> Setting up popularity-contest (1.51ubuntu1) ...
> Setting up mime-support (3.51-1ubuntu1) ...
> update-alternatives: using /usr/bin/see to provide /usr/bin/view (view) in auto mode.
> Setting up python2.7 (2.7.1-5ubuntu2) ...
> Setting up python (2.7.1-0ubuntu5) ...
> Setting up python-support (1.0.10ubuntu3) ...
> Setting up neurodebian-popularity-contest (0.25~nd11.04+1) ...
> Adding NeuroDebian url for Popularity Contest submissions.
> Setting up python-joblib (0.5.4-1~nd11.04+1) ...
> Processing triggers for libc-bin ...
> ldconfig deferred processing now taking place
> Processing triggers for python-support ...
> root at head2:/# python2.7 -c 'import joblib;print joblib.__version__'
> 0.5.4
> root at head2:/# python2.6 -c 'import joblib;print joblib.__version__'
> -bash: python2.6: command not found
> root at head2:/# apt-get install python2.6
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> The following extra packages will be installed:
> python2.6-minimal
> Suggested packages:
> python2.6-doc python2.6-profiler binfmt-support
> The following NEW packages will be installed:
> python2.6 python2.6-minimal
> 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
> Need to get 0 B/3936 kB of archives.
> After this operation, 15.0 MB of additional disk space will be used.
> Do you want to continue [Y/n]?
> debconf: delaying package configuration, since apt-utils is not installed
> Selecting previously deselected package python2.6-minimal.
> (Reading database ... 14303 files and directories currently installed.)
> Unpacking python2.6-minimal (from .../python2.6-minimal_2.6.6-6ubuntu7_amd64.deb) ...
> Selecting previously deselected package python2.6.
> Unpacking python2.6 (from .../python2.6_2.6.6-6ubuntu7_amd64.deb) ...
> Setting up python2.6-minimal (2.6.6-6ubuntu7) ...
> Setting up python2.6 (2.6.6-6ubuntu7) ...
> Processing triggers for python-support ...
> root at head2:/# python2.6 -c 'import joblib;print joblib.__version__'
> 0.5.4
> root at head2:/# ls -ld /usr/lib/pymodules/python2.*/joblib
> drwxr-xr-x 3 root root 4096 Dec 7 22:57 /usr/lib/pymodules/python2.6/joblib
> drwxr-xr-x 3 root root 4096 Dec 7 22:56 /usr/lib/pymodules/python2.7/joblib
>
>
> On Wed, 07 Dec 2011, Emanuele Olivetti wrote:
>
>> Hi,
>> I am using neurodebian repositories on ubuntu (11.04). I have installed
>> both python2.6 (default python) and python2.7 via apt-get. Then I installed
>> python-joblib via apt-get from neurodebian repositories but I can see
>> that library only from python2.6. Precisely python-joblib is installed
>> in /usr/share/pyshared/joblib and symbolic links are created within
>> /usr/lib/pymodules/python2.6/joblib. Is there a reason why they are not
>> created in /usr/lib/pymodules/python2.7 as well? By the way
>> /usr/lib/pymodules/python2.6 does not exist at all...
>> Am I missing something?
>> Best,
>> Emanuele
>
>> _______________________________________________
>> Neurodebian-users mailing list
>> Neurodebian-users at lists.alioth.debian.org
>> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/neurodebian-users
>
More information about the Neurodebian-users
mailing list