Comment 23 for bug 365501

Revision history for this message
petebisson (o-launchpad-bisson-co-uk) wrote : Re: wubi-r129.exe does nothing.

Hi again Ago,

With PYTHONCASEOK set, application.py fails on

from wubi.backends.win32 import WindowsBackend

The cause of this, as mentioned above is openpgp/sap/crypto.py ( line 47)

import Crypto.Util.number as NUM

Because python is running case insensitive search, the first match this gets for Crypto is actually crypto in the openpgp/sap directory. This means the module is actually trying :

import openpgp.sap.crypto.Util.number as NUM

with the results we have seen all along :

ImportError: No module named Util.number

You can investigate this further on your build machine by setting the environment variable:

export PYTHONCASEOK=1

Then when you 'make runbin' you will get exactly the same behaviour in wine.

Cheers,

Pete
-----

Extra info as requested.

# log extract (reformatted for clarity)
06-02 10:56 DEBUG root: ** extra info BEGIN **
06-02 10:56 DEBUG root: sys.path = [
    'C:\\u-904\\wubi',
    'C:\\IBMTOOLS\\utils\\support',
    'C:\\IBMTOOLS\\utils\\logger',
    'C:\\u-904\\wubi\\python23.zip',
    'C:\\u-904\\wubi\\DLLs',
    'C:\\u-904\\wubi\\lib',
    'C:\\u-904\\wubi\\lib\\plat-win',
    'C:\\u-904\\wubi\\lib\\lib-tk',
    'C:\\u-904\\wubi'
]

06-02 10:56 DEBUG root: os.environ = {
    'TMP': 'C:\\DOCUME~1\\Stacey\\LOCALS~1\\Temp',
    'COMPUTERNAME': 'THINKPAD',
    'USERDOMAIN': 'THINKPAD',
    'COMMONPROGRAMFILES': 'C:\\Program Files\\Common Files',
    'PROCESSOR_IDENTIFIER': 'x86 Family 6 Model 13 Stepping 8, GenuineIntel',
    'PROGRAMFILES': 'C:\\Program Files',
    'PROCESSOR_REVISION': '0d08',
    'SYSTEMROOT': 'C:\\WINDOWS',
    'PATH': 'C:\\PROGRAM FILES\\THINKPAD\\UTILITIES;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\Downloaded Program Files;C:\\IBMTOOLS\\Python22;C:\\Program Files\\PC-Doctor for Windows\\services;C:\\Program Files\\hpgs\\bin;C:\\Program Files\\OpenVPN\\bin;C:\\Program Files\\Nmap',
    'IBMSHARE': 'C:\\IBMSHARE',
    'TK_LIBRARY': 'C:\\IBMTOOLS\\Python22\\tcl\\tk8.4',
    'TEMP': 'C:\\DOCUME~1\\Stacey\\LOCALS~1\\Temp',
    'PROCESSOR_ARCHITECTURE': 'x86',
    'ALLUSERSPROFILE': 'C:\\Documents and Settings\\All Users',
    'SESSIONNAME': 'Console',
    'HOMEPATH': '\\Documents and Settings\\Stacey',
    'RRU': 'C:\\Program Files\\IBM\\IBM Rapid Restore Ultra\\',
    'USERNAME': 'Stacey',
    'LOGONSERVER': '\\\\THINKPAD',
    'PROMPT': '$P$G',
    'COMSPEC': 'C:\\WINDOWS\\system32\\cmd.exe',
    'PYTHONPATH': 'C:\\IBMTOOLS\\utils\\support;C:\\IBMTOOLS\\utils\\logger',
    'TCL_LIBRARY': 'C:\\IBMTOOLS\\Python22\\tcl\\tcl8.4',
    'PATHEXT': '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.pyo;.pyc;.py;.pyw',
    'CLIENTNAME': 'Console',
    'FP_NO_HOST_CHECK': 'NO',
    'WINDIR': 'C:\\WINDOWS',
    'APPDATA': 'C:\\Documents and Settings\\Stacey\\Application Data',
    'HOMEDRIVE': 'C:',
    'SYSTEMDRIVE': 'C:',
    'NUMBER_OF_PROCESSORS': '1',
    'PROCESSOR_LEVEL': '6',
    'OS': 'Windows_NT',
    'USERPROFILE': 'C:\\Documents and Settings\\Stacey'
}
06-02 10:56 DEBUG root: ** extra info END **