Open ERP Forum
   IndexIndex   SearchSearch     RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   RSSRSS   Mailing ListMailing List   Log inLog in 

Scripts and procedures in Partner Section?
Goto page Previous  1, 2, 3  Next  
Post new topic   Reply to topic    Open Object Forum Index -> General discussion
View previous topic :: View next topic  
Author Message
GEM



Joined: 21 Nov 2008
Posts: 1132
Location: Lotharingie

PostPosted: Sat May 23, 2009 3:02 pm    Post subject: Reply with 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+
Back to top
View user's profile Send private message
David L



Joined: 25 Feb 2009
Posts: 77
Location: London, UK

PostPosted: Sat May 23, 2009 4:55 pm    Post subject: Reply with quote

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
View user's profile Send private message
GEM



Joined: 21 Nov 2008
Posts: 1132
Location: Lotharingie

PostPosted: Mon May 25, 2009 8:46 am    Post subject: Reply with quote

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
View user's profile Send private message
GEM



Joined: 21 Nov 2008
Posts: 1132
Location: Lotharingie

PostPosted: Mon May 25, 2009 9:19 am    Post subject: Reply with quote

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
View user's profile Send private message
GEM



Joined: 21 Nov 2008
Posts: 1132
Location: Lotharingie

PostPosted: Mon May 25, 2009 9:58 am    Post subject: Reply with quote

I have build the all in one with server 5.0.0-3 official, same problem.
A+
Back to top
View user's profile Send private message
GEM



Joined: 21 Nov 2008
Posts: 1132
Location: Lotharingie

PostPosted: Mon May 25, 2009 10:01 am    Post subject: Reply with quote

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
View user's profile Send private message
GEM



Joined: 21 Nov 2008
Posts: 1132
Location: Lotharingie

PostPosted: Mon May 25, 2009 4:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
GEM



Joined: 21 Nov 2008
Posts: 1132
Location: Lotharingie

PostPosted: Tue May 26, 2009 2:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
dhariwal



Joined: 11 Mar 2009
Posts: 196
Location: Pakistan

PostPosted: Tue May 26, 2009 2:47 pm    Post subject: Reply with quote

Hi GEM,

Did this solve the problem?

Many Thanks
Dhariwal
Back to top
View user's profile Send private message
GEM



Joined: 21 Nov 2008
Posts: 1132
Location: Lotharingie

PostPosted: Tue May 26, 2009 4:23 pm    Post subject: Reply with quote

it works, it's ok, tonight I could sleep a lot.....
I will make a post tomorrow.
A+ Laughing
Back to top
View user's profile Send private message
dhariwal



Joined: 11 Mar 2009
Posts: 196
Location: Pakistan

PostPosted: Tue May 26, 2009 4:28 pm    Post subject: Reply with quote

u r a super star !!

anxiously waiting for your post.

Thanks a million

Dhariwal
Back to top
View user's profile Send private message
David L



Joined: 25 Feb 2009
Posts: 77
Location: London, UK

PostPosted: Tue May 26, 2009 4:34 pm    Post subject: Reply with quote

Thanks GEM for figuring this out!

Have a good night sleep!

Cheers

David L
Back to top
View user's profile Send private message
David L



Joined: 25 Feb 2009
Posts: 77
Location: London, UK

PostPosted: Wed May 27, 2009 11:11 am    Post subject: Reply with quote

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
View user's profile Send private message
dhariwal



Joined: 11 Mar 2009
Posts: 196
Location: Pakistan

PostPosted: Wed May 27, 2009 11:18 am    Post subject: Reply with quote

Hi David,

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

Thanks
Dhariwal
Back to top
View user's profile Send private message
GEM



Joined: 21 Nov 2008
Posts: 1132
Location: Lotharingie

PostPosted: Wed May 27, 2009 11:55 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Open Object Forum Index -> General discussion All times are GMT + 2 Hours
Goto page Previous  1, 2, 3  Next
Page 2 of 3

 
Jump to:  
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
You cannot vote in polls in this forum