[moin-user] the 'decorator' distribution was not found and is required by traitlets
Paul Boddie
paul at boddie.org.uk
Thu Dec 8 07:07:31 EST 2022
On Thursday, 8 December 2022 09:58:20 CET mariusz sapinski wrote:
> Hi,
>
> since the last update on my Ubuntu (22.04) box I can't start moinmoin
> anymore. I run it standalenow, so I start it with:
>
> python2 moin.py
[...]
> pkg_resources.DistributionNotFound: The 'decorator' distribution was not
> found and is required by traitlets
>
> what is it about?
It sounds like the decorator package was not downloaded or installed
correctly:
https://pypi.org/project/decorator/
I imagine that pip (or whatever today's Python packaging tool is called) was
supposed to install it, but maybe the installation failed. You might want to
check in the place where these packages are normally installed to see if there
is any trace of the decorator package.
Obviously, you will need to be careful how to install these packages. Without
a "virtual environment" made by virtualenv (or venv, or whatever today's
program is called), you can use pip to install into your user's own package
directory. You probably don't want to run these tools as root to install
centrally on the system.
> And how is python3 version of moinmoin going?
As far as I am aware, the work is ongoing. I was working through the exercise
of packaging Moin 2 for Debian because Debian (and Ubuntu) have thrown Python
2 overboard along with the Moin 1.9 package, so only Moin 2 can be offered as
a package in future. I would say that this packaging work is largely done:
https://salsa.debian.org/moin-team
(Ignore all the "old" package repositories.)
However, changes in some of the packages used by Moin cause Moin itself to be
broken:
https://github.com/moinwiki/moin/issues/1109
So, the code needs to be adapted to deal with that breakage, but this is an
exercise that I didn't really get into, not having written the Moin 2 code in
the first place and therefore not being particularly familiar with it.
Paul
More information about the moin-user
mailing list