Hi Thomas,
I have got a unique problem. I am having various module in the folder structure given as below where source code lies. *Directory Structure: * * /root/tech - src –---- Utilities* |_______Comm ___________ |____ EnterpriseBus |____src -------- (scbWampClient.py) /root/tech is the PYTHON PATH. I edited setup.py(attached for reference) to have entire source code to be built as executable and gave a call to python script which (scbWampClient.py) that initiates the main process. This script in turn imports classes from src.Utilities. When the build directory is generated and we execute it from /root/tech/src/build/exe.linux-x86_64-2.7/scbWampClient, we get error as below. When we run scbWampClient from command prompt it works fine. *Error:* File "/usr/local/lib/python2.7/dist-packages/cx_Freeze-4.3.4-py2.7-linux-x86_64.egg/cx_Freeze/initscripts/Console.py", line 34, in <module> exec(code, m.__dict__) File "/root/tech/src/Comm/src/scbWampClient.py", line 46, in <module> from src.Comm.src.scbMsgInterpreter import ScbMsgInterpreter ImportError: No module named Comm.src.scbMsgInterpreter Within console.py the Sys path is getting set to: ['/opt/tech/techPY/build/exe.linux-x86_64-2.7/scbWampClient', '/opt/tech/techPY/build/exe.linux-x86_64-2.7', '/opt/tech/techPY/build/exe.linux-x86_64-2.7/scbWampClient.zip', '/opt/tech/techPY/build/exe.linux-x86_64-2.7/library.zip']. In order to resolve error, I change dbuild options to build_options = {"include_files": [dir_list], "path": ["/root/anuntatech"]} I get error while building the setup.py. Setting buildOptions = dict(include_files = dir_list, path="/root/tech") doesn’t work too. As an alternative we did this: executables = [Executable("/root/tech/src/Comm/src/scbWampClient.py", base=base, path="/root/tech")]) but it was in vain. Could you please advise what could be wrong in the way the path is set. Regards, *Sucheta Belvi** | **Convergence Practices* sucheta.be...@gslab.com | Extn – 9186 | Cell: +91-9822197608 *[image: gslab_logo]* *www.gslab.com <http://www.gslab.com/>* *From:* Thomas Kluyver [mailto:tak...@gmail.com] *Sent:* 18 November 2015 20:52 *To:* primary discussion list for use and development of cx_Freeze < cx-freeze-users@lists.sourceforge.net> *Subject:* Re: [cx-freeze-users] Python 2.7 - Error while CX-Freeze on Ubuntu 12.04.4 LTS Hi Sucheta, On 18 November 2015 at 13:05, Sucheta Belvi <sucheta.be...@gslab.com> wrote: I went through the following link however did not understand where do we specify the build options and procedure of doing so. Could you please help? Is this to be put in setup.py? Yes, that code with the build options needs to go in your setup.py script. Thomas
tsetup.py
Description: Binary data
------------------------------------------------------------------------------ Go from Idea to Many App Stores Faster with Intel(R) XDK Give your users amazing mobile app experiences with Intel(R) XDK. Use one codebase in this all-in-one HTML5 development environment. Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs. http://pubads.g.doubleclick.net/gampad/clk?id=254741551&iu=/4140
_______________________________________________ cx-freeze-users mailing list cx-freeze-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cx-freeze-users