Thanks again Thomas but I'm still in the dark. I've had to switch systems,
my primary pc died last night so I am now running on a windows pc with
Ubuntu in vBox. I tried your instruction and I am still getting the same
result:
In a term window, in the directory where the cx-freeze output is I first
get a permission denied when executing with ./, when using sudo I got a
repeat of the "command not found" response.
This is the first time that I am trying create a distribution version of
python and I am kind of at a loss. Is it possible that something is wrong
in my setup.py?
here is a copy of the one I am using:
QUOTE
from cx_Freeze import setup, Executable
import sys
base = None
if sys.platform == "win32":
base = "Win32GUI"
setup(
name = "HomeInv",
version = "0.1",
description = "Sample cx_Freeze Tkinter script",
executables = [Executable("Inventory_menu.py", base = base),
includes = ["Inventory_fuctions","Inventory_user_interface","invlog.py"],
targetName = "InvHome.py"],
)
Thanks again;
Max
Wed, Aug 21, 2013 at 2:37 AM, Thomas Kluyver <tak...@gmail.com> wrote:
> From a command prompt, run ./filename - that's the norm for running a
> program in the current directory. To run it with just the name, it needs to
> be in a directory listed in $PATH.
>
> Thomas
> On Aug 20, 2013 5:59 PM, "Max Bedacht" <bedac...@gmail.com> wrote:
>
>> Thanks for your answer Thomas - I did not see that error - but fixing it
>> did not change the error.
>>
>> I have gone to using the script.py (I was having trouble understanding
>> how to include the other modules) and it seems OK, but now that it has run
>> I can't, for the life of me, figure out how to execute the result.
>>
>> The compile, in the build directory, seems to have all of the libraries
>> etc. that are needed and a file (which Ubuntu says is a program) with the
>> script name (minus the PY suffix). How do you run the thing? Double
>> clicking does nothing. Running it in a term window gives me an error (it
>> says Command not Found).
>>
>> How do you execute the d... thing?
>>
>> Max
>>
>>
>> On Tue, Aug 20, 2013 at 8:40 PM, Thomas Kluyver <tak...@gmail.com> wrote:
>>
>>> Hi Max,
>>>
>>> On 20 August 2013 16:08, Max Bedacht <bedac...@gmail.com> wrote:
>>>
>>>> I am trying to 'compile' an application with four module (.py) files. I
>>>> have tried with the setup.py script and I can't figure out how to include
>>>> the modules. I an now trying with a cxfreeze script in a bash file and
>>>> still can't come to a successful end. My script is :
>>>>
>>>
>>> In general, a setup.py script is the more flexible option, so I'd
>>> recommend that. You shouldn't need to explicitly include the modules if
>>> your main script imports them - cx_Freeze can follow the imports.
>>>
>>>
>>>> cxfreeze inventory_menu.py --target-dir=dist --target-name=HomeInv
>>>> --include-modules=inventory_functions.py,inventory_user_interface.py,invlog.py
>>>>
>>>> This script runs and gives an error on the firse incluce:
>>>>
>>>> quote:
>>>> /home/max/cx_ubuntu/freeze.sh: line 6: cd: /max/cx_ububtu: No such file
>>>> or directory
>>>>
>>>
>>> Note that there's an error here before it does anything with cx_Freeze.
>>> bash can ignore errors and carry on trying to run a script, which often
>>> isn't what you want. Put 'set -e' at the top of a script to make it abort
>>> on an error.
>>>
>>> Thomas
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Introducing Performance Central, a new site from SourceForge and
>>> AppDynamics. Performance Central is your source for news, insights,
>>> analysis and resources for efficient Application Performance Management.
>>> Visit us today!
>>>
>>> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
>>> _______________________________________________
>>> cx-freeze-users mailing list
>>> cx-freeze-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/cx-freeze-users
>>>
>>>
>>
>>
>> ------------------------------------------------------------------------------
>> Introducing Performance Central, a new site from SourceForge and
>> AppDynamics. Performance Central is your source for news, insights,
>> analysis and resources for efficient Application Performance Management.
>> Visit us today!
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
>> _______________________________________________
>> cx-freeze-users mailing list
>> cx-freeze-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/cx-freeze-users
>>
>>
>
> ------------------------------------------------------------------------------
> Introducing Performance Central, a new site from SourceForge and
> AppDynamics. Performance Central is your source for news, insights,
> analysis and resources for efficient Application Performance Management.
> Visit us today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
> _______________________________________________
> cx-freeze-users mailing list
> cx-freeze-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/cx-freeze-users
>
>
------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and
AppDynamics. Performance Central is your source for news, insights,
analysis and resources for efficient Application Performance Management.
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
cx-freeze-users mailing list
cx-freeze-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cx-freeze-users