v6 WINDOWS errors + corrections
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Hi,
to build and install allinone for windows, I must make this changes and it's work :
in server\setup.py
line176 change :
"imaplib", "smtplib", "email", "yaml", "DAV",
by
"imaplib", "smtplib", "email", "yaml", "DAV", "simplejson"
in server\
import pwd
by :
#import pwd
line 50 change :
if pwd.getpwuid(
sys.
sys.exit(1)
by
if not sys.platform == 'win32':
import pwd
if pwd.getpwuid(
sys.exit(1)
server\
lines 49-50 put :
'db_host': '127.0.0.1',
'db_port': 5432,
lines 52-53 put :
'db_user': 'openpg',
'db_password': 'openpgpwd',
*******
Does the working directory for windows in not the same as linux ?
server\
change :
_ad = os.path.
by
_ad = os.path.
server\
change :
-tools.
+tools.
line 308, change :
self.options[
by
self.options[
Hope this will help.
Bye
Changed in openobject-server: | |
status: | New → Fix Released |
milestone: | none → 6.0 |
On Tuesday 28 September 2010, you wrote: bin\openerp- server. py line 38 change : os.getuid( ))[0] == 'root' : write(" Attempted to run OpenERP server as root. This is not os.getuid( ))[0] == 'root' : write(" Attempted to run OpenERP server as root. This is
> Public bug reported:
>
> Hi,
> to build and install allinone for windows, I must make this changes and
> it's work :
>
>
> in server\
> import pwd
> by :
> #import pwd
>
> line 50 change :
> if pwd.getpwuid(
> sys.stderr.
> good, aborting.\n") sys.exit(1)
> by
> if not sys.platform == 'win32':
> import pwd
> if pwd.getpwuid(
> sys.stderr.
> not good, aborting.\n") sys.exit(1)
The test is there for some reason. You shall NOT run the server as root, and I
believe the same should apply to win32.
> bin\tools\ config. py :
> server\
>
> lines 49-50 put :
> 'db_host': '127.0.0.1',
> 'db_port': 5432,
> lines 52-53 put :
> 'db_user': 'openpg',
> 'db_password': 'openpgpwd',
No, the defaults are there on purpose. Please override them with a config file,
don't ask us to have your settings as default. Setting a value at db_host,
db_port will break the default unix connection to Postgres.
> server\ bin\addons\ __init_ _.py line 50 : abspath( opj(tools. config[ 'root_path' ], 'addons')) abspath( opj(tools. config[ 'root_path' ], config[ 'addons_ path']) )) bin\addons\ base\res\ res_compagny. py line 199 : config[ 'root_path' ], '..', 'pixmaps', 'openerp- header. png') config[ 'root_path' ], 'pixmaps', 'openerp- header. png'): 'addons_ path'] = os.path. join(self. options[ 'root_path' ], 'addons_ path'] = os.path. join(self. options[ 'root_path' ],
> change :
> _ad = os.path.
> by
> _ad = os.path.
> opj(tools.
> server\
> change :
> -tools.
> +tools.
> line 308, change :
> self.options[
> 'addons') by
> self.options[
> os.path.join('bin', 'addons'))
These break the current paths logic.