Hi! I am experiencing something rather strange in the 2.0.1 NT (stable?) version. I have an image 'AdmHeader' which I call on each DTML Doc see example below. <!--#var standard_html_header--> <!--#var AdmHeader--> <h2><!--#var title_or_id--></h2> This is the <!--#var id--> Document. <!--#var standard_html_footer--> When I view this side I get exactly as expected with my image at the top of the page. However when I call this side from another page I get the following error: <STRONG>Error Type: AttributeError</STRONG><BR> <STRONG>Error Value: __call__</STRONG><BR> Traceback (innermost last): File D:\BeeZope\lib\python\ZPublisher\Publish.py, line 214, in publish_module File D:\BeeZope\lib\python\ZPublisher\Publish.py, line 179, in publish File D:\BeeZope\lib\python\Zope\__init__.py, line 201, in zpublisher_exception_hook (Object: ElementWithAttributes) File D:\BeeZope\lib\python\ZPublisher\Publish.py, line 165, in publish File D:\BeeZope\lib\python\ZPublisher\mapply.py, line 160, in mapply (Object: test) File D:\BeeZope\lib\python\ZPublisher\Publish.py, line 102, in call_object (Object: test) File D:\BeeZope\lib\python\OFS\DTMLDocument.py, line 166, in __call__ (Object: test) File D:\BeeZope\lib\python\DocumentTemplate\DT_String.py, line 502, in __call__ (Object: test) AttributeError: (see above) Stranger still I imported from my beta version a folder with the same image calls and it does not complain!! Has anybody experienced anything similar or know of a cure?? Thank you im advance. dave
Since I haven't found an applicable Zope binary for BSDi on an Intel box, I've decided to try and build Zope myself. I'm trying to build it on a remote virtual server running BSDi 3.0 and either get a traceback or no errors but without generation of username/password. The virtual Unix host is running BSDI BSD/OS 3.0 Virtual Kernel #0 I built Python 1.5.2 with threads and also added -rdynamic to LDSHARED in Makefile.pre.in Per the Zope Installatino FAQ, I've also tried changing do('make') to do('make -k') in inst/do.py When I run "python w_pcgi.py" the build goes quite a long ways and finally crashes with: creating default access file Traceback (innermost last): File "w_pcgi.py", line 111, in ? if __name__=='__main__': main(sys.argv[0]) File "w_pcgi.py", line 109, in main import wo_pcgi; wo_pcgi.main(me) File "/usr/home/clearlyo/util/Zope-2.0.1-src/wo_pcgi.py", line 106, in main import zpasswd; zpasswd.write_access(home, user, group) File "/usr/home/clearlyo/util/Zope-2.0.1-src/zpasswd.py", line 128, in write_access pw = pw + whrandom.choice(pw_choices) File "/usr/home/clearlyo/usr/local/lib/python1.5/whrandom.py", line 97, in choice return seq[int(self.random() * len(seq))] OverflowError: float too large to convert If I try to build again, I don't always get this traceback, but I never get a username or password as I expect per the installation instructions. If I try to run ./start, I get this traceback: Traceback (innermost last): File "/usr/home/clearlyo/util/Zope-2.0.1-src/z2.py", line 375, in ? exec "import "+MODULE in {} File "<string>", line 1, in ? File "/usr/home/clearlyo/util/Zope-2.0.1-src/lib/python/Zope/__init__.py", line 95, in ? import Globals, OFS.Application, sys File "/usr/home/clearlyo/util/Zope-2.0.1-src/lib/python/OFS/Application.py", line 96, in ? from AccessControl.User import UserFolder File "/usr/home/clearlyo/util/Zope-2.0.1-src/lib/python/AccessControl/User.py", line 306, in ? raise 'InstallError', 'Invalid format for access file - see INSTALL.txt' InstallError: Invalid format for access file - see INSTALL.txt Any ideas or suggestions would be greatly appreciated! Thanks! -------- Pete Beazley - mailto:pete@clearlyonline.com ClearlyOnline, Inc. XML-based Web Sites & XML services http://www.clearlyonline.com 1-724-942-1912 1-724-941-3698 fax PGP public key - mailto:pgp.pete@clearlyonline.com
At 14:10 12-10-99 , Pete Beazley wrote:
Since I haven't found an applicable Zope binary for BSDi on an Intel box, I've decided to try and build Zope myself. I'm trying to build it on a remote virtual server running BSDi 3.0 and either get a traceback or no errors but without generation of username/password.
The virtual Unix host is running BSDI BSD/OS 3.0 Virtual Kernel #0 I built Python 1.5.2 with threads and also added -rdynamic to LDSHARED in Makefile.pre.in Per the Zope Installatino FAQ, I've also tried changing do('make') to do('make -k') in inst/do.py
When I run "python w_pcgi.py" the build goes quite a long ways and finally crashes with: <SNIP> Any ideas or suggestions would be greatly appreciated!
I have no idea what goes wrong here, but an access file is easily made if you don't mind the password being in plaintext. Just Make a file with the following structure: username:password[:optional domain specifier] where username is the superuser login name of your choice, password the plaintext password, and the domain specifier (which is optional) should be a space separated list of domains, where you can use both ip addresses and ip names, and you can use the * for a wildcard for a whole part (like *.antraciet.nl and 10.1.*.*). Then you at least have a valid access file. Then again, you might have problems with other parts of Zope if your python build is somehow flawed. -- Martijn Pieters, Web Developer | Antraciet http://www.antraciet.nl | T: +31 35 7502100 F: +31 35 7502111 | mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ---------------------------------------------
Thanks Martijn - Creating my own access file got me farther along. I can now get Zope to start and the ZServer indicates it's listening. But when I try to connect with my browser, I get yet another overflow traceback and it is again a conversion error. Looks like there is something fundamentally wrong here. So I ran "make test" on my Python installation, and sure enough, looks like my Python installation is flawed - test_cmath, test_math, and test_pow all fail, two of them with overflow errors. Looks like it's actually a Python problem, so I'm going to dig into my Python installation now! Thanks for your help! Pete
At 14:10 12-10-99 , Pete Beazley wrote:
Since I haven't found an applicable Zope binary for BSDi on an Intel box, I've decided to try and build Zope myself. I'm trying to build it on a remote virtual server running BSDi 3.0 and either get a traceback or no errors but without generation of username/password.
The virtual Unix host is running BSDI BSD/OS 3.0 Virtual Kernel #0 I built Python 1.5.2 with threads and also added -rdynamic to LDSHARED in Makefile.pre.in Per the Zope Installatino FAQ, I've also tried changing do('make') to do('make -k') in inst/do.py
When I run "python w_pcgi.py" the build goes quite a long ways and finally crashes with: <SNIP> Any ideas or suggestions would be greatly appreciated!
I have no idea what goes wrong here, but an access file is easily made if you don't mind the password being in plaintext. Just Make a file with the following structure:
username:password[:optional domain specifier]
participants (3)
-
dave -
Martijn Pieters -
Pete Beazley