| View previous topic :: View next topic |
| Author |
Message |
GEM
Joined: 21 Nov 2008 Posts: 1132 Location: Lotharingie
|
Posted: Sat May 23, 2009 3:02 pm Post subject: |
|
|
hello I have found teh solutionto build servern client gtk, client web, and allinone, but after install when I create the first database, the server crash ....
I will post the steps to follow, perhaps someone could find the problem ....
A+ |
|
| Back to top |
|
 |
David L
Joined: 25 Feb 2009 Posts: 77 Location: London, UK
|
Posted: Sat May 23, 2009 4:55 pm Post subject: |
|
|
| Quote: | hello I have found teh solutionto build servern client gtk, client web, and allinone, but after install when I create the first database, the server crash ....
I will post the steps to follow, perhaps someone could find the problem ....
A+ |
The solution to the compilation was posted a few posts before. Check it out and let us know if your solution is any different. We are facing the same problem as you with the crashing of the server.
Cheers
David L |
|
| Back to top |
|
 |
GEM
Joined: 21 Nov 2008 Posts: 1132 Location: Lotharingie
|
Posted: Mon May 25, 2009 8:46 am Post subject: |
|
|
hello, same problem for me :
AttributeError: 'module' object has no attribute 'all_timezones'
A problem with sources ?
I have tried with bazaar trunk and 5.0, same problem.
I will try to build with th official windows server package 5.0.0-3 to see if it is the server sources wich has a problem.
another think, when I build the all in one with web-client bazaar trunk, the setup is not build for the web-client, I'm obliged to use bazaar 5.0 (just for the client-web), and you?
A+ |
|
| Back to top |
|
 |
GEM
Joined: 21 Nov 2008 Posts: 1132 Location: Lotharingie
|
Posted: Mon May 25, 2009 9:19 am Post subject: |
|
|
my modified script make.bat in win-installer-trunk:
to launch the script in mode console, cd to C:\...\win-installer-trunk
launch : make.bat openerp_5_0_0_X 5.0.0-X (where X is the name of your version)
:: Disabled/Enable echoing
@echo off
:: Set some script wide variable
set POSTGRESQL_MSI=postgresql-8.3-int.msi
set OPENERP_NSIS=setup.nsi
set OPENERP_DEMO_DIR=demo
:: Get current date (YYYYMMDD)
set TODAY=%DATE:~6,4%%DATE:~3,2%%DATE:~0,2%
:: Save current directory
set TOPDIR=%CD%
:: Set correct a subdirectory for packaging,
:: dont trash the current directory...
set SUBDIR=%1
if "%1"=="" goto usage
if "%2"=="" goto usage
set VERSION=%2
goto create_subdir
:usage
echo "make.bat TITLE_OF_BUILD VERSION"
goto end
:: Prepare sub-directory
:create_subdir
echo Creating subdir %SUBDIR%.
mkdir %SUBDIR%
echo.
echo Copying PostgreSQL installer...
copy /Y %POSTGRESQL_MSI% %SUBDIR%
echo.
echo Copying OpenERP Nullsoft installer script...
copy /Y %OPENERP_NSIS% %SUBDIR%
echo.
echo Copying `demo' files...
mkdir %SUBDIR%\demo
xcopy /E /I /Y %OPENERP_DEMO_DIR% %SUBDIR%\demo
cd %SUBDIR%
:: Get sources from launchpad
:bzr_clone
echo.
echo Downloading OpenERP Server/Development version...
bzr clone lp:~openerp/openobject-server/5.0 server
echo OpenERP Server downloaded !
echo.
echo Downloading OpenERP Client/Development version...
bzr clone lp:~openerp/openobject-client/5.0
echo OpenERP Client downloaded !
echo.
echo Downloading OpenERP Web Client/Development version...
bzr clone lp:~openerp/openobject-client-web/5.0 client-web
echo OpenERP Web Client downloaded !
echo.
echo Downloading OpenERP Addons/Development version...
bzr clone lp:~openerp/openobject-addons/5.0 addons
xcopy /E addons\* server\bin\addons\
echo OpenERP Addons downloaded !
:packaging
:: package client for allinone
cd client
python setup.py --quiet py2exe
makensis /DVERSION=%VERSION% /DALLINONE=1 /V1 setup.nsi
:: package server for allinone
cd ..
cd server\win32
python setup.py --quiet py2exe
cd ..
python setup.py --quiet py2exe
makensis /DVERSION=%VERSION% /DALLINONE=1 /V1 setup.nsi
cd ..
cd client-web
python win32\setup.py --quiet bdist_wininst --allinone
move win32\openerp-web-setup-* win32\openerp-web-setup-%VERSION%.exe
makensis /DVERSION=%VERSION% /DALLINONE=1 /V1 win32\setup.nsi
move win32\openerp-web-setup-%VERSION%.exe .
:: package all-in-one
cd ..
makensis /DVERSION=%VERSION% /V1 setup.nsi
:: package client
cd client
python setup.py --quiet py2exe
makensis /DVERSION=%VERSION% /V1 setup.nsi
:: package server
cd ..
cd server\win32
python setup.py --quiet py2exe
cd ..
python setup.py --quiet py2exe
makensis /DVERSION=%VERSION% /V1 setup.nsi
cd ..
cd client-web
python win32\setup.py --quiet bdist_wininst
move win32\openerp-web-setup-* .\openerp-web-setup-%VERSION%.exe
makensis /DVERSION=%VERSION% /V1 win32\setup.nsi
move win32\openerp-web-setup-%VERSION%.exe .
rmdir /S /Q win32\build
rmdir /S /Q build
cd ..
copy server\openerp-server-setup-%VERSION%.exe .
copy client\openerp-client-setup-%VERSION%.exe .
copy client-web\openerp-web-setup-%VERSION%.exe .
:end
:: Do some clean-up,
:: return to TOPDIR, and unset script environment vars
:cleanup
cd %TOPDIR%
set POSTGRESQL_MSI=
set OPENERP_NSIS=
set OPENERP_DEMO_DIR=
set TODAY=
set TOPDIR=
set SUBDIR=
pause
Last edited by GEM on Tue Jul 21, 2009 3:46 pm; edited 10 times in total |
|
| Back to top |
|
 |
GEM
Joined: 21 Nov 2008 Posts: 1132 Location: Lotharingie
|
Posted: Mon May 25, 2009 9:58 am Post subject: |
|
|
I have build the all in one with server 5.0.0-3 official, same problem.
A+ |
|
| Back to top |
|
 |
GEM
Joined: 21 Nov 2008 Posts: 1132 Location: Lotharingie
|
Posted: Mon May 25, 2009 10:01 am Post subject: |
|
|
it is the client the client-web postgresql ?
One thing : I have not the same key in th registry than with the official allinone, is it normal? |
|
| Back to top |
|
 |
GEM
Joined: 21 Nov 2008 Posts: 1132 Location: Lotharingie
|
Posted: Mon May 25, 2009 4:21 pm Post subject: |
|
|
i have change my script because addons are not copied in server/bin/addons, before the build :
xcopy /E addons\* server\bin\addons\ (and not -E as option)
test new build
A+ |
|
| Back to top |
|
 |
GEM
Joined: 21 Nov 2008 Posts: 1132 Location: Lotharingie
|
Posted: Tue May 26, 2009 2:33 pm Post subject: |
|
|
the problem come from pytz which is not totally installed in c:\python25\Lib\site-packages with pytz-2008i.win32.exe
I have uninstalled pytz-2008i.win32.exe
i have built pytz-2006p (python setup.py install) in c:\python25\Lib\site-packages, copy C:\...\pytz-2006p\* c:\python25\Lib\site-packages
don't reinstall pytz-2008i.win32.exe
it's ok
A+
Last edited by GEM on Tue May 26, 2009 4:22 pm; edited 1 time in total |
|
| Back to top |
|
 |
dhariwal
Joined: 11 Mar 2009 Posts: 196 Location: Pakistan
|
Posted: Tue May 26, 2009 2:47 pm Post subject: |
|
|
Hi GEM,
Did this solve the problem?
Many Thanks
Dhariwal |
|
| Back to top |
|
 |
GEM
Joined: 21 Nov 2008 Posts: 1132 Location: Lotharingie
|
Posted: Tue May 26, 2009 4:23 pm Post subject: |
|
|
it works, it's ok, tonight I could sleep a lot.....
I will make a post tomorrow.
A+  |
|
| Back to top |
|
 |
dhariwal
Joined: 11 Mar 2009 Posts: 196 Location: Pakistan
|
Posted: Tue May 26, 2009 4:28 pm Post subject: |
|
|
u r a super star !!
anxiously waiting for your post.
Thanks a million
Dhariwal |
|
| Back to top |
|
 |
David L
Joined: 25 Feb 2009 Posts: 77 Location: London, UK
|
Posted: Tue May 26, 2009 4:34 pm Post subject: |
|
|
Thanks GEM for figuring this out!
Have a good night sleep!
Cheers
David L |
|
| Back to top |
|
 |
David L
Joined: 25 Feb 2009 Posts: 77 Location: London, UK
|
Posted: Wed May 27, 2009 11:11 am Post subject: |
|
|
Guys,
thanks to GEM, I can now get the server and client to work without crashing at the first DB setup.
I now have a problem with the web client. When I run the make batch file, I manage to get the web client install package. I install the web client and when I attempt to start the service, it just crashes. I assumed there might have been a problem on the compilation so I looked more carefully at the dos prompt and noticed it complained about not finding the module cherrypy... I checked, installed, reinstalled re-re-installed cherrypy but no success.
Do you guys get the same problem?
Cheers
David L |
|
| Back to top |
|
 |
dhariwal
Joined: 11 Mar 2009 Posts: 196 Location: Pakistan
|
Posted: Wed May 27, 2009 11:18 am Post subject: |
|
|
Hi David,
I am actually waiting for detailed post from GEM still before i attempt again.
Thanks
Dhariwal |
|
| Back to top |
|
 |
GEM
Joined: 21 Nov 2008 Posts: 1132 Location: Lotharingie
|
Posted: Wed May 27, 2009 11:55 am Post subject: |
|
|
the client web use the pytz-2009g.egg, perhaps it is the problem (i have already install it in the same time than pytz the first time) :
http://pypi.python.org/pypi/pytz/
download in python25\Lib\site-packages
else I have modify my topic with all changement (for the moment in french, comes in english)
http://www.openobject.com/forum/topic11390.html
I have no crash with web client
A+  |
|
| Back to top |
|
 |
|