Try putting env={} in subprocess
For MacOS (and probably Linux if it were running through Freeze or the like),
you need to pass env as an empty dict. For Windows and py2exe, you pass env as
None.
I don't know if this post will get through as I'm not intending to subscribe to
this list, but I
On 1/20/11 2:10 PM, Mier, Alejandro wrote:
The problem is that, even though subprocess.call("python setup.py install")
picks up the system python
(sys.executable has the expected value), it still loads the modules from the
site-packages.zip in the .app bundle.
I suspect that you are getting e
nces+alejandro=ti@python.org
[mailto:pythonmac-sig-bounces+alejandro=ti@python.org] On Behalf Of
Christopher Barker
Sent: Tuesday, January 18, 2011 6:02 PM
To: pythonmac-sig@python.org
Subject: Re: [Pythonmac-SIG] Installing modules with py2app
On 1/18/11 2:47 PM, Mier, Alejandro wrote:
> I mo
On 1/18/11 2:47 PM, Mier, Alejandro wrote:
I modified the included distutils files, and managed to get this stack trace
Traceback (most recent call last):
File "distutils/dist.py", line 837, in get_command_class
__import__ (module_name)
File "distutils/command/install.py", line 21, in
On 1/18/11 9:05 AM, João Vale wrote:
Do you have distutils installed? It usually doesn't come bundled with
Python.
huh? Sure it does -- distutils has been standard in Python for many many
years.
So that's not it.
Besides, if you can run it unbundled, you have the packages you need,
the que
mac-sig@python.org
Subject: Re: [Pythonmac-SIG] Installing modules with py2app
On Tue, Jan 11, 2011 at 9:42 AM, Mier, Alejandro wrote:
> Hello
>
> I have a script that installs Python, and then installs some modules with:
>
> subprocess.call("python setup.py install")
>
> The
On Tue, Jan 11, 2011 at 9:42 AM, Mier, Alejandro wrote:
> Hello
>
> I have a script that installs Python, and then installs some modules with:
>
> subprocess.call("python setup.py install")
>
> The script works on Windows with py2exe, but gives me this error when using
> py2app:
>
> File setup.py
> Chris Weisiger
> Sent: Tuesday, January 18, 2011 10:08 AM
> Cc: pythonmac-sig@python.org
> Subject: Re: [Pythonmac-SIG] Installing modules with py2app
>
>
>
> Did you build the app bundle with the Python that came with OSX, or did you
> install a separate Python install from pyth
Sent: Tuesday, January 18, 2011 10:08 AM
Cc: pythonmac-sig@python.org
Subject: Re: [Pythonmac-SIG] Installing modules with py2app
Did you build the app bundle with the Python that came with OSX, or did you
install a separate Python install from python.org<http://python.org> and use
that? You
Did you build the app bundle with the Python that came with OSX, or did you
install a separate Python install from python.org and use that? You have to
do the latter; py2app's not allowed to include components of the operating
system in the apps it generates. Windows gets around this problem by not
Hello
I have a script that installs Python, and then installs some modules with:
subprocess.call("python setup.py install")
The script works on Windows with py2exe, but gives me this error when using
py2app:
File setup.py
from distutils.core import setup
ImportError: No module named distut
11 matches
Mail list logo