Help on installing zope and some products.
Hi All, A newbie to all this, I'm trying to install ERP5 on my WinXP system, and everything was going well..... until zope stopped loading and came up with the following message... NameError: name 'get_abspath' is not defined The weird thing is that File "C:\Program Files\Zope-2.7.2-0\lib\python\Zope\Startup\__init__.py", line 33, in ? check_python_version() does not even mention the 'get_abspath' I have the following products installed (amongst others), but the system won't run. Package Version iHotfix 0.4.0 itools 0.4.6 Localizer 1.1.0a4 The error message is: C:\Zope-Instance\bin>runzope.bat C:\Zope-Instance\bin>"C:\Program Files\Zope-2.7.2-0\bin\python.exe" "C:\Program Files\Zope-2.7.2-0\lib\python\Zope\Startup\run.py" -C "C:\Zope-Instanc e\etc\zope.conf" ------ 2004-10-12T21:51:45 INFO(0) ZServer HTTP server started at Tue Oct 12 21:51:45 2004 Hostname: 2400Steve Port: 8080 ------ 2004-10-12T21:51:45 INFO(0) ZServer FTP server started at Tue Oct 12 21:51:45 2004 Hostname: 2400Steve Port: 8021 ------ 2004-10-12T21:51:46 ERROR(200) Zope Could not import Products.CMFActivity Traceback (most recent call last): File "C:\Program Files\Zope-2.7.2-0\lib\python\OFS\Application.py", line 660, in import_product product=__import__(pname, global_dict, global_dict, silly) File "C:\Zope-Instance\Products\CMFActivity\__init__.py", line 34, in ? from Products.ERP5Type.Utils import initializeProduct, updateGlobals File "C:\Zope-Instance/ERP5\ERP5Type\__init__.py", line 44, in ? import Products.Localizer # So that we make sure Globals.get_request is available File "C:\Program Files\Zope-2.7.2-0\lib\python\Products\Localizer\__init__.py", line 28, in ? import Localizer, LocalContent, MessageCatalog, LocalFolder File "C:\Program Files\Zope-2.7.2-0\lib\python\Products\Localizer\Localizer.py", line 28, in ? from itools import i18n File "C:\Program Files\Zope-2.7.2-0\lib\python\Products\Localizer\itools\i18n\__init__.py", line 33, in ? check_python_version() NameError: name 'get_abspath' is not defined Traceback (most recent call last): File "C:\Program Files\Zope-2.7.2-0\lib\python\Zope\Startup\run.py", line 50, in ? run() File "C:\Program Files\Zope-2.7.2-0\lib\python\Zope\Startup\run.py", line 19, in run start_zope(opts.configroot) File "C:\Program Files\Zope-2.7.2-0\lib\python\Zope\Startup\__init__.py", line 51, in start_zope starter.startZope() File "C:\Program Files\Zope-2.7.2-0\lib\python\Zope\Startup\__init__.py", line 230, in startZope Zope.startup() File "C:\Program Files\Zope-2.7.2-0\lib\python\Zope\__init__.py", line 47, in startup _startup() File "C:\Program Files\Zope-2.7.2-0\lib\python\Zope\App\startup.py", line 45, in startup OFS.Application.import_products() File "C:\Program Files\Zope-2.7.2-0\lib\python\OFS\Application.py", line 637, in import_products import_product(product_dir, product_name, raise_exc=debug_mode) File "C:\Program Files\Zope-2.7.2-0\lib\python\OFS\Application.py", line 660, in import_product product=__import__(pname, global_dict, global_dict, silly) File "C:\Zope-Instance\Products\CMFActivity\__init__.py", line 34, in ? from Products.ERP5Type.Utils import initializeProduct, updateGlobals File "C:\Zope-Instance/ERP5\ERP5Type\__init__.py", line 44, in ? import Products.Localizer # So that we make sure Globals.get_request is available File "C:\Program Files\Zope-2.7.2-0\lib\python\Products\Localizer\__init__.py", line 28, in ? import Localizer, LocalContent, MessageCatalog, LocalFolder File "C:\Program Files\Zope-2.7.2-0\lib\python\Products\Localizer\Localizer.py", line 28, in ? from itools import i18n File "C:\Program Files\Zope-2.7.2-0\lib\python\Zope\Startup\__init__.py", line 33, in ? check_python_version() NameError: name 'get_abspath' is not defined C:\Zope-Instance\bin> Any help would be appreciated. Steve
Hi Steve,
[snip]
itools 0.4.6
I think this is the problem. See below.
The error message is:
[snip]
File "C:\Program Files\Zope-2.7.2-0\lib\python\Products\Localizer\itools\i18n\__init__.py",
v--------------------------------------------------^ itools isn't a Zope product, it is a python module. Remove it from the Localizer folder and install it as said on the README. I think you will have to do (Check it on the README file): cd itools "C:\Program Files\Zope-2.7.2-0\bin\python" setup.py install After this, you can safetly delete the itools folder. Regards, Josef
participants (2)
-
Josef Meile -
Steve Plant