unreal, it pays not to work late at night. I ran python-2.2 setup.py install, which of course needed to be python setup.py install. once I dropped the 2.2 all was well. now I need to figure out why I can't create the temp file to start editing. I just install the External editor and when I click the pencil icon in the ZMI, I get the following error: /tmp-1 could not be saved, because the source file couldnot be read. Try again later,orcontactthe server administrator. I tried running the link from the commandline (linux) but got the following. aamehl@XANNVYQD439:~$ zopeedit.py http://xannvyqd439:8080/externalEdit_/lilycomp FATAL ERROR: [Errno 2] No such file or directory: 'http://xannvyqd439:8080/externalEdit_/lilycomp' Exception exceptions.AttributeError: "ExternalEditor instance has no attribute 'did_lock'" in <bound method ExternalEditor.__del__ of <__main__.ExternalEditor instance at 0x4029760c>> ignored aamehl@XANNVYQD439:~$ Whatdo I need to do to get this up and running?? On ו', 2004-06-11 at 14:12, Jim Washington wrote:
aamehl wrote:
Hi all,
I am trying to install the helper app of the external editor program, when I run install I get an error:ImportError: No module named distutils.core.
I guessed that distutils.core was contained in the python-dev package so I did an apt-get install python2.3-dev. But still the same error. Then I installed python-dev with no better results.
Anyone out there can tell me what I am missing?
From the command prompt, start python. You will get something like this. Note the python version, right after the word Python.
bash-2.05b$ python Python 2.3.4 (#1, Jun 4 2004, 17:07:44) [GCC 3.3.3 20040412 (Gentoo Linux 3.3.3-r5, ssp-3.3-7, pie-8.7.5.3)] on linux2 Type "help", "copyright", "credits" or "license" for more information.
Try to import distutils.
import distutils
To be really sure, try this.
import distutils.core
If you do not get an error, you should be able to install the external editor helper app. You are doing something else wrong.
But you might get the following error.
import distutils Traceback (most recent call last): File "<stdin>", line 1, in ? ImportError: No module named distutils
In this case, install the python***-dev package for the python version. For the external editor helper app, it does not have to be the version of python that zope runs on.
If this does not work, give us a step-by-step of what you see happening.
-- Jim Washington