Hi Martin,

I had a look at the (interesting) failing tests on AIX.


import/test_zipimport2
-----------------
Unsure about what to do. See info in my previous post.


basic/test_nestedlaunch1
-----------------
Looks like module _ctypes is not available. I guess this is also why
test 'basic/test_ctypes' is skipped.

Maybe this test should be skipped as well? (But how do you specify
that if _ctypes is not available, a test should be skipped?)


basic/test_get_meipass2_value
-----------------
It looks like the _MEIPASS2 environment variable is not cleared as it
should. It looks like it is supposed to happen in this code in file
_mountzlib.py:

# Now that the startup is complete, we can reset the _MEIPASS2 env
# so that if the program invokes another PyInstaller one-file program
# as subprocess, this subprocess will not fooled into thinking that it
# is already unpacked.
#
# But we need to preserve _MEIPASS2 value for cases where reseting it
# causes some issues (e.g. multiprocess module on Windows).
# set  sys._MEIPASS
if '_MEIPASS2' in os.environ:
    sys._MEIPASS = os.environ['_MEIPASS2']
    # Ensure sys._MEIPASS is absolute path.
    sys._MEIPASS = os.path.normpath(sys._MEIPASS)
    sys._MEIPASS = os.path.abspath(sys._MEIPASS)
    # Delete _MEIPASS2 from environment.
    del os.environ['_MEIPASS2']

Any idea what could be wrong?

How do I debug this code? I expected to find the file "_mountzlib.py"
in the packaged application, but cannot find it. Is it built into the
bootloader, and if yes, how do I extract it?


basic/test_multiprocess_onefile
-----------------
This test fails because it cannot resolve the function "unsetenv":

Traceback (most recent call last):
  File "<string>", line 47, in <module>
  File "<string>", line 35, in __init__
  File "/data/maconomy/mgd/pyinstaller/pyinstaller-aix-trunk-patches/
buildtests/basic/build/pyi.aix5/test_multiprocess_onefile/outPYZ2.pyz/
multiprocessing.process", line 104, in start
  File "<string>", line 23, in __init__
SendeventProcess
AttributeError: 'module' object has no attribute 'unsetenv'

In file "buildtests/basic/test_multiprocess_onefile.py" line 23 it
says:

>     23                 os.unsetenv('_MEIPASS2')

Could it be, that "os" is somehow not correctly imported or am I
reading this incorrectly?

Also, could this be related to the previous problematic test ("basic/
test_get_meipass2_value") that does not succeed in unsetting the
_MEIPASS2 environment variable?


basic/test_absolute_ld_library_path
-----------------
The problem here is that the test looks for LD_LIBRARY_PATH which is
not used on AIX. It should look for LIBPATH instead. I will look into
it.

/Martin

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pyinstaller?hl=en.

Reply via email to