Mailing List Archive

Zone 4 issue: The 'Paste' distribution was not found and is required by the application
Hello,

I was wondering if somebody run into this error, and how should I take care of it:

python3.6 -m venv zope4.0
cd zope4.0
bin/pip install -r https://zopefoundation.github.io/Zope/releases/4.0/requirements-full.txt
bin/mkwsgiinstance -d .
bin/runwsgi -v etc/zope.ini

Error:
File "/Applications/zope4.0/lib/python3.6/site-packages/pkg_resources/__init__.py", line 778, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'Paste' distribution was not found and is required by the application

Any idea?

Thanks so much,

Giampiero
_______________________________________________
Zope maillist - Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
https://mail.zope.org/mailman/listinfo/zope-announce
https://mail.zope.org/mailman/listinfo/zope-dev )
Re: Zone 4 issue: The 'Paste' distribution was not found and is required by the application [ In reply to ]
You can run “bin/pip install Paste” in the virtualenv.

jens



> On 14. Jun 2019, at 13:46 , Giampiero Benvenuti <giampiero.benvenuti@chiaroscuro.com> wrote:
>
> Hello,
>
> I was wondering if somebody run into this error, and how should I take care of it:
>
> python3.6 -m venv zope4.0
> cd zope4.0
> bin/pip install -r https://zopefoundation.github.io/Zope/releases/4.0/requirements-full.txt
> bin/mkwsgiinstance -d .
> bin/runwsgi -v etc/zope.ini
>
> Error:
> File "/Applications/zope4.0/lib/python3.6/site-packages/pkg_resources/__init__.py", line 778, in resolve
> raise DistributionNotFound(req, requirers)
> pkg_resources.DistributionNotFound: The 'Paste' distribution was not found and is required by the application
>
> Any idea?
>
> Thanks so much,
>
> Giampiero
> _______________________________________________
> Zope maillist - Zope@zope.org
> https://mail.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> https://mail.zope.org/mailman/listinfo/zope-announce
> https://mail.zope.org/mailman/listinfo/zope-dev )
Re: Zone 4 issue: The 'Paste' distribution was not found and is required by the application [ In reply to ]
Thanks Jens & Alberto,

you right, I guess the paste version was not up to date:

./bin/pip install paste
Collecting paste
Using cached https://files.pythonhosted.org/packages/fc/8e/287533a1515f2e9eaf34be06f35e8f170d0cb625a2ada2c5e41c0b9ae1e5/Paste-3.0.8-py2.py3-none-any.whl
Requirement already satisfied: six>=1.4.0 in ./lib/python3.6/site-packages (from paste) (1.12.0)
Installing collected packages: paste
Successfully installed paste-3.0.8

./bin/runwsgi -v etc/zope.ini
Starting server in PID 3172.
Serving on http://localhost:8080


Zope4.0 it’s now up and running!

> On 14 Jun 2019, at 16:34 48, Jens Vagelpohl <jens@dataflake.org> wrote:
>
> You can run “bin/pip install Paste” in the virtualenv.
>
> jens
>
>
>
>> On 14. Jun 2019, at 13:46 , Giampiero Benvenuti <giampiero.benvenuti@chiaroscuro.com> wrote:
>>
>> Hello,
>>
>> I was wondering if somebody run into this error, and how should I take care of it:
>>
>> python3.6 -m venv zope4.0
>> cd zope4.0
>> bin/pip install -r https://zopefoundation.github.io/Zope/releases/4.0/requirements-full.txt
>> bin/mkwsgiinstance -d .
>> bin/runwsgi -v etc/zope.ini
>>
>> Error:
>> File "/Applications/zope4.0/lib/python3.6/site-packages/pkg_resources/__init__.py", line 778, in resolve
>> raise DistributionNotFound(req, requirers)
>> pkg_resources.DistributionNotFound: The 'Paste' distribution was not found and is required by the application
>>
>> Any idea?
>>
>> Thanks so much,
>>
>> Giampiero
>> _______________________________________________
>> Zope maillist - Zope@zope.org
>> https://mail.zope.org/mailman/listinfo/zope
>> ** No cross posts or HTML encoding! **
>> (Related lists -
>> https://mail.zope.org/mailman/listinfo/zope-announce
>> https://mail.zope.org/mailman/listinfo/zope-dev )
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> https://mail.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> https://mail.zope.org/mailman/listinfo/zope-announce
> https://mail.zope.org/mailman/listinfo/zope-dev )

_______________________________________________
Zope maillist - Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
https://mail.zope.org/mailman/listinfo/zope-announce
https://mail.zope.org/mailman/listinfo/zope-dev )
Re: Zone 4 issue: The 'Paste' distribution was not found and is required by the application [ In reply to ]
Am 14.06.2019 um 17:12 schrieb Giampiero Benvenuti <giampiero.benvenuti@chiaroscuro.com>:
> Thanks Jens & Alberto,
>
> you right, I guess the paste version was not up to date:

Hm,

the problem smells like https://github.com/zopefoundation/Zope/issues/452
and Paste is actually missing from requirements-full.txt

Last time I was not able to reproduce the issue.
But today it was possible.
So I am going to reopen the issue.

Paste is needed because `etc/zope.ini` uses egg:Paste#translogger


>
> ./bin/pip install paste
> Collecting paste
> Using cached https://files.pythonhosted.org/packages/fc/8e/287533a1515f2e9eaf34be06f35e8f170d0cb625a2ada2c5e41c0b9ae1e5/Paste-3.0.8-py2.py3-none-any.whl
> Requirement already satisfied: six>=1.4.0 in ./lib/python3.6/site-packages (from paste) (1.12.0)
> Installing collected packages: paste
> Successfully installed paste-3.0.8
>
> ./bin/runwsgi -v etc/zope.ini
> Starting server in PID 3172.
> Serving on http://localhost:8080
>
>
> Zope4.0 it’s now up and running!
>
>> On 14 Jun 2019, at 16:34 48, Jens Vagelpohl <jens@dataflake.org> wrote:
>>
>> You can run “bin/pip install Paste” in the virtualenv.
>>
>> jens
>>
>>
>>
>>> On 14. Jun 2019, at 13:46 , Giampiero Benvenuti <giampiero.benvenuti@chiaroscuro.com> wrote:
>>>
>>> Hello,
>>>
>>> I was wondering if somebody run into this error, and how should I take care of it:
>>>
>>> python3.6 -m venv zope4.0
>>> cd zope4.0
>>> bin/pip install -r https://zopefoundation.github.io/Zope/releases/4.0/requirements-full.txt
>>> bin/mkwsgiinstance -d .
>>> bin/runwsgi -v etc/zope.ini
>>>
>>> Error:
>>> File "/Applications/zope4.0/lib/python3.6/site-packages/pkg_resources/__init__.py", line 778, in resolve
>>> raise DistributionNotFound(req, requirers)
>>> pkg_resources.DistributionNotFound: The 'Paste' distribution was not found and is required by the application
>>>
>>> Any idea?
>>>
>>> Thanks so much,
>>>
>>> Giampiero
>>> _______________________________________________
>>> Zope maillist - Zope@zope.org
>>> https://mail.zope.org/mailman/listinfo/zope
>>> ** No cross posts or HTML encoding! **
>>> (Related lists -
>>> https://mail.zope.org/mailman/listinfo/zope-announce
>>> https://mail.zope.org/mailman/listinfo/zope-dev )
>>
>> _______________________________________________
>> Zope maillist - Zope@zope.org
>> https://mail.zope.org/mailman/listinfo/zope
>> ** No cross posts or HTML encoding! **
>> (Related lists -
>> https://mail.zope.org/mailman/listinfo/zope-announce
>> https://mail.zope.org/mailman/listinfo/zope-dev )
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> https://mail.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> https://mail.zope.org/mailman/listinfo/zope-announce
> https://mail.zope.org/mailman/listinfo/zope-dev )

--
Mit herzlichen Grüßen
Michael Howitz