472,374 Members | 1,039 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,374 software developers and data experts.

Zope, Python 2.4 pythonScripts import problem

Hi,

I have installed brand new platform - Zope-2-7-6, Python 2.4.1, Plone
2.0.5, OS Debian 1:3.3.6-2.

After import a old Plone site from the following platform
Zope-2-7-4, Python 2.3.3, Plone 2.0.3 to the new one, I get error when
I visit PuthonScript in the ZMI.

"invalid syntax (Script (Python), line 1)"

There 2 are examples of 1 line:
from DateTime import DateTime
and
request = container.REQUEST

There is no syntax error!

When I just save this script in ZMI then error disappers :)

What is the reason???
KK

p.s I have the same problem when I import to the same platform but with
Python 2.4.0

Aug 12 '05 #1
3 2514
Hi,
I have installed brand new platform - Zope-2-7-6, Python 2.4.1, Plone
2.0.5, OS Debian 1:3.3.6-2.
You may then ask in a zope or plone list. This is a python specific
list. But I will answer you any way.
After import a old Plone site from the following platform
Zope-2-7-4, Python 2.3.3, Plone 2.0.3 to the new one, I get error when
I visit PuthonScript in the ZMI.
"invalid syntax (Script (Python), line 1)"

There 2 are examples of 1 line:
from DateTime import DateTime
and
request = container.REQUEST

There is no syntax error!

When I just save this script in ZMI then error disappers :)
So, you are exporting the plone site, then importing it? I had once some
problem like that and the solution was to call an script that compiled
all python scripts again. I'm not sure if this solves your problem, but
you may look at the first script here:

http://www.zope.org/Members/goppelt/2-4-3Upgrade
What is the reason???
As I said, you may ask in a zope or plone list for a better answer. My
best guess is that somewhere there is some old compiled version of your
script.
p.s I have the same problem when I import to the same platform but with
Python 2.4.0


I just have to warn you that some persons in the zope list are going to
tell you "Python 2.4 isn't a supported option for zope". So, you may use
it only for testing and not in a production environment.

Regards,
Josef

Aug 13 '05 #2
I see that Python 2.4.x does not work with Zope-2-7-6 properly. When I
start zope I get warning that I should recompile my pythonScripts by
executing manage_addProduct/PythonScripts/recompile. I do it and get
list of scripts whoose were compiled but when I repeat that action I
get the same list of scripts. It doesn't compile them -> when I visit
script by ZMI I still get the following error message "invalid syntax
(Script (Python), line 1)".

The first script at page
http://www.zope.org/Members/goppelt/2-4-3Upgrade gives no effect ->
outcome is "invalid syntax (Script (Python), line 1)" error i scripts.

I'm affraid that I will have to resign with Python 2.4.x :(
I read that Python 2.4 was complaisant back but I don't think that
Zope-2-7-6 is???
Regards
KK
Josef Meile napisal(a):
Hi,
I have installed brand new platform - Zope-2-7-6, Python 2.4.1, Plone
2.0.5, OS Debian 1:3.3.6-2.


You may then ask in a zope or plone list. This is a python specific
list. But I will answer you any way.
After import a old Plone site from the following platform
Zope-2-7-4, Python 2.3.3, Plone 2.0.3 to the new one, I get error when
I visit PuthonScript in the ZMI.
> "invalid syntax (Script (Python), line 1)"
>
> There 2 are examples of 1 line:
> from DateTime import DateTime
> and
> request = container.REQUEST
>
> There is no syntax error!
>
> When I just save this script in ZMI then error disappers :)


So, you are exporting the plone site, then importing it? I had once some
problem like that and the solution was to call an script that compiled
all python scripts again. I'm not sure if this solves your problem, but
you may look at the first script here:

http://www.zope.org/Members/goppelt/2-4-3Upgrade
What is the reason???


As I said, you may ask in a zope or plone list for a better answer. My
best guess is that somewhere there is some old compiled version of your
script.
p.s I have the same problem when I import to the same platform but with
Python 2.4.0


I just have to warn you that some persons in the zope list are going to
tell you "Python 2.4 isn't a supported option for zope". So, you may use
it only for testing and not in a production environment.

Regards,
Josef


Aug 16 '05 #3
On Tuesday 16 August 2005 07:09 am, kr*****@bmpg.pl wrote:
I see that Python 2.4.x does not work with Zope-2-7-6 properly. When I
start zope I get warning that I should recompile my pythonScripts by
executing manage_addProduct/PythonScripts/recompile. I do it and get
list of scripts whoose were compiled but when I repeat that action I
get the same list of scripts. It doesn't compile them -> when I visit
script by ZMI I still get the following error message "invalid syntax
(Script (Python), line 1)".

The first script at page
http://www.zope.org/Members/goppelt/2-4-3Upgrade gives no effect ->
outcome is "invalid syntax (Script (Python), line 1)" error i scripts.

I'm affraid that I will have to resign with Python 2.4.x :(
I read that Python 2.4 was complaisant back but I don't think that
Zope-2-7-6 is???


Please read the docs that come with zope. No version of zope supports python
2.4 right now. For zope 2.7 and zope 2.8 the python version to use is python
2.3.5.

Everytime a new version of python is done a lot of stuff is checked to make
sure it works and minor changes are made. I know it is possible to get
zope2.7 and 2.8 working fine on python 2.4 but that should only be done by
zope developers and not by zope users.
Aug 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Lucas Branca | last post by:
Hi, I've just insalled Zope to test a web application by thirdy part .... well .... it's very embarrassing cause I'm not able to see it at work because of Zope ..... (yeah... I'm really newbie...
4
by: Jochen Demuth | last post by:
Hi, I am trying to install ZWiki on Zope 2.5.1 / Debian 2.4.20-bf2.4-xfs. First I copied the contents of the ZWiki-0.32.0.tgz to the Products-directory under SOFTWARE_HOME: This is what it...
5
by: jsmilan | last post by:
Hi, all; I'm strictly an amateur developer who has dabbled in a half dozen languages on eight or nine systems over 20 years or so. I have never devoted the time or energy to thoroughly learn...
4
by: Avery Warren | last post by:
I am investigating converting a wiki site to plone. I am having a lot of difficulty finding good documentation programmatically accessing the ZODB API. A lot of the user feedback is centered on...
2
by: ryankaskel | last post by:
I don't know if this is the appropriate place to post a Zope question but I figure many here are familiar with it. I'm confused about the role of the ZMI when it comes to development. I want to...
0
by: Marcel Hartmann | last post by:
Hi, I have problems to get ZOracleDA run in Zope - I cannot found a solution wheter in Zope Groups nor searching google and I think it's a python problem. The connection in python - without zope...
2
by: zunbeltz | last post by:
Hi, I've installed zope3.2 froma tarball. It has been installed in /usrlocal/Zope-3-2. I am developing a package under ~/zope3instance/lib/python/ (which is my instance directory). My...
0
by: jack139 | last post by:
I installed zope under windows and found a problem when import addition modules - iHotfix and itools. When place itools in python's library path, site-packages, import works fine. When place itools...
5
by: goldtech | last post by:
SAX XML Parse Python error message Hi, My first attempt at SAX, but have an error message I need help with. I cite the error message, code, and xml below. Be grateful if anyone can tell me...
2
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
0
DizelArs
by: DizelArs | last post by:
Hi all) Faced with a problem, element.click() event doesn't work in Safari browser. Tried various tricks like emulating touch event through a function: let clickEvent = new Event('click', {...
0
by: F22F35 | last post by:
I am a newbie to Access (most programming for that matter). I need help in creating an Access database that keeps the history of each user in a database. For example, a user might have lesson 1 sent...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.