can't install external editor, help
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? thanks Aaron
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
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
aamehl wrote:
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' <http://xannvyqd439:8080/externalEdit_/lilycomp%27> 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??
You're on the right track, but zopeedit.py does not work on its own. It works between zope, your browser and an editor that you specify. The browser creates the temp file. The README has more info, but in short, you need to: 1. Edit your ~/.zope-external-edit file and enable an editor or two. 2. Set-up your browser to handle MIME type application/x-zope-edit with zopeedit.py. 3. Click the external edit icon in the ZMI, in your browser. -- Jim Washington
The README has more info, but in short, you need to:
1. Edit your ~/.zope-external-edit file and enable an editor or two. did it already gvim -f 2. Set-up your browser to handle MIME type application/x-zope-edit with zopeedit.py. already don 3. Click the external edit icon in the ZMI, in your browser. did it and got the error you saw in the previous email??
Thanks Aaron
-- Jim Washington
aamehl wrote:
The README has more info, but in short, you need to:
1. Edit your ~/.zope-external-edit file and enable an editor or two. did it already gvim -f
good.
2. Set-up your browser to handle MIME type application/x-zope-edit with
zopeedit.py. already don
good.
3. Click the external edit icon in the ZMI, in your browser. did it and got the error you saw in the previous email??
Ack! Never seen this one. What browser are you using? Have you tried starting your browser at the command line, doing the test, and seeing if there are any error messages you can work with? I would suspect first a permissions problem on a temp directory. A right-click and save-link-target-as will maybe tell you where the browser is trying to save the temp file. -- Jim Washington
Thanks for your help: This is most interesting, savelinktarget gives me the following error: The link could not be saved. The web page might have been removed or had its name changed. here is copy link location http://xannvyqd439:8080/hatut/externalEdit_/home.html when i ran mozilla http://xannvyqd439:8080/hatut/externalEdit_/home.html from the command line I get a blank web page and after a few seconds I get konqueror opening up with: the url is: file:/tmp/home.html the page it displays is: url:http://xannvyqd439:8080/hatut/home.html meta_type:Page Template content_type:text/html auth:Basic YWFtZWhsOjc3MDYxM25vdyE= cookie:tree-s="eJzT0MgpMOQKVneEA1dbda4CI67EkgJjLj0AeGcHew"; tutorialExamplesURL="http://xannvyqd439:8080/hatut/examples" Welcome to title, your source for information about Elvis and Elvis sightings most unusual. is there a problem with permissions for /tmp/ directory? Thanks Aaron On ו', 2004-06-11 at 16:44, Jim Washington wrote:
aamehl wrote:
The README has more info, but in short, you need to:
1. Edit your ~/.zope-external-edit file and enable an editor or two. did it already gvim -f
good.
2. Set-up your browser to handle MIME type application/x-zope-edit with
zopeedit.py. already don
good.
3. Click the external edit icon in the ZMI, in your browser. did it and got the error you saw in the previous email??
Ack! Never seen this one. What browser are you using? Have you tried starting your browser at the command line, doing the test, and seeing if there are any error messages you can work with? I would suspect first a permissions problem on a temp directory. A right-click and save-link-target-as will maybe tell you where the browser is trying to save the temp file.
-- Jim Washington
participants (2)
-
aamehl -
Jim Washington