It is currently Sat Feb 04, 2012 8:58 am

All times are UTC + 2 hours




Post new topic Reply to topic  [ 34 posts ]  Go to page Previous  1, 2, 3  Next
Author Message
 Post subject:
PostPosted: Sat May 23, 2009 3:02 pm 
Offline

Joined: Fri Nov 21, 2008 9:56 am
Posts: 3058
Location: Lotharingie
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+


Top
 Profile  
 
 Post subject:
PostPosted: Sat May 23, 2009 4:55 pm 
Offline

Joined: Wed Feb 25, 2009 1:47 pm
Posts: 106
Location: London, UK
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


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 25, 2009 8:46 am 
Offline

Joined: Fri Nov 21, 2008 9:56 am
Posts: 3058
Location: Lotharingie
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+


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 25, 2009 9:19 am 
Offline

Joined: Fri Nov 21, 2008 9:56 am
Posts: 3058
Location: Lotharingie
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.

Top
 Profile  
 
 Post subject:
PostPosted: Mon May 25, 2009 9:58 am 
Offline

Joined: Fri Nov 21, 2008 9:56 am
Posts: 3058
Location: Lotharingie
I have build the all in one with server 5.0.0-3 official, same problem.
A+


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 25, 2009 10:01 am 
Offline

Joined: Fri Nov 21, 2008 9:56 am
Posts: 3058
Location: Lotharingie
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?


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 25, 2009 4:21 pm 
Offline

Joined: Fri Nov 21, 2008 9:56 am
Posts: 3058
Location: Lotharingie
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+


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 26, 2009 2:33 pm 
Offline

Joined: Fri Nov 21, 2008 9:56 am
Posts: 3058
Location: Lotharingie
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.

Top
 Profile  
 
 Post subject:
PostPosted: Tue May 26, 2009 2:47 pm 
Offline

Joined: Wed Mar 11, 2009 1:38 pm
Posts: 250
Location: Pakistan
Hi GEM,

Did this solve the problem?

Many Thanks
Dhariwal


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 26, 2009 4:23 pm 
Offline

Joined: Fri Nov 21, 2008 9:56 am
Posts: 3058
Location: Lotharingie
it works, it's ok, tonight I could sleep a lot.....
I will make a post tomorrow.
A+ :lol:


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 26, 2009 4:28 pm 
Offline

Joined: Wed Mar 11, 2009 1:38 pm
Posts: 250
Location: Pakistan
u r a super star !!

anxiously waiting for your post.

Thanks a million

Dhariwal


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 26, 2009 4:34 pm 
Offline

Joined: Wed Feb 25, 2009 1:47 pm
Posts: 106
Location: London, UK
Thanks GEM for figuring this out!

Have a good night sleep!

Cheers

David L


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 27, 2009 11:11 am 
Offline

Joined: Wed Feb 25, 2009 1:47 pm
Posts: 106
Location: London, UK
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


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 27, 2009 11:18 am 
Offline

Joined: Wed Mar 11, 2009 1:38 pm
Posts: 250
Location: Pakistan
Hi David,

I am actually waiting for detailed post from GEM still before i attempt again.

Thanks
Dhariwal


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 27, 2009 11:55 am 
Offline

Joined: Fri Nov 21, 2008 9:56 am
Posts: 3058
Location: Lotharingie
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+ :wink:


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 34 posts ]  Go to page Previous  1, 2, 3  Next

All times are UTC + 2 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:

Protected by Anti-Spam ACP