[Zope] Caveat emptor: Re: [Zope] problem installing login manager
Once you get DynPersist, if you\'re using the latest version of LoginManager you will still get an error about the plugins. (something about registerhelp contexthelp don\'t remember) Quick fix: cd into lib/python/Products/PlugIns edit the file __init__.py at line 7 there is a function called initialize(context): before context.registerHelp(), insert a line with the same indentation that says return so it will be like this . . . def initialize(context): return<- this is your craft context.registerHelp() . . . . because it seems that registerHelp cannot find some required files. Well, this is a hack, not even a solution, but what do you prefer, no plugins or no help in your working plugins? I seize the oppportunity to ask someone knowledgeable with this ZPatterns and Plugins and LoginManager stuff. I can\'t understand it. I\'ve perused all the \"documentation\" in its wiki, to no avail. Thanks in advance. Quoting Henny van der Linde <[EMAIL PROTECTED]>: > Hi, > > I just installed Zope 2.2.2 and tried to install the latest version of > Login > Manager. > > It failed: > > LoginManager Import Traceback > Traceback (innermost last): > File \"C:\\Program Files\\WebSite22\\lib\\python\\OFS\\Application.py\", line > 397, > in import_products > product=__import__(pname, global_dict, global_dict, silly) > File \"C:\\Program > Files\\WebSite22\\lib\\python\\Products\\LoginManager\\__init__.py\", line 1, > in ? > import LoginManager, LoginMethods, UserSources > File \"C:\\Program > Files\\WebSite22\\lib\\python\\Products\\LoginManager\\LoginManager.py\", line > 8, > in ? > from Products.ZPatterns.Specialists import Specialist > File \"C:\\Program > Files\\WebSite22\\lib\\python\\Products\\ZPatterns\\__init__.py\", line 1, in > ? > import Rack, Specialists, Customizers, AttributeProviders, > SheetProviders > File \"C:\\Program > Files\\WebSite22\\lib\\python\\Products\\ZPatterns\\Rack.py\", > line 9, in ? > from DataSkins import DataSkin > File \"C:\\Program > Files\\WebSite22\\lib\\python\\Products\\ZPatterns\\DataSkins.py\", line 1, in > ? > from DynPersist import DynPersist > ImportError: No module named DynPersist > > What \'s happening? > > Thanks > > > Henny van der Linde > -- Universidad Federico Santa Maria - Campus Guayaquil Enviado por: www.usm.edu.ec ___ Zope maillist - [EMAIL PROTECTED] 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 )
Re: [Zope] problem installing login manager/Zpatterns
Hi, - Original Message - From: "Phil Harris" <[EMAIL PROTECTED]> To: "Henny van der Linde" <[EMAIL PROTECTED]>; "Zope mailing list" <[EMAIL PROTECTED]> Sent: Saturday, October 28, 2000 11:58 PM Subject: Re: [Zope] problem installing login manager > Henny, > > You also need the ZPatterns product, which you then have to compile to get > the dynpersist.pyd file. > > hth > I know. It's included in the latest install of Login Manager (Zpatterns 0-4.3b1). The funny thing is that Zpatterns shows itself in the control panel/product management as installed product and Login Manager as an broken product. However when Zope boots up it also mentiones that it can't import the dynpersist.pyd file (belonging to Zpatterns). Interesting question is why Zpatterns isn't listed as a broken product as well. I tried to install the separate Zpatterns install but with the same results. Still a problem with dynpersist.pyd. Anyone? cheers, Henny van der Linde. ___ Zope maillist - [EMAIL PROTECTED] 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 )
Re: [Zope] problem installing login manager
Henny, You also need the ZPatterns product, which you then have to compile to get the dynpersist.pyd file. hth Phil - Original Message - From: Henny van der Linde To: Zope mailing list Sent: Monday, October 30, 2000 12:27 AM Subject: [Zope] problem installing login manager Hi, I just installed Zope 2.2.2 and tried to install the latest version of Login Manager. It failed: LoginManager Import Traceback Traceback (innermost last): File "C:\Program Files\WebSite22\lib\python\OFS\Application.py", line 397, in import_products product=__import__(pname, global_dict, global_dict, silly) File "C:\Program Files\WebSite22\lib\python\Products\LoginManager\__init__.py", line 1, in ? import LoginManager, LoginMethods, UserSources File "C:\Program Files\WebSite22\lib\python\Products\LoginManager\LoginManager.py", line 8, in ? from Products.ZPatterns.Specialists import Specialist File "C:\Program Files\WebSite22\lib\python\Products\ZPatterns\__init__.py", line 1, in ? import Rack, Specialists, Customizers, AttributeProviders, SheetProviders File "C:\Program Files\WebSite22\lib\python\Products\ZPatterns\Rack.py", line 9, in ? from DataSkins import DataSkin File "C:\Program Files\WebSite22\lib\python\Products\ZPatterns\DataSkins.py", line 1, in ? from DynPersist import DynPersist ImportError: No module named DynPersist What 's happening? Thanks Henny van der Linde ___ Zope maillist - [EMAIL PROTECTED] 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 )
[Zope] problem installing login manager
Hi,I just installed Zope 2.2.2 and tried to install the latest version of LoginManager.It failed:LoginManager Import TracebackTraceback (innermost last): File "C:\Program Files\WebSite22\lib\python\OFS\Application.py", line 397,in import_products product=__import__(pname, global_dict, global_dict, silly) File "C:\ProgramFiles\WebSite22\lib\python\Products\LoginManager\__init__.py", line 1, in ? import LoginManager, LoginMethods, UserSources File "C:\ProgramFiles\WebSite22\lib\python\Products\LoginManager\LoginManager.py", line 8,in ? from Products.ZPatterns.Specialists import Specialist File "C:\ProgramFiles\WebSite22\lib\python\Products\ZPatterns\__init__.py", line 1, in ? import Rack, Specialists, Customizers, AttributeProviders,SheetProviders File "C:\Program Files\WebSite22\lib\python\Products\ZPatterns\Rack.py",line 9, in ? from DataSkins import DataSkin File "C:\ProgramFiles\WebSite22\lib\python\Products\ZPatterns\DataSkins.py", line 1, in ? from DynPersist import DynPersistImportError: No module named DynPersistWhat 's happening?ThanksHenny van der Linde
Re: [Zope] problem installing login manager
You need to compile the DynPersist.c file for ZPatters to work. put a "Makefile.pre.in" file in the ZPatterns directory. (there is one in the lib/python dir, but any should work) then do a "make -f Makefile.pre.in boot" and then a "make" in the ZPatterns directory. Then it should be OK. - Note: I also had to add an empty "help" directory in the PlugIns directory to keep it from complaining about registering with the help system. hope this helps Jason --- Henny van der Linde <[EMAIL PROTECTED]> wrote: > Hi, > > I just installed Zope 2.2.2 and tried to install the > latest version of Login > Manager. > > It failed: > > LoginManager Import Traceback > Traceback (innermost last): > File "C:\Program > Files\WebSite22\lib\python\OFS\Application.py", line > 397, > in import_products > product=__import__(pname, global_dict, > global_dict, silly) > File "C:\Program > Files\WebSite22\lib\python\Products\LoginManager\__init__.py", > line 1, in ? > import LoginManager, LoginMethods, UserSources > File "C:\Program > Files\WebSite22\lib\python\Products\LoginManager\LoginManager.py", > line 8, > in ? > from Products.ZPatterns.Specialists import > Specialist > File "C:\Program > Files\WebSite22\lib\python\Products\ZPatterns\__init__.py", > line 1, in ? > import Rack, Specialists, Customizers, > AttributeProviders, > SheetProviders > File "C:\Program > Files\WebSite22\lib\python\Products\ZPatterns\Rack.py", > line 9, in ? > from DataSkins import DataSkin > File "C:\Program > Files\WebSite22\lib\python\Products\ZPatterns\DataSkins.py", > line 1, in ? > from DynPersist import DynPersist > ImportError: No module named DynPersist > > What 's happening? > > Thanks > > > Henny van der Linde > > > ___ > Zope maillist - [EMAIL PROTECTED] > 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 ) > __ Do You Yahoo!? Yahoo! Messenger - Talk while you surf! It's FREE. http://im.yahoo.com/ ___ Zope maillist - [EMAIL PROTECTED] 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 )
Re: [Zope] problem installing login manager
On Sun, 29 Oct 2000, Henny van der Linde wrote: [...] > Files\WebSite22\lib\python\Products\ZPatterns\DataSkins.py", line 1, in ? > from DynPersist import DynPersist > ImportError: No module named DynPersist > > What 's happening? You probably need to compile the DynPersist.c file into a shared library; it's located within the ZPatterns product, and this command line (or something similar) will probably compile it for you: """ gcc -O2 -o DynPersist.so -c DynPersist.c -I../../ZODB \ -I../../../Components/ExtensionClass -I/usr/include/python1.5 """ HTH. Regards, Morten ___ Zope maillist - [EMAIL PROTECTED] 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 )
[Zope] problem installing login manager
Hi, I just installed Zope 2.2.2 and tried to install the latest version of Login Manager. It failed: LoginManager Import Traceback Traceback (innermost last): File "C:\Program Files\WebSite22\lib\python\OFS\Application.py", line 397, in import_products product=__import__(pname, global_dict, global_dict, silly) File "C:\Program Files\WebSite22\lib\python\Products\LoginManager\__init__.py", line 1, in ? import LoginManager, LoginMethods, UserSources File "C:\Program Files\WebSite22\lib\python\Products\LoginManager\LoginManager.py", line 8, in ? from Products.ZPatterns.Specialists import Specialist File "C:\Program Files\WebSite22\lib\python\Products\ZPatterns\__init__.py", line 1, in ? import Rack, Specialists, Customizers, AttributeProviders, SheetProviders File "C:\Program Files\WebSite22\lib\python\Products\ZPatterns\Rack.py", line 9, in ? from DataSkins import DataSkin File "C:\Program Files\WebSite22\lib\python\Products\ZPatterns\DataSkins.py", line 1, in ? from DynPersist import DynPersist ImportError: No module named DynPersist What 's happening? Thanks Henny van der Linde ___ Zope maillist - [EMAIL PROTECTED] 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 )