473,686 Members | 2,883 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.REQUE ST

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 2608
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.REQUE ST

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_addProdu ct/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.REQUE ST
>
> 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_addProdu ct/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
2932
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 :( ) I found out that the problem is in Products/PythonScript permission. To test them, in the ZMI, I created this script and then I tested it ==============================================
4
2335
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 contained before: server1:/usr/lib/zope/lib/python/Products# ls ExternalMethod PageTemplates StandardCacheManagers ZSQLMethods Hotfix_2002-06-14 PluginIndexes TemporaryFolder ZopeTutorial
5
2264
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 any one of them, so I have become a true JOATAMON (Jack Of All Trades And Master Of None). I apologize in advance for any truly newb sounding questions. I did Google for this in several places first (Zope.org, Gentoo forums, and Google UseNet...
4
1599
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 how difficult it is to get good documentation on developing using these technologies. My question to comp.lang.python is "what is your opinion of zope?" For those who don't know, zope is a web application server for python developers.
2
1807
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 write a simple script that logs page hits. I wrote it in what was called a Script (Python) resource in the ZMI. When I access the page it gives an error saying that this file cannot import Persistence, etc. This makes sense but where would I put...
0
1304
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 - functions without problems and the missing library (see errors later) is obviously found. Is it possible to set an library path for python? I tested changing the ld.conf.so and running ldconfig or setting LD_LIBRARY_PATH environment var, but...
2
1292
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 PYTHONPATH is: /home/zunbeltz/libs/python/:/usr/local/Zope-3.2.0/lib/python:/home/zunbeltz/zope3instance/lib/python:/home/zunbeltz/pycontrol
0
1155
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 in zope-instance's library path, /zope-instance/lib/python, it seems the the import only work partially, for examlple, only partial attributes and methods are imported. Someone say that this porblem will disapear in linux box, I will try it. But...
5
2701
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 what the fix is. Thanks.
0
9049
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8777
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7596
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6437
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5795
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4307
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4526
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2943
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
1933
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.