Re: [gentoo-user] Plone
On Fri, 17 Jun 2011 17:48:31 -0700 Keith Dart ke...@dart.us.com wrote: === On Sat, 06/18, john wrote: === On Sat, 18 Jun 2011 00:31:39 +0200 Florian Philipp li...@binarywings.net wrote: Am 17.06.2011 23:16, schrieb john: Hello, I have installed Plone but unfortunately it will not run. I believe this is down to PIL not being installed as shown when starting Zope in foreground. I have emerged dev-python/imaging but Zope still cannot see PIL. I think the issue is because Plone/Zope depends on python 2.4. Any recommendations on a fix??? You might have to run python-updater in order to install all python-packages for this version. I'm not sure if python-updater does this correctly if you don't have python-2.4 enabled via `eselect python`. You might want to try this as well. Hope this helps, Florian Philipp I have eselect python2.4 but when running python-updater I get:- File /usr/bin/portageq, line 98 except portage.exception.InvalidAtom as e: ^ SyntaxError: invalid syntax File /usr/bin/portageq, line 98 except portage.exception.InvalidAtom as e: ^ SyntaxError: invalid syntax * Python 2 and Python 3 not installed Have also tried emerge imaging with python2.4 set and get :- File /usr/bin/emerge, line 44 except PermissionDenied as e: ^ SyntaxError: invalid syntax on2.4 You may be hosed. That syntax only works with newer Python interpreters. Can you eselect back to 2.6 or 2.7? Think the python-updater looks forward but not backward (if you see what I mean) It is called the UPdater, after all. I have also tried changing all the references in bin scripts from python2.4 to python2.7 but this fails miserably. The only thing I can think of at the moment is to download manual package and install but I'm really not sure where this is going to stick all the modules? Ugh, yep. But Python is slotted, so you shouldn't have to worry about that. -- Keith Dart -- ~ Keith Dart ke...@dart.us.com = Always a little unsure about installing packages manually. I like to let emerge do everything. I eselect python set 1 which set python2.4. Downloaded Imaging-1.1.6.tar.gz from Python site. Installed using setup.py install. Switched back to python2.7. Old instance would not run but:- Then created a new zopeinstance. Copied the contents /usr/share/zproduct/plone-3.1.7/lib/python and /usr/share/zproduct/plone-3.1.7/Products to instance And yippee I can create Plone site and all looks good at the mo Thanks for advice -- -- -- John D Maunder j...@arcticwolf.myzen.co.uk
Re: [gentoo-user] Plone
Am 18.06.2011 08:50, schrieb john: On Fri, 17 Jun 2011 17:48:31 -0700 Keith Dart ke...@dart.us.com wrote: === On Sat, 06/18, john wrote: === On Sat, 18 Jun 2011 00:31:39 +0200 Florian Philipp li...@binarywings.net wrote: Am 17.06.2011 23:16, schrieb john: Hello, I have installed Plone but unfortunately it will not run. I believe this is down to PIL not being installed as shown when starting Zope in foreground. I have emerged dev-python/imaging but Zope still cannot see PIL. I think the issue is because Plone/Zope depends on python 2.4. Any recommendations on a fix??? You might have to run python-updater in order to install all python-packages for this version. I'm not sure if python-updater does this correctly if you don't have python-2.4 enabled via `eselect python`. You might want to try this as well. [...] Think the python-updater looks forward but not backward (if you see what I mean) It is called the UPdater, after all. I have also tried changing all the references in bin scripts from python2.4 to python2.7 but this fails miserably. The only thing I can think of at the moment is to download manual package and install but I'm really not sure where this is going to stick all the modules? Ugh, yep. But Python is slotted, so you shouldn't have to worry about that. -- ~ Keith Dart ke...@dart.us.com = Always a little unsure about installing packages manually. I like to let emerge do everything. I eselect python set 1 which set python2.4. Downloaded Imaging-1.1.6.tar.gz from Python site. Installed using setup.py install. Switched back to python2.7. Old instance would not run but:- Then created a new zopeinstance. Copied the contents /usr/share/zproduct/plone-3.1.7/lib/python and /usr/share/zproduct/plone-3.1.7/Products to instance And yippee I can create Plone site and all looks good at the mo Thanks for advice I've once ran Plone on Gentoo. I'm pretty sure I didn't have to resort to manual installing but I can't remember what the solution was. Anyway, it was too much trouble and I dropped Plone. If I ever have to use it again, I just use a virtualized Linux installation for it which comes with python-2.4 out-of-the-box. I'd recommend Scientific Linux-5.5 (update to 5.6 coming soon) as a Red Hat clone. Regards, Florian Philipp signature.asc Description: OpenPGP digital signature
Re: [gentoo-user] Plone
yeah its not really the way to go but nevermind. Probably won't use it anyway. A little too complicated for my needs. Looking for something a bit simpler? JDM -Original Message- From: Florian Philipp li...@binarywings.net Date: Sat, 18 Jun 2011 12:03:01 To: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Plone Am 18.06.2011 08:50, schrieb john: On Fri, 17 Jun 2011 17:48:31 -0700 Keith Dart ke...@dart.us.com wrote: === On Sat, 06/18, john wrote: === On Sat, 18 Jun 2011 00:31:39 +0200 Florian Philipp li...@binarywings.net wrote: Am 17.06.2011 23:16, schrieb john: Hello, I have installed Plone but unfortunately it will not run. I believe this is down to PIL not being installed as shown when starting Zope in foreground. I have emerged dev-python/imaging but Zope still cannot see PIL. I think the issue is because Plone/Zope depends on python 2.4. Any recommendations on a fix??? You might have to run python-updater in order to install all python-packages for this version. I'm not sure if python-updater does this correctly if you don't have python-2.4 enabled via `eselect python`. You might want to try this as well. [...] Think the python-updater looks forward but not backward (if you see what I mean) It is called the UPdater, after all. I have also tried changing all the references in bin scripts from python2.4 to python2.7 but this fails miserably. The only thing I can think of at the moment is to download manual package and install but I'm really not sure where this is going to stick all the modules? Ugh, yep. But Python is slotted, so you shouldn't have to worry about that. -- ~ Keith Dart ke...@dart.us.com = Always a little unsure about installing packages manually. I like to let emerge do everything. I eselect python set 1 which set python2.4. Downloaded Imaging-1.1.6.tar.gz from Python site. Installed using setup.py install. Switched back to python2.7. Old instance would not run but:- Then created a new zopeinstance. Copied the contents /usr/share/zproduct/plone-3.1.7/lib/python and /usr/share/zproduct/plone-3.1.7/Products to instance And yippee I can create Plone site and all looks good at the mo Thanks for advice I've once ran Plone on Gentoo. I'm pretty sure I didn't have to resort to manual installing but I can't remember what the solution was. Anyway, it was too much trouble and I dropped Plone. If I ever have to use it again, I just use a virtualized Linux installation for it which comes with python-2.4 out-of-the-box. I'd recommend Scientific Linux-5.5 (update to 5.6 coming soon) as a Red Hat clone. Regards, Florian Philipp
Re: [gentoo-user] Plone
On Fri, 17 Jun 2011 22:16:32 +0100 john j...@arcticwolf.myzen.co.uk wrote: I have installed Plone but unfortunately it will not run. I believe this is down to PIL not being installed as shown when starting Zope in foreground. I have emerged dev-python/imaging but Zope still cannot see PIL. I think the issue is because Plone/Zope depends on python 2.4. Any recommendations on a fix??? not really, I tried the Gentoo ebuild first but also failed. Installing the Plone source package from plone.org works fine for me for months now (uses its own copy of Python, *not* replacing the system's copy of Python). Regards
[gentoo-user] Plone
Hello, I have installed Plone but unfortunately it will not run. I believe this is down to PIL not being installed as shown when starting Zope in foreground. I have emerged dev-python/imaging but Zope still cannot see PIL. I think the issue is because Plone/Zope depends on python 2.4. Any recommendations on a fix??? -- -- -- John D Maunder j...@arcticwolf.myzen.co.uk
Re: [gentoo-user] Plone
Am 17.06.2011 23:16, schrieb john: Hello, I have installed Plone but unfortunately it will not run. I believe this is down to PIL not being installed as shown when starting Zope in foreground. I have emerged dev-python/imaging but Zope still cannot see PIL. I think the issue is because Plone/Zope depends on python 2.4. Any recommendations on a fix??? You might have to run python-updater in order to install all python-packages for this version. I'm not sure if python-updater does this correctly if you don't have python-2.4 enabled via `eselect python`. You might want to try this as well. Hope this helps, Florian Philipp signature.asc Description: OpenPGP digital signature
Re: [gentoo-user] Plone
On Sat, 18 Jun 2011 00:31:39 +0200 Florian Philipp li...@binarywings.net wrote: Am 17.06.2011 23:16, schrieb john: Hello, I have installed Plone but unfortunately it will not run. I believe this is down to PIL not being installed as shown when starting Zope in foreground. I have emerged dev-python/imaging but Zope still cannot see PIL. I think the issue is because Plone/Zope depends on python 2.4. Any recommendations on a fix??? You might have to run python-updater in order to install all python-packages for this version. I'm not sure if python-updater does this correctly if you don't have python-2.4 enabled via `eselect python`. You might want to try this as well. Hope this helps, Florian Philipp I have eselect python2.4 but when running python-updater I get:- File /usr/bin/portageq, line 98 except portage.exception.InvalidAtom as e: ^ SyntaxError: invalid syntax File /usr/bin/portageq, line 98 except portage.exception.InvalidAtom as e: ^ SyntaxError: invalid syntax * Python 2 and Python 3 not installed Have also tried emerge imaging with python2.4 set and get :- File /usr/bin/emerge, line 44 except PermissionDenied as e: ^ SyntaxError: invalid syntax on2.4 Think the python-updater looks forward but not backward (if you see what I mean) I have also tried changing all the references in bin scripts from python2.4 to python2.7 but this fails miserably. The only thing I can think of at the moment is to download manual package and install but I'm really not sure where this is going to stick all the modules? Thanks -- -- -- John D Maunder j...@arcticwolf.myzen.co.uk
Re: [gentoo-user] Plone
Patrick Marquetecken wrote: Haim Ashkenazi wrote: Your problem seems to be in CMFPhoto. somehow it tries to list files in '/root' and it fails because it doesn't have permissions. either it's a configuration problem, or it's a bug (I see that both zope and plone you've installed are testing versions). If this is a clean install, why would CMFPhoto be looking for stuff in /root (which would need LocalFS or something; makes sense to store lots of photos on the OS filesystem)? Patrick: are you transfering a Data.fs from a previous Zope/Plone instance? Kirk -- gentoo-user@gentoo.org mailing list No its a clean install. Well, then the question is, why is CMFPhoto looking in /root? It's no surprise it doesn't have the permissions. Ok, let's look at the source and try to puzzle it out: File /var/lib/zope/zope-2.7.6/Products/CMFPhoto/Photo.py, line 20, in ? from imageengine import isPilAvailable, isConvertAvailable File /var/lib/zope/zope-2.7.6/Products/CMFPhoto/imageengine.py, line 46, in ? isConvertAvailable = findConvert() File /var/lib/zope/zope-2.7.6/Products/CMFPhoto/imageengine.py, line 35, in findConvert if convert in [ entry.lower() for entry in os.listdir(path) ]: OSError: [Errno 13] Permission denied: '/root' CMFPhoto is initializing and wants to know if there is a conversion program available, so it looks along the system path. The error is evoked with the code: 23 def findConvert(): 24 try to find the convert utility in the search path 25 26 if sys.platform == 'win32': 27 convert = 'convert.exe' 28 else: 29 convert = 'convert' 30 31 envPath = os.environ['PATH'] 32 syspath = [p for p in envPath.split(os.pathsep) ] 33 for path in syspath: 34 if os.path.isdir(path): 35 if convert in [ entry.lower() for entry in os.listdir(path) ]: 36 LOG('CMFPhoto', DEBUG, 'ImageMagick found', 'The ImageMagick \ 37 convert tool was found at %s in your search path.' % path) 38 return True 39 40 LOG('CMFPhoto', PROBLEM, 'ImageMagick not found', 'The ImageMagick \ 41 convert tool wasn\'t found in your search path: %s' % envPath) 42 return False The problem is in line 35. Evidently /root is in the search path (lines 31-32). Is /root in your environment? ('echo $PATH') It shouldn't be. Executables should not be kept there. That's what /usr/local is for. I just checked the ebuild for CMFPhoto, and ImageMagick is not required. So it looks like the search path is the real problem. It should not be looking for '/root'. If '/root' is in the search path, remove it. If '/root/' is not in your $PATH, then, as I see it at this point, you've got two choices: 1. using zprod-manager and remove CMFPhoto from the instance. then restart zope and see if you get any new error messages. Do this if you need Plone up more than CMFPhoto. or 2. *temporarily* change permissions on /root to get zope up and running and then look at the CMFPhoto configuration; change the default directory and then change the /root permissions back to what they were. Since it's quick I would do (2) and then if that didn't work, go to (1). HTH, Kirk -- Good boy, Dex! -- Joseph Sky Captain Sullivan -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Plone
On Thu, 19 May 2005 18:48:17 +0300 Haim Ashkenazi [EMAIL PROTECTED] wrote: snip If i activate plone 2.0.5-r1 with the zprod-manager add and activate plone and then restart the zope daemon, the zope daemon dies without any errors. If i then deselect plone and restart zope no problems. I have other zope plugins working but plone won't work. you can stop zope, chdir to the 'instance-dir/bin' and run ./zopectl -i'. when you enter the controller shell type 'fg' and it will try to start zope and show you the messages (if you have debug enabled in your configuration). Bye -- Haim Thanks, this is what i'm getting as errors: -- 2005-05-22T10:29:52 ERROR(200) Zope Could not import Products.CMFPhoto Traceback (most recent call last): File /usr/lib/zope-2.7.6/lib/python/OFS/Application.py, line 673, in import_product product=__import__(pname, global_dict, global_dict, silly) File /var/lib/zope/zope-2.7.6/Products/CMFPhoto/__init__.py, line 2, in ? import Photo File /var/lib/zope/zope-2.7.6/Products/CMFPhoto/Photo.py, line 20, in ? from imageengine import isPilAvailable, isConvertAvailable File /var/lib/zope/zope-2.7.6/Products/CMFPhoto/imageengine.py, line 46, in ? isConvertAvailable = findConvert() File /var/lib/zope/zope-2.7.6/Products/CMFPhoto/imageengine.py, line 35, in findConvert if convert in [ entry.lower() for entry in os.listdir(path) ]: OSError: [Errno 13] Permission denied: '/root' Traceback (most recent call last): File /usr/lib/zope-2.7.6/lib/python/Zope/Startup/run.py, line 50, in ? run() File /usr/lib/zope-2.7.6/lib/python/Zope/Startup/run.py, line 19, in run start_zope(opts.configroot) File /usr/lib/zope-2.7.6/lib/python/Zope/Startup/__init__.py, line 52, in start_zope starter.startZope() File /usr/lib/zope-2.7.6/lib/python/Zope/Startup/__init__.py, line 231, in startZope Zope.startup() File /usr/lib/zope-2.7.6/lib/python/Zope/__init__.py, line 47, in startup _startup() File /usr/lib/zope-2.7.6/lib/python/Zope/App/startup.py, line 45, in startup OFS.Application.import_products() File /usr/lib/zope-2.7.6/lib/python/OFS/Application.py, line 650, in import_products import_product(product_dir, product_name, raise_exc=debug_mode) File /usr/lib/zope-2.7.6/lib/python/OFS/Application.py, line 673, in import_product product=__import__(pname, global_dict, global_dict, silly) File /var/lib/zope/zope-2.7.6/Products/CMFPhoto/__init__.py, line 2, in ? import Photo File /var/lib/zope/zope-2.7.6/Products/CMFPhoto/Photo.py, line 20, in ? from imageengine import isPilAvailable, isConvertAvailable File /var/lib/zope/zope-2.7.6/Products/CMFPhoto/imageengine.py, line 46, in ? isConvertAvailable = findConvert() File /var/lib/zope/zope-2.7.6/Products/CMFPhoto/imageengine.py, line 35, in findConvert if convert in [ entry.lower() for entry in os.listdir(path) ]: OSError: [Errno 13] Permission denied: '/root' -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Plone
On Sun, 2005-05-22 at 10:32 +0200, Patrick wrote: On Thu, 19 May 2005 18:48:17 +0300 Haim Ashkenazi [EMAIL PROTECTED] wrote: snip If i activate plone 2.0.5-r1 with the zprod-manager add and activate plone and then restart the zope daemon, the zope daemon dies without any errors. If i then deselect plone and restart zope no problems. I have other zope plugins working but plone won't work. you can stop zope, chdir to the 'instance-dir/bin' and run ./zopectl -i'. when you enter the controller shell type 'fg' and it will try to start zope and show you the messages (if you have debug enabled in your configuration). Bye -- Haim Thanks, this is what i'm getting as errors: -- 2005-05-22T10:29:52 ERROR(200) Zope Could not import Products.CMFPhoto Traceback (most recent call last): File /usr/lib/zope-2.7.6/lib/python/OFS/Application.py, line 673, in import_product product=__import__(pname, global_dict, global_dict, silly) File /var/lib/zope/zope-2.7.6/Products/CMFPhoto/__init__.py, line 2, in ? import Photo File /var/lib/zope/zope-2.7.6/Products/CMFPhoto/Photo.py, line 20, in ? from imageengine import isPilAvailable, isConvertAvailable File /var/lib/zope/zope-2.7.6/Products/CMFPhoto/imageengine.py, line 46, in ? isConvertAvailable = findConvert() File /var/lib/zope/zope-2.7.6/Products/CMFPhoto/imageengine.py, line 35, in findConvert if convert in [ entry.lower() for entry in os.listdir(path) ]: OSError: [Errno 13] Permission denied: '/root' Traceback (most recent call last): File /usr/lib/zope-2.7.6/lib/python/Zope/Startup/run.py, line 50, in ? run() File /usr/lib/zope-2.7.6/lib/python/Zope/Startup/run.py, line 19, in run start_zope(opts.configroot) File /usr/lib/zope-2.7.6/lib/python/Zope/Startup/__init__.py, line 52, in start_zope starter.startZope() File /usr/lib/zope-2.7.6/lib/python/Zope/Startup/__init__.py, line 231, in startZope Zope.startup() File /usr/lib/zope-2.7.6/lib/python/Zope/__init__.py, line 47, in startup _startup() File /usr/lib/zope-2.7.6/lib/python/Zope/App/startup.py, line 45, in startup OFS.Application.import_products() File /usr/lib/zope-2.7.6/lib/python/OFS/Application.py, line 650, in import_products import_product(product_dir, product_name, raise_exc=debug_mode) File /usr/lib/zope-2.7.6/lib/python/OFS/Application.py, line 673, in import_product product=__import__(pname, global_dict, global_dict, silly) File /var/lib/zope/zope-2.7.6/Products/CMFPhoto/__init__.py, line 2, in ? import Photo File /var/lib/zope/zope-2.7.6/Products/CMFPhoto/Photo.py, line 20, in ? from imageengine import isPilAvailable, isConvertAvailable File /var/lib/zope/zope-2.7.6/Products/CMFPhoto/imageengine.py, line 46, in ? isConvertAvailable = findConvert() File /var/lib/zope/zope-2.7.6/Products/CMFPhoto/imageengine.py, line 35, in findConvert if convert in [ entry.lower() for entry in os.listdir(path) ]: OSError: [Errno 13] Permission denied: '/root' Your problem seems to be in CMFPhoto. somehow it tries to list files in '/root' and it fails because it doesn't have permissions. either it's a configuration problem, or it's a bug (I see that both zope and plone you've installed are testing versions). Bye -- Haim signature.asc Description: This is a digitally signed message part
[gentoo-user] Plone
Hi, I can't get plone working, i have installed zope 2.6 and i install plone activate it and restart the zope deamon it won't start there are no errors in my logs PAtrick -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Plone
Patrick wrote: I can't get plone working, i have installed zope 2.6 and i install plone activate it and restart the zope deamon it won't start there are no errors in my logs Your message is not clear: is Zope up and running and Plone isn't? If so, then: Did you 'zprod-manager add' and add all the Zope products into your zope instance? If you did not, then Plone (and friends) won't work and since the Zope products are not copied into your zope instance there would be no errors. In general, the Gentoo Way for zope and plone is: emerge zope and dependencies emerge zope-config use zope-config to create an instance of zope in /var/lib/zope this also gives you the /etc/init.d/zope-x.x.x server startup script rc-update zope so that it will start on boot (assuming this is a server box and you always want zope running) emerge plone and dependencies 'zprod-manager add' which copies all zope products into your instance Anytime you add a new Zope product (plone-related or not) OR if a new zope-related ebuild is part of an upgrade, you *must* use zprod-manager to add the updated zope product to your zope instance(s). HTH, Kirk -- Good boy, Dex! -- Joseph Sky Captain Sullivan -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Plone
On Thu, 19 May 2005 07:36:37 -0400 Kirk Lowery [EMAIL PROTECTED] wrote: Patrick wrote: I can't get plone working, i have installed zope 2.6 and i install plone activate it and restart the zope deamon it won't start there are no errors in my logs Your message is not clear: is Zope up and running and Plone isn't? If so, then: snip Was i bit in a hurry. If i activate plone 2.0.5-r1 with the zprod-manager add and activate plone and then restart the zope daemon, the zope daemon dies without any errors. If i then deselect plone and restart zope no problems. I have other zope plugins working but plone won't work. Patrick -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Plone
On Thu, 2005-05-19 at 17:31 +0200, Patrick wrote: On Thu, 19 May 2005 07:36:37 -0400 Kirk Lowery [EMAIL PROTECTED] wrote: Patrick wrote: I can't get plone working, i have installed zope 2.6 and i install plone activate it and restart the zope deamon it won't start there are no errors in my logs Your message is not clear: is Zope up and running and Plone isn't? If so, then: snip Was i bit in a hurry. If i activate plone 2.0.5-r1 with the zprod-manager add and activate plone and then restart the zope daemon, the zope daemon dies without any errors. If i then deselect plone and restart zope no problems. I have other zope plugins working but plone won't work. you can stop zope, chdir to the 'instance-dir/bin' and run ./zopectl -i'. when you enter the controller shell type 'fg' and it will try to start zope and show you the messages (if you have debug enabled in your configuration). Bye -- Haim signature.asc Description: This is a digitally signed message part