Hi, I downloaded and installed ZBabel ver 2.0 beta 2 and restarted Zope. I got an error : ImportError: canot import name get_request which is caused by the following lines in ZBabelObject.py and __init__.py : from Globals import get_request Now I dont know why the call is necessary or otherwise, but I would like to know how to get around this problem? The problem is that get_request is also called twice in the source, so I cant just go around messing in the code without spending a lot of time. If anybody has encountered the problem and fixed it, any pointers as to how to fix this would be great. My config: Zope 2.5.1 on RH 7.2 with Python 2.1.2 TIA AM -- ================================================================== Aseem Mohanty Neurobehavioral Systems Inc, 828 San Pablo Ave, Albany, CA 94706 (R) 510 7696011 (M) 510 3014871 (O) 510 5279231 ================================================================== "I saw `cout' being shifted "Hello world" times to the left and stopped right there!!" -- Steve Gonedes ==================================================================
you need to apply a patch to zope itself. this is explained in the ZBabel documentation as far as i know. jens On Monday, Sep 9, 2002, at 18:36 US/Eastern, AM wrote:
Hi, I downloaded and installed ZBabel ver 2.0 beta 2 and restarted Zope. I got an error :
ImportError: canot import name get_request
which is caused by the following lines in ZBabelObject.py and __init__.py :
from Globals import get_request
Now I dont know why the call is necessary or otherwise, but I would like to know how to get around this problem? The problem is that get_request is also called twice in the source, so I cant just go around messing in the code without spending a lot of time.
If anybody has encountered the problem and fixed it, any pointers as to how to fix this would be great.
My config:
Zope 2.5.1 on RH 7.2 with Python 2.1.2
TIA AM
--
The Global Request Patch. that ZBabel needs, can be found here: http://www.zope.org/Members/tmclaugh/GlobalRequestPatch Another option is to install Localizer, which includes a dynamic version of the same patch, this is the fastest and more reliable way to get ZBabel working. Sorry, I couldn't resist ;-) Regards, david Jens Vagelpohl wrote:
you need to apply a patch to zope itself. this is explained in the ZBabel documentation as far as i know.
jens
On Monday, Sep 9, 2002, at 18:36 US/Eastern, AM wrote:
Hi, I downloaded and installed ZBabel ver 2.0 beta 2 and restarted Zope. I got an error :
ImportError: canot import name get_request
which is caused by the following lines in ZBabelObject.py and __init__.py :
from Globals import get_request
Now I dont know why the call is necessary or otherwise, but I would like to know how to get around this problem? The problem is that get_request is also called twice in the source, so I cant just go around messing in the code without spending a lot of time.
If anybody has encountered the problem and fixed it, any pointers as to how to fix this would be great.
My config:
Zope 2.5.1 on RH 7.2 with Python 2.1.2
TIA AM
--
-- J. David Ibáñez, http://www.j-david.net Software Engineer / Ingénieur Logiciel / Ingeniero de Software
So the Localizer is the wayt ot go then.??? Because the link docs say that it only owrks for 2.3.0 only... although I assume that it will work for 2.5.1 too.... TIA AM Juan David Ibáñez Palomar wrote:
The Global Request Patch. that ZBabel needs, can be found here:
http://www.zope.org/Members/tmclaugh/GlobalRequestPatch
Another option is to install Localizer, which includes a dynamic version of the same patch, this is the fastest and more reliable way to get ZBabel working. Sorry, I couldn't resist ;-)
Regards, david
Jens Vagelpohl wrote:
you need to apply a patch to zope itself. this is explained in the ZBabel documentation as far as i know.
jens
On Monday, Sep 9, 2002, at 18:36 US/Eastern, AM wrote:
Hi, I downloaded and installed ZBabel ver 2.0 beta 2 and restarted Zope. I got an error :
ImportError: canot import name get_request
which is caused by the following lines in ZBabelObject.py and __init__.py :
from Globals import get_request
Now I dont know why the call is necessary or otherwise, but I would like to know how to get around this problem? The problem is that get_request is also called twice in the source, so I cant just go around messing in the code without spending a lot of time.
If anybody has encountered the problem and fixed it, any pointers as to how to fix this would be great.
My config:
Zope 2.5.1 on RH 7.2 with Python 2.1.2
TIA AM
--
-- ================================================================== Aseem Mohanty Neurobehavioral Systems Inc, 828 San Pablo Ave, Albany, CA 94706 (R) 510 7696011 (M) 510 3014871 (O) 510 5279231 ================================================================== "I saw `cout' being shifted "Hello world" times to the left and stopped right there!!" -- Steve Gonedes ==================================================================
I've never tried the patch myself. It will work if the relevant files didn't change too much between the 2.3.0 and the 2.5.1 versions. Localizer works. Just try whatever solution you prefer, if it doesn't works try the other one. Regards, AM wrote:
So the Localizer is the wayt ot go then.??? Because the link docs say that it only owrks for 2.3.0 only... although I assume that it will work for 2.5.1 too.... TIA AM
Juan David Ibáñez Palomar wrote:
The Global Request Patch. that ZBabel needs, can be found here:
http://www.zope.org/Members/tmclaugh/GlobalRequestPatch
Another option is to install Localizer, which includes a dynamic version of the same patch, this is the fastest and more reliable way to get ZBabel working. Sorry, I couldn't resist ;-)
Regards, david
Jens Vagelpohl wrote:
you need to apply a patch to zope itself. this is explained in the ZBabel documentation as far as i know.
jens
On Monday, Sep 9, 2002, at 18:36 US/Eastern, AM wrote:
Hi, I downloaded and installed ZBabel ver 2.0 beta 2 and restarted Zope. I got an error :
ImportError: canot import name get_request
which is caused by the following lines in ZBabelObject.py and __init__.py :
from Globals import get_request
Now I dont know why the call is necessary or otherwise, but I would like to know how to get around this problem? The problem is that get_request is also called twice in the source, so I cant just go around messing in the code without spending a lot of time.
If anybody has encountered the problem and fixed it, any pointers as to how to fix this would be great.
My config:
Zope 2.5.1 on RH 7.2 with Python 2.1.2
TIA AM
--
-- J. David Ibáñez, http://www.j-david.net Software Engineer / Ingénieur Logiciel / Ingeniero de Software
participants (3)
-
AM -
Jens Vagelpohl -
Juan David Ibáñez Palomar