Hi Dean,

Your situation (possibly) echoes a multiplatform cx_freeze issue I had with
Bluetooth.
Basically, freeze can only freeze code that is present on the machine where
freezing is done. So when I froze on a machine with Microsoft Bluetooth
driver (MSBT) and without widcomm driver,  and then installed on a machine
with only widcomm driver, there were missing pieces. In that case my
solution was to do my final freeze for each release on a machine that had
both Bluetooth drivers.

In relation to your problem, I see that
https://docs.python.org/3/library/multiprocessing.html 
“17.2.1.2. Contexts and start methods: Depending on the platform,
multiprocessing supports three ways to start a process.“
So are you freezing on a machine where multiprocessing works without
multiprocessing.spawn (and maybe multiprocessing.spawn code is absent), and
unfreezing on a machine where multiprocessing uses  multiprocessing.spawn?

Regards,

Owen

From: Dean Chester [mailto:[email protected]] 
Sent: April-10-14 5:49 AM
To: primary discussion list for use and development of cx_Freeze
Subject: [cx-freeze-users] Missing multiprocessing - Python 3.4

Hi, 

I'm freezing a script on OS X and I am getting the error: 
Missing Modules:
? multiprocessing.get_start_method imported from multiprocessing.spawn
When Running the app i get the following error:

NameError: name 'multiprocessing' is not defined

I am using python 3.4 on OS X. 

My setup.py looks like: 
application_title = "Application" #what you want to     application to be
called
main_python_file = "./app/App.py" #the name of the python file you use to
run the program
import sys
from cx_Freeze import setup, Executable
base = None
if sys.platform == "win32":
    base = "Win32GUI"
includes = ["atexit","re", "tkinter", "multiprocessing"]
setup(
        name = application_title,
        version = "0.1",
        description = "App Description",
        options = {"build_exe" :{"includes" : includes } },
        executables = [Executable(main_python_file, base = base,
icon="./resources/logo.icns")])

Kind Regards, 

Dean Chester 


------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment 
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
cx-freeze-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cx-freeze-users

Reply via email to