Hey all,

I'm running into an odd problem on Ubuntu Linux 13.10. I include
libzmq.so.3 in my executable using the 'bin_includes' build_exe option,
otherwise the libzmq.so.3 is not copied to my build/exe*/ directory.

However, when I run my executable on a system without libzmq3 installed, it
fails:

Traceback (most recent call last):
  File "/zmq/sugar/backend.py", line 17, in <module>
  File "/usr/lib/python3.3/importlib/_bootstrap.py", line 1565, in
_find_and_load
    finally:
  File "/usr/lib/python3.3/importlib/_bootstrap.py", line 1532, in
_find_and_load_unlocked
    _verbose_message('import {!r} # {!r}', name, loader)
  File "/lib/python3.3/site-packages/zmq/core/__init__.py", line 26, in
<module>
  File "/usr/lib/python3.3/importlib/_bootstrap.py", line 1614, in
_handle_fromlist
    except ImportError as exc:
  File "/usr/lib/python3.3/importlib/_bootstrap.py", line 313, in
_call_with_frames_removed
    return f(*args, **kwds)
  File "/usr/lib/python3.3/importlib/_bootstrap.py", line 1565, in
_find_and_load
    finally:
  File "/usr/lib/python3.3/importlib/_bootstrap.py", line 1532, in
_find_and_load_unlocked
    _verbose_message('import {!r} # {!r}', name, loader)
  File "ExtensionLoader_zmq_core_error.py", line 11, in <module>
ImportError: libzmq.so.3: cannot open shared object file: No such file or
directory

If I set LD_LIBRARY_PATH to the build/exe*/ directory, the executable runs
without a problem.

After some reading, I saw the ConsoleSetLibPath init script mentioned, and
it sounded like that may fix my problem. However, when I use it I get the
following error when I try to run my frozen executable:

Traceback (most recent call last):
  File "/ConsoleSetLibPath.py", line 31, in <module>
  zipimport.ZipImportError: can't find module '__main__'

Anyone know what I can do to get libzmq.so.3 in my library path for my
executable aside from resorting to a shell script to launch my frozen
executable?

Thanks,

-Dan
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
cx-freeze-users mailing list
cx-freeze-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cx-freeze-users

Reply via email to