Mailing List Archive

ZopeCtlOptions instance has no attribute 'transcript' (was: Re: [Zope-dev] Annoucement: Zope2 2.13.27 released)
After installing Zope 2.13.27, I see this:

"""
File "/home/zope/Zope-2.13.27-virtualenv/bin/zopectl", line 11, in <module>
sys.exit(run())
File
"/home/zope/Zope-2.13.27-virtualenv/lib/python2.7/site-packages/Zope2/Startup/zopectl.py",
line 488, in run
exitstatus = main()
File
"/home/zope/Zope-2.13.27-virtualenv/lib/python2.7/site-packages/Zope2/Startup/zopectl.py",
line 447, in main
c.onecmd(" ".join(options.args))
File "/opt/local/lib/python2.7/cmd.py", line 221, in onecmd
return func(arg)
File
"/home/zope/Zope-2.13.27-virtualenv/lib/python2.7/site-packages/Zope2/Startup/zopectl.py",
line 241, in do_start
ZDCmd.do_start(self, arg)
File
"/home/zope/Zope-2.13.27-virtualenv/lib/python2.7/site-packages/zdaemon/zdctl.py",
line 307, in do_start
args += self._get_override("-t", "transcript")
File
"/home/zope/Zope-2.13.27-virtualenv/lib/python2.7/site-packages/Zope2/Startup/zopectl.py",
line 223, in _get_override
value = getattr(self.options, name)
AttributeError: ZopeCtlOptions instance has no attribute 'transcript'
"""

I installed creating a virtualenv and then, inside:

$ bin/pip install Zope2==2.13.27
$ bin/pip install "Products.ZSQLMethods<3.0"


I have reverted to Zope 2.13.26 for now :-(.

--
Jes?s Cea Avi?n _/_/ _/_/_/ _/_/_/
jcea@jcea.es - http://www.jcea.es/ _/_/ _/_/ _/_/ _/_/ _/_/
Twitter: @jcea _/_/ _/_/ _/_/_/_/_/
jabber / xmpp:jcea@jabber.org _/_/ _/_/ _/_/ _/_/ _/_/
"Things are not so easy" _/_/ _/_/ _/_/ _/_/ _/_/ _/_/
"My name is Dump, Core Dump" _/_/_/ _/_/_/ _/_/ _/_/
"El amor es poner tu felicidad en la felicidad de otro" - Leibniz
Re: ZopeCtlOptions instance has no attribute 'transcript' (was: Re: [Zope-dev] Annoucement: Zope2 2.13.27 released) [ In reply to ]
Hi Jesus,

thank you for trying out Zope 2.13.27.

Am 01.02.2018 um 21:19 schrieb Jesus Cea <jcea@jcea.es>:
> After installing Zope 2.13.27, I see this:
>
> """
> File "/home/zope/Zope-2.13.27-virtualenv/bin/zopectl", line 11, in <module>
> sys.exit(run())
> File
> "/home/zope/Zope-2.13.27-virtualenv/lib/python2.7/site-packages/Zope2/Startup/zopectl.py",
> line 488, in run
> exitstatus = main()
> File
> "/home/zope/Zope-2.13.27-virtualenv/lib/python2.7/site-packages/Zope2/Startup/zopectl.py",
> line 447, in main
> c.onecmd(" ".join(options.args))
> File "/opt/local/lib/python2.7/cmd.py", line 221, in onecmd
> return func(arg)
> File
> "/home/zope/Zope-2.13.27-virtualenv/lib/python2.7/site-packages/Zope2/Startup/zopectl.py",
> line 241, in do_start
> ZDCmd.do_start(self, arg)
> File
> "/home/zope/Zope-2.13.27-virtualenv/lib/python2.7/site-packages/zdaemon/zdctl.py",
> line 307, in do_start
> args += self._get_override("-t", "transcript")
> File
> "/home/zope/Zope-2.13.27-virtualenv/lib/python2.7/site-packages/Zope2/Startup/zopectl.py",
> line 223, in _get_override
> value = getattr(self.options, name)
> AttributeError: ZopeCtlOptions instance has no attribute 'transcript'
> """
>
> I installed creating a virtualenv and then, inside:
>
> $ bin/pip install Zope2==2.13.27

The suggested way to install Zope 2 is:

$ bin/pip install --no-binary zc.recipe.egg -r https://zopefoundation.github.io/Zope/releases/2.13.27/requirements.txt

Does the exception also happen if you install Zope 2.13.27 this way? (in a new virtualenv)
(Without the requirements file some too new versions of deepened packages are getting installed.)
I get another error if I install Zope2 as you did. What did you do after installing the packages?
What command did you call to get the traceback?

See http://zope.readthedocs.io/en/2.13/INSTALL-virtualenv.html for details.


> $ bin/pip install "Products.ZSQLMethods<3.0“

I think this one is correct.

> I have reverted to Zope 2.13.26 for now :-(.

--
Mit herzlichen Grüßen
Michael Howitz
Re: ZopeCtlOptions instance has no attribute 'transcript' [ In reply to ]
On 05/02/18 13:26, Michael Howitz wrote:
> Am 01.02.2018 um 21:19 schrieb Jesus Cea <jcea@jcea.es>:
>> I installed creating a virtualenv and then, inside:
>>
>> $ bin/pip install Zope2==2.13.27
>
> The suggested way to install Zope 2 is:
>
> $ bin/pip install --no-binary zc.recipe.egg -r https://zopefoundation.github.io/Zope/releases/2.13.27/requirements.txt
>
> Does the exception also happen if you install Zope 2.13.27 this way?

it works. Nice. Upgraded! :-).

Sorry for wasting your time.

The announcement email is quite short, 3 paragraphs. One of them is just
this:

"""
You can download it via PyPI: https://pypi.org/project/Zope2/2.13.27
"""

Yes, I can download it, but I can not install it via PYPI as a regular
package. It doesn't work. In fact
<https://pypi.org/project/Zope2/2.13.27> shows "pip install
Zope2==2.13.27", that we have seen as wrong command to install.

I wonder why "requirements.txt" in pypi package doesn't pin dependencies
versions, as listed. Is that a PIP bug?.

The thing is:

1. Zope2 can not be installed as 99.9% other packages, just doing "pip
install".

2. The announcement email points to a webpage showing a PROMINENT
install command that produce a non-working configuration.

A simple possibility is just to add paragraph in future announcement
emails just saying: "This package ca not be installed in the regular
way. Follow instructions in http://....".

Thanks for the work you and all the team are doing. Much appreciated.
Looking forward Zope 4 and scared of how the migration will go :). Too
much legacy, grateful of Zope 2 maintenance :).

--
Jes?s Cea Avi?n _/_/ _/_/_/ _/_/_/
jcea@jcea.es - http://www.jcea.es/ _/_/ _/_/ _/_/ _/_/ _/_/
Twitter: @jcea _/_/ _/_/ _/_/_/_/_/
jabber / xmpp:jcea@jabber.org _/_/ _/_/ _/_/ _/_/ _/_/
"Things are not so easy" _/_/ _/_/ _/_/ _/_/ _/_/ _/_/
"My name is Dump, Core Dump" _/_/_/ _/_/_/ _/_/ _/_/
"El amor es poner tu felicidad en la felicidad de otro" - Leibniz
Re: ZopeCtlOptions instance has no attribute 'transcript' [ In reply to ]
Hi Jesus,
Am 06.02.2018 um 21:02 schrieb Jesus Cea <jcea@jcea.es>:
[…]
> it works. Nice. Upgraded! :-).

Nice!

> Sorry for wasting your time.

It seemed that actually I was wasting your time by writing a too short announcement.
Sorry for that.

> The announcement email is quite short, 3 paragraphs. One of them is just
> this:
>
> """
> You can download it via PyPI: https://pypi.org/project/Zope2/2.13.27
> """
>
> Yes, I can download it, but I can not install it via PYPI as a regular
> package. It doesn't work. In fact
> <https://pypi.org/project/Zope2/2.13.27> shows "pip install
> Zope2==2.13.27", that we have seen as wrong command to install.

You are right.

> I wonder why "requirements.txt" in pypi package doesn't pin dependencies
> versions, as listed. Is that a PIP bug?.

It does not seem be supported by pip, at least I did not find a way to trick it to install the requirements.txt from inside a package it should install.
Anyone else who has a tip?

> The thing is:
>
> 1. Zope2 can not be installed as 99.9% other packages, just doing "pip
> install".
>
> 2. The announcement email points to a webpage showing a PROMINENT
> install command that produce a non-working configuration.

You are right, I am looking forward to create a more helpful announcement next time.

> A simple possibility is just to add paragraph in future announcement
> emails just saying: "This package ca not be installed in the regular
> way. Follow instructions in http://....“.

Thank you for your valuable feedback.


--
Mit freundlichen Grüßen
Michael Howitz