[TriZPUG] fix for package upgrade problem

Tom Roche Tom_Roche at pobox.com
Fri Aug 5 04:57:09 CEST 2011


Tom Roche Wed, 03 Aug 2011 15:52:15 -0400
>>> $ lsb_release -ds
>>> > Ubuntu 10.04.3 LTS
...
>>> $ uname -rv
>>> > 2.6.32-33-generic #71-Ubuntu SMP Wed Jul 20 17:27:30 UTC 2011
...
>>> $ python --version
>>> > Python 2.6.5

>>> I'm trying to fix a doc problem on a site that uses yatiblog, but

>>> $ pip install yatiblog
>>> ...
>>> > VersionConflict: (docutils 0.6 (/usr/lib/pymodules/python2.6), Requirement.parse('docutils>=0.7'))

>>> which I take to mean that "yatiblog requires docutils>=0.7, and
>>> docutils>=0.7 requires python>2.6" (esp since I get the same dopeslap
>>> from

>>> $ pip install 'docutils>=0.7'
>>> ...
>>> > VersionConflict: (docutils 0.6 (/usr/lib/pymodules/python2.6), Requirement.parse('docutils>=0.7'))

Chris Calloway Wed, 03 Aug 2011 17:02:50 -0400
> Nothing I'm seeing here suggests that you need python>=2.7 in order to
> get docutils>=0.7.

> Type "pip help install" or visit
> http://www.pip-installer.org/en/latest/index.html to read about
> the -U option for upgrading a package

That was part of the fix, but ...

> I wish Ubuntu would just get out of the Python package management
> business and leave that to Python.

... yatiblog wanted an ubuntu package, and It Would Be Nice if they could play together. Anyway, the fix:

$ sudo pip install -U docutils
...
> Successfully installed docutils

$ sudo pip install -U yatiblog
...

surprisingly long, but I resisted scrollblindness long enough to notice

>     libyaml is not found or a compiler error: forcing --without-libyaml

whereupon I hit C-c, then

$ sudo aptitude install libyaml
...
> Couldn't find package "libyaml".  However, the following packages contain "libyaml" in their name:
>   libyaml-tiny-perl libyaml-appconfig-perl libyaml-syck-perl libyaml-dev libyaml-ruby libyaml-0-1 libyaml-0-2 libyaml-ruby1.8 libyaml-libyaml-perl libyaml-perl

"libyaml-libyaml-perl" ?-) I guessed

$ sudo aptitude install libyaml-dev
> The following NEW packages will be installed:
libyaml-0-2{a}
libyaml-dev
...

$ sudo pip install -U yatiblog
...
> Successfully installed yatiblog

$ which yatiblog
> /usr/local/bin/yatiblog

Onward to usage, thanks for the pointer, Tom Roche <Tom_Roche at pobox.com>


More information about the TriZPUG mailing list