OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Zope In Pdaxrom, an OO database & web server
dinorex
post Mar 31 2007, 04:44 AM
Post #1





Group: Members
Posts: 88
Joined: 20-February 06
From: Sydney
Member No.: 9,186



Owing to my one of the recent project requirements, I need to investigate a system called Zope (and its ZODB which is a OO database). It is easily installed in XP environment, but surprisingly, I found that the zaurus support to this is quite less..... Therefore, that triggers me to try to install this Zope inside my lovely pdaxrom....

All in all, the experiment is in vain (how come my recent trials are all in vain?.... ph34r.gif ), but I would like to share my experiences during the trials, and hope (maybe) any interested parties to play around this stuff on their spare time.

1/ Since the python in pdaxrom is 2.4.1, which is quite out-dated in view of Zope current environment, we need to grab the previous versions of zope source code to compile - the one i chose is zope-2.9.1.tar.gz. During the compilation process, I stopped at a step which reports the python header is not fully satisfied, and using some others experiments certifying the header is really not fully satisfied. Therefore I gave up that direct compilation approach.

2/ searching thru google i found that there is a version called something related to zope-2.5.1-python_2.1 to zaurus environment. that means previously zaurus should support this zope server; and surprisingly, debian also support zope server as well! and found a package called zope_2.5.1-1woody1_arm.deb for arm processor debian....

3/ based on these observations, I tried to convert that deb to ipk. This is easy to be done by a simple script called deb2ipk.sh. When I really tried this converted ipk installation (my installation destination path is in /mnt/ide, which is not in the NAND area), I have encountered the following missing python scripts (and create a directory called /usr/lib/python2.1 linked to /usr/lib/python2.4): -

a. glob.py, fnmatch.py, shutil.py, compileall.py - all can be easily obtained the python script code from the internet. However, for compileall.py, add a '-q' option do exactly the same as '-f' option (to fool the compiler seems the debian python compileall.py has another option -q which is for quiet mode, but i don't know how to make it, therefore I used -f as the substitute. (line 103 added for description, line 112 added for force endorsement)

b. fcntl.py. This is obsolete (desperated in python term) in python 2.4.1 but still exists in python 2.1. on searching the web, you should be able to find the declaring as 'desperated' script, and apply it .... however, since there is a DOS version of FCNTL.py, you need to find that one for bullet-proofing. I adopt the one generated by h2py from /usr/include/sys/fcntl.h and put it in /usr/lib/python2.4 directory (together with fcntl.py).

c. when you do that, you need to compile those .py files to .pyc, search google on related topic for python compilation to .pyc [should be something like
import py_compile
py_compile.compile("your.py")
]

d. since the installation trials may involve the missing directory in /usr/lib/zope, you need to symbolic link the /usr/lib/zope to /mnt/ide/usr/lib/zope between installation failures so that you can pass the installation trials.

after you have done the following remedial actions, you should be able to install the converted ipk successfully.

4/ starting the zope server is simple : zope-z2 -w80 (port 80 for web, default is 9673, as seen in the help page when you carries -h parameter), then you should see your pdaxrom CPU time is nearly 100% ! And some warning messages shown up repeatedly in the terminal screen..... Therefore, I tried using telnet 80 port as a trial, can still cannot catch the port authentication.... therefore, I certified although the server is up and running in pdaxrom, the server processes cannot be utilized in the appropriate manner.... ph34r.gif

Hope these sharings can ignites some zope users investigations to Zaurus, and can be able to make the zope server be used in Zaurus. I really don't mind if anyone can share me a full set of python 2.4.1 headers in pdaxrom so that I can compile the zope server directly on board, in order to alleviate such a tedious repeated trials.... ph34r.gif
Go to the top of the page
 
+Quote Post
Meanie
post Apr 1 2007, 08:32 PM
Post #2





Group: Members
Posts: 2,808
Joined: 21-March 05
From: Sydney, Australia
Member No.: 6,686



QUOTE(dinorex @ Mar 31 2007, 10:44 PM)
Owing to my one of the recent project requirements, I need to investigate a system called Zope (and its ZODB which is a OO database). It is easily installed in XP environment, but surprisingly, I found that the zaurus support to this is quite less..... Therefore, that triggers me to try to install this Zope inside my lovely pdaxrom....

All in all, the experiment is in vain (how come my recent trials are all in vain?....  ph34r.gif ), but I would like to share my experiences during the trials, and hope (maybe) any interested parties to play around this stuff on their spare time.

1/ Since the python in pdaxrom is 2.4.1, which is quite out-dated in view of Zope current environment, we need to grab the previous versions of zope source code to compile - the one i chose is zope-2.9.1.tar.gz. During the compilation process, I stopped at a step which reports the python header is not fully satisfied, and using some others experiments certifying the header is really not fully satisfied. Therefore I gave up that direct compilation approach.

2/ searching thru google i found that there is a version called something related to zope-2.5.1-python_2.1 to zaurus environment. that means previously zaurus should support this zope server; and surprisingly, debian also support zope server as well! and found a package called zope_2.5.1-1woody1_arm.deb for arm processor debian....

3/ based on these observations, I tried to convert that deb to ipk. This is easy to be done by a simple script called deb2ipk.sh. When I really tried this converted ipk installation (my installation destination path is in /mnt/ide, which is not in the NAND area), I have encountered the following missing python scripts (and create a directory called /usr/lib/python2.1 linked to /usr/lib/python2.4): -

a. glob.py, fnmatch.py, shutil.py, compileall.py - all can be easily obtained the python script code from the internet. However, for compileall.py, add a '-q' option do exactly the same as '-f' option (to fool the compiler seems the debian python compileall.py has another option -q which is for quiet mode, but i don't know how to make it, therefore I used -f as the substitute. (line 103 added for description, line 112 added for force endorsement)

b. fcntl.py. This is obsolete (desperated in python term) in python 2.4.1 but still exists in python 2.1. on searching the web, you should be able to find the declaring as 'desperated' script, and apply it .... however, since there is a DOS version of FCNTL.py, you need to find that one for bullet-proofing. I adopt the one generated by h2py from /usr/include/sys/fcntl.h and put it in /usr/lib/python2.4 directory (together with fcntl.py).

c. when you do that, you need to compile those .py files to .pyc, search google on related topic for python compilation to .pyc [should be something like
  import py_compile
  py_compile.compile("your.py")
]

d. since the installation trials may involve the missing directory in /usr/lib/zope, you need to symbolic link the /usr/lib/zope to /mnt/ide/usr/lib/zope between installation failures so that you can pass the installation trials.

after you have done the following remedial actions, you should be able to install the converted ipk successfully.

4/ starting the zope server is simple : zope-z2 -w80 (port 80 for web, default is 9673, as seen in the help page when you carries -h parameter), then you should see your pdaxrom CPU time is nearly 100% !  And some warning messages shown up repeatedly in the terminal screen..... Therefore, I tried using telnet 80 port as a trial, can still cannot catch the port authentication.... therefore, I certified although the server is up and running in pdaxrom, the server processes cannot be utilized in the appropriate manner.... ph34r.gif

Hope these sharings can ignites some zope users investigations to Zaurus, and can be able to make the zope server be used in Zaurus. I really don't mind if anyone can share me a full set of python 2.4.1 headers in pdaxrom  so that I can compile the zope server directly on board, in order to alleviate such a tedious repeated trials....  ph34r.gif
*




glob.py, fnmatch.py, shutil.py, compileall.py are also available as ipk in the pdaXrom feed...
fcntl.py is also available in the pdaXrom feed.
python-compile again is in the pdaXrom feed and can be used to compile .pyc files
Go to the top of the page
 
+Quote Post
dinorex
post Apr 2 2007, 03:35 PM
Post #3





Group: Members
Posts: 88
Joined: 20-February 06
From: Sydney
Member No.: 9,186



QUOTE(Meanie @ Apr 2 2007, 12:32 PM)
glob.py, fnmatch.py, shutil.py, compileall.py are also available as ipk in the pdaXrom feed...
fcntl.py is also available in the pdaXrom feed.
python-compile again is in the pdaXrom feed and can be used to compile .pyc files
*


would you pls kindly tell me the corresponding ipks? since I have googled a lot on the .py s and cannot locate them to their packaged ipks....

thanks in advance!
Go to the top of the page
 
+Quote Post
Meanie
post Apr 2 2007, 06:25 PM
Post #4





Group: Members
Posts: 2,808
Joined: 21-March 05
From: Sydney, Australia
Member No.: 6,686



QUOTE(dinorex @ Apr 3 2007, 09:35 AM)
QUOTE(Meanie @ Apr 2 2007, 12:32 PM)
glob.py, fnmatch.py, shutil.py, compileall.py are also available as ipk in the pdaXrom feed...
fcntl.py is also available in the pdaXrom feed.
python-compile again is in the pdaXrom feed and can be used to compile .pyc files
*


would you pls kindly tell me the corresponding ipks? since I have googled a lot on the .py s and cannot locate them to their packaged ipks....

thanks in advance!
*



actually, I just compiled Zope 3.3.1, if you want you can test it smile.gif
I will need to dig down and find all the dependant python packages first, but once I got them, I will be able to create an ipk with all the depends in the control file..
Go to the top of the page
 
+Quote Post
dinorex
post Apr 2 2007, 07:49 PM
Post #5





Group: Members
Posts: 88
Joined: 20-February 06
From: Sydney
Member No.: 9,186



that's cool :~

would you please make it available at your feed so that i can try that ?.... tongue.gif

thanks ~!
Go to the top of the page
 
+Quote Post
Meanie
post Apr 2 2007, 11:13 PM
Post #6





Group: Members
Posts: 2,808
Joined: 21-March 05
From: Sydney, Australia
Member No.: 6,686



QUOTE(dinorex @ Apr 3 2007, 01:49 PM)
that's cool :~

would you please make it available at your feed so that i can try that ?.... tongue.gif

thanks ~!
*


will have to wait till i get home...

its in the feed now...

This post has been edited by Meanie: Apr 3 2007, 07:31 AM
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 1st November 2014 - 01:49 AM