> It is similar to solaris support. Patch for solaris is merged in trunk
> and in 1.5 branch and it includes hook for the mkdtemp function.
>
> Maybe it is similar for AIX. Look at
>
> http://www.pyinstaller.org/changeset/1610

Thanks for the pointer. It got me past that hurdle.

Now, I package the application as "onedir" and "onefile".

Executing both gives me this error:

-bash-3.00$ test-dir/test
mod is NULL - structTraceback (most recent call last):
  File "/opt/freeware/lib/python2.6/struct.py", line 1, in <module>
ImportError: No such file or directory
mod is NULL - archiveTraceback (most recent call last):
  File "/data/maconomy/mgd/pyinstaller-patches/2nd/pyinstaller/
archive.py", line 42, in <module>
ImportError: No module named struct
Traceback (most recent call last):
  File "<string>", line 25, in <module>
ImportError: No module named archive
-bash-3.00$

(The paths in the error messages above are paths from the machine
where the application was built using PyInstaller. These paths does
not exist on the machine where I try to execute the application.)

If I "cd" into the "onedir" application and then run the application
from here, I get:

-bash-3.00$ cd test-dir
-bash-3.00$ ./test
exec(): 0509-036 Cannot load program ./test because of the following
errors:
        0509-130 Symbol resolution failed for ./libc.a(shr.o) because:
        0509-136   Symbol acct_wpar (number 24) is not exported from
                   dependent module /unix.
<..snip..>

It seems the application is packaged with the versions of 'libc' and
'libpthreads' from the build machine which obviously is not correct.
If I delete those two, the application works:

-bash-3.00$ rm libc.a
-bash-3.00$ rm libpthreads.a
-bash-3.00$ ./test
Hello PyInstaller!
-bash-3.00$

Backing up one dir (cd ..) and running the command (test-dir/test)
still gives the error with importing "struct" and "archive" modules.

So it seems I have (at least) two problems left to resolve:

1) I should prevent libc.a and libpthreads.a from being packaged along
with the application. I guess it is the regexes in bindepend.py which
does not work for AIX, as they incorrectly assume all shared libs ends
with ".so".

2) Python cannot find packages to import unless the current working
dir contains the shared objects. Any ideas how to fix this?

Thank you for your invaluable help so far!

/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