Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #98735 > unrolled thread

Running latest 32-bit Python on 64-bit system

Started byChristian Ullrich <chris@chrullrich.net>
First post2015-11-13 11:52 +0100
Last post2015-11-16 19:38 +0100
Articles 3 — 2 participants

Back to article view | Back to comp.lang.python


Contents

  Running latest 32-bit Python on 64-bit system Christian Ullrich <chris@chrullrich.net> - 2015-11-13 11:52 +0100
    Re: Running latest 32-bit Python on 64-bit system Zachary Ware <zachary.ware+pylist@gmail.com> - 2015-11-16 10:42 -0600
      Re: Running latest 32-bit Python on 64-bit system Christian Ullrich <chris@chrullrich.net> - 2015-11-16 19:38 +0100

#98735 — Running latest 32-bit Python on 64-bit system

FromChristian Ullrich <chris@chrullrich.net>
Date2015-11-13 11:52 +0100
SubjectRunning latest 32-bit Python on 64-bit system
Message-ID<daltmhFas7qU1@mid.individual.net>
Hello,

I have a problem with using the (otherwise nice) Python launcher. How 
can I get it to run the highest 32-bit Python on my 64-bit system? This 
is on Windows, but I think it applies to other OSes as well.

My application runs (unmodified) with Python 3.[345], but only with the 
32-bit version because it loads a DLL that has no 64-bit version 
available. I would like to run it on any system that has *any* suitable 
Python installed.

However, with the shebang syntax supported by the launcher, I can only 
demand a 32-bit version if I also specify the Python minor version I 
want, and I don't necessarily know that in advance.

I can code around that, of course, but I don't want to. If Python can 
select the 64-bit version to run by itself, it should also be able to 
for the 32-bit version, right?

Thanks,

-- 
Christian

[toc] | [next] | [standalone]


#98891

FromZachary Ware <zachary.ware+pylist@gmail.com>
Date2015-11-16 10:42 -0600
Message-ID<mailman.368.1447692171.16136.python-list@python.org>
In reply to#98735
On Fri, Nov 13, 2015 at 4:52 AM, Christian Ullrich <chris@chrullrich.net> wrote:
> Hello,
>
> I have a problem with using the (otherwise nice) Python launcher. How can I
> get it to run the highest 32-bit Python on my 64-bit system? This is on
> Windows, but I think it applies to other OSes as well.
>
> My application runs (unmodified) with Python 3.[345], but only with the
> 32-bit version because it loads a DLL that has no 64-bit version available.
> I would like to run it on any system that has *any* suitable Python
> installed.
>
> However, with the shebang syntax supported by the launcher, I can only
> demand a 32-bit version if I also specify the Python minor version I want,
> and I don't necessarily know that in advance.
>
> I can code around that, of course, but I don't want to. If Python can select
> the 64-bit version to run by itself, it should also be able to for the
> 32-bit version, right?

I don't think there's currently a way to do what you want, but it
seems like a reasonable thing to do.  Would you mind raising an
enhancement request on bugs.python.org?

About the closest you could come currently would be to specify the
full path to the interpreter, but of course that may vary by machine.

-- 
Zach

[toc] | [prev] | [next] | [standalone]


#98901

FromChristian Ullrich <chris@chrullrich.net>
Date2015-11-16 19:38 +0100
Message-ID<daum5tFis26U1@mid.individual.net>
In reply to#98891
* Zachary Ware wrote:

> On Fri, Nov 13, 2015 at 4:52 AM, Christian Ullrich <chris@chrullrich.net> wrote:

>> However, with the shebang syntax supported by the launcher, I can only
>> demand a 32-bit version if I also specify the Python minor version I want,
>> and I don't necessarily know that in advance.
>>
>> I can code around that, of course, but I don't want to. If Python can select
>> the 64-bit version to run by itself, it should also be able to for the
>> 32-bit version, right?
>
> I don't think there's currently a way to do what you want, but it
> seems like a reasonable thing to do.  Would you mind raising an
> enhancement request on bugs.python.org?

<https://bugs.python.org/issue25636>. Crossing my fingers ...

> About the closest you could come currently would be to specify the
> full path to the interpreter, but of course that may vary by machine.

And it would include the version number in either the path (Windows) or 
the file name (elsewhere) again, rather defeating the purpose.

Thanks for your help,

-- 
Christian

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web