Hello everyone,

I am currently struggeling to freeze an application with cx-freeze.

The application I am packaging uses a library "OPSI" that in turn uses
"librsync" from the "duplicity" project.

When I try to run the application I am getting this:
    Traceback (most recent call last):
      File
"/usr/lib/python2.7/site-packages/cx_Freeze/initscripts/Console.py",
line 27, in <module>
      File "example.py", line 6, in <module>
      File "/usr/lib/python2.7/site-packages/OPSI/Util/__init__.py",
line 63, in <module>
      File "/usr/lib/python2.7/site-packages/duplicity/librsync.py",
line 29, in <module>
      File "ExtensionLoader_duplicity__librsync.py", line 22, in <module>
      File "ExtensionLoader_duplicity__librsync.py", line 14, in
__bootstrap__
    ImportError: librsync.so.1: cannot open shared object file: No such
file or directory

In the build folder there is a duplicity._librsync.so - this is an
extension build by duplicity. But the build misses an librsync.so.1.

In figuring out if there is a general problem I tried to reproduce the
failure with a minimal example. The code for this can be found under
https://github.com/okin/cx-freeze-fail

This was tested on a x86 machine running openSuse 13.2 with the
following package versions:

* cx-Freeze==4.3.4
* duplicity==0.6.24
* python-opsi==4.0.6.10

The latter two are installed from
https://software.opensuse.org/download/package?project=home:uibmz:devel:experimental&package=python-opsi
and cx-freeze was installed through pip.

To make sure it is not a problem with openSuse I ran the same script on
a Ubuntu 12.04 machine (also x86 if this matters somehow). The freezed
application also crashes with an error similar to the one posted above.

I tried including librsync.so.1 via the "include_files" build option but
this did not seem to work for me.
Could anyone please give me an advice on how to freeze this properly?


With kind regards

Niko

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors 
network devices and physical & virtual servers, alerts via email & sms 
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
_______________________________________________
cx-freeze-users mailing list
cx-freeze-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cx-freeze-users

Reply via email to