[Zope] can't install external editor, help

aamehl aamehl at actcom.net.il
Fri Jun 11 08:21:29 EDT 2004


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.=20

aamehl at XANNVYQD439:~$ zopeedit.py=20
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 at XANNVYQD439:~$
Whatdo I need to do to get this up and running??

On =D7=95', 2004-06-11 at 14:12, Jim Washington wrote:
> aamehl wrote:
>=20
> > 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=20
> this.  Note the python version, right after the word Python.
>=20
> 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=
=20
> linux2
> Type "help", "copyright", "credits" or "license" for more information.
>  >>>
>=20
> Try to import distutils.
>=20
>  >>> import distutils
>  >>>
>=20
> To be really sure, try this.
>=20
>  >>> import distutils.core
>  >>>
>=20
> If you do not get an error, you should be able to install the external=20
> editor helper app.  You are doing something else wrong.
>=20
> But you might get the following error.
>=20
>  >>> import distutils
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
> ImportError: No module named distutils
>  >>>
>=20
> In this case, install the python***-dev package for the python version.=
 =20
> For the external editor helper app, it does not have to be the version=20
> of python that zope runs on.
>=20
> If this does not work, give us a step-by-step of what you see happening.
>=20
> -- Jim Washington




More information about the Zope mailing list