import module no impot in windows - openerp-server v6 revno2258

Bug #582110 reported by Moisés López - http://www.vauxoo.com
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Fix Released
Medium
Unassigned

Bug Description

In windows there is a import error, with pwd unix module.

Revision history for this message
Moisés López - http://www.vauxoo.com (moylop260) wrote :
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Let me give a try.

Revision history for this message
Moisés López - http://www.vauxoo.com (moylop260) wrote :

Although this problem exists in windows in the current version

Changed in openobject-server:
importance: Undecided → Medium
Revision history for this message
GEM (nimp3) wrote :

Hi,
bug can be closed
always corrected

line 47 in server/bin/openerp-server.py

if os.name == 'posix':
    import pwd
    # We DON't log this using the standard logger, because we might mess
    # with the logfile's permissions. Just do a quick exit here.
    if pwd.getpwuid(os.getuid())[0] == 'root' :
        sys.stderr.write("Attempted to run OpenERP server as root. This is not good, aborting.\n")
        sys.exit(1)

Bye

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Thanks GEM.

Changed in openobject-server:
milestone: none → 6.0
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.