Hi all, after several weeks away from zopeland (sickness) i fetched the latest sources from CVS. AFAIK the soon to be 2.7 should had worked rigth out of the box with python 2.2.x. Anyway with python 2.2.2 (and with both gcc3.2.1 and 2.95) i *allways* get this build error, at build time of zope sources: (...) Creating stop script, stop ------------------------------------------------------------------------------ creating default inituser file Traceback (most recent call last): File "wo_pcgi.py", line 48, in ? if __name__=='__main__': main(sys.argv[0]) File "wo_pcgi.py", line 42, in main import zpasswd; zpasswd.write_inituser(home, user, group) File "/opt/zope/Zop/Zope/zpasswd.py", line 109, in write_inituser pw = write_generated_password(home, ac_path, 'admin') File "/opt/zope/Zop/Zope/zpasswd.py", line 80, in write_generated_password pw = pw + random.choice(pw_choices) File "/usr/lib/python2.2/random.py", line 355, in choice return seq[int(self.random() * len(seq))] OverflowError: float too large to convert make: *** [all] Error 1 Any idea/hint ? (platform is Gentoo/x86) thanxs in advance -- António Meireles <antonio.meireles@epandemic.com> epandemic.com
Can anyone help me to Unsubscribe? I need to leave the list for about 3-4 Thanks! -Vincent Wright antonio.meireles@epandemic.com wrote:
Hi all,
after several weeks away from zopeland (sickness) i fetched the latest sources from CVS.
AFAIK the soon to be 2.7 should had worked rigth out of the box with python 2.2.x.
Anyway with python 2.2.2 (and with both gcc3.2.1 and 2.95) i *allways* get this build error, at build time of zope sources:
(...) Creating stop script, stop ------------------------------------------------------------------------------ creating default inituser file Traceback (most recent call last): File "wo_pcgi.py", line 48, in ? if __name__=='__main__': main(sys.argv[0]) File "wo_pcgi.py", line 42, in main import zpasswd; zpasswd.write_inituser(home, user, group) File "/opt/zope/Zop/Zope/zpasswd.py", line 109, in write_inituser pw = write_generated_password(home, ac_path, 'admin') File "/opt/zope/Zop/Zope/zpasswd.py", line 80, in write_generated_password pw = pw + random.choice(pw_choices) File "/usr/lib/python2.2/random.py", line 355, in choice return seq[int(self.random() * len(seq))] OverflowError: float too large to convert make: *** [all] Error 1
Any idea/hint ? (platform is Gentoo/x86)
thanxs in advance
-- António Meireles <antonio.meireles@epandemic.com> epandemic.com
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Vincent wrote:
Can anyone help me to Unsubscribe? I need to leave the list for about 3-4 Thanks! -Vincent Wright
Every mail on this list contains a footer with this link: http://lists.zope.org/mailman/listinfo/zope Click it, enter your email-adress into the form on the bottom of the page and unsubscribe... no hard task at all... -mj
antonio.meireles@epandemic.com wrote at 2003-1-28 18:51 +0000:
after several weeks away from zopeland (sickness) i fetched the latest sources from CVS.
AFAIK the soon to be 2.7 should had worked rigth out of the box with python 2.2.x.
Anyway with python 2.2.2 (and with both gcc3.2.1 and 2.95) i *allways* get this build error, at build time of zope sources:
(...) Creating stop script, stop ... creating default inituser file Traceback (most recent call last): ... File "/usr/lib/python2.2/random.py", line 355, in choice return seq[int(self.random() * len(seq))] OverflowError: float too large to convert make: *** [all] Error 1 This happens very late in the installation process. Your Zope is almost usable (your create the "inituser" file with the "zpasswd" utility.
Your problem looks like a bug in Python's "random" module. When I remember right, "random()" must return a number between 0.0 and 1.0. When it really does, then "int(self.random() * len(seq))" will not overflow. As a consequence. "random()" behaves badly. Find out why... Dieter
participants (4)
-
antonio.meireles@epandemic.com -
Dieter Maurer -
Maik Jablonski -
Vincent