PDA

View Full Version : Does Python work on Vista 64?


TBart
03-11-2008, 03:29 AM
I want to try it out, but I remember reading that it didn't work yet. Any progress on that problem?

StephenBlair
03-11-2008, 09:44 AM
64-bit XSI does not recognize Python on 64-bit Vista (which, for 6.x, is an unsupported OS btw).

TBart
03-11-2008, 02:18 PM
That's too bad. Someone just told me that it might work if I build the Python binaries myself. How do I do that? Thanks for your help.

StephenBlair
03-11-2008, 04:26 PM
XSI determines what scripting languages are available by looking in the registry.
On 64-bit Vista, Python puts its registry entries elsewhere. I don't know if rebuilding the binaries will help that?
(also, I don't know about rebuilding the Python binaries, sorry)

Ces
03-13-2008, 08:36 AM
The source docs must have build instructions?

pboucher
03-13-2008, 09:44 AM
Surely the sources must have build instructions but as Stephen said you will also need to relocate the registry entries. So it now not only becomes a rebuild task but also a code modification task.

TBart
03-19-2008, 11:14 PM
Yeah, this seems like a lot of work. Well, not really too bad, but I would need a walkthrough and I haven't found one. I don't suppose Vista sp1 will fix this? I would install it to find out, but my Audigy soundcard won't work after I do it (supposedly). Gotta love Vista support.

ThomasHelzle
05-12-2008, 08:36 AM
"XSI determines what scripting languages are available by looking in the registry.
On 64-bit Vista, Python puts its registry entries elsewhere."

About what amount of entries are we talking here? Would it be possible to introduce some additional entries to the registry to make Python64 work in 64 bit XSI? (is it basically just missing the path to the Python installation or are we talking thousands of entries here?

I'm somehow unsatisfied with the state of this and the explanations I've read so far...

But well, XSI 32 on Vista 64 works nicely and doesn't have this problem so I'll have to live with it for now...

Cheers,

Thomas

StephenBlair
05-12-2008, 10:22 AM
Adding the missing registry entries won't help, I tried that.

XSI searches for keys under HKCR\CLSID, and some of the keys contain GUIDs, and those GUIDs are the names of other keys in the registry.
I've already looked on my Vista machine, and even if I add the entries under HKCR\CLSID, there are still other registry entries that have to be added.
Plus XSI will programmatically create an object to verify the existence of the language. I could be wrong, but I don't think it is possible to hack the registry to get Python up on Vista64.

Each scripting language has some keys under HKCR\CLSID, the number of entries is not large.
You can use Process Monitor to see which keys XSI checks at startup (that is what I did).


XSI 6.x does not officially support Vista.

kim aldis
05-13-2008, 03:37 AM
You can install 32 bit XSI on a 64 bit machine along with the 64 bit version; Python will work on that. If you're just trying Python out that may be a way to go.

ThomasHelzle
05-13-2008, 04:07 AM
Thanks Stephen! - too bad there is no easy way ...

So we'll have to wait for 7 I guess? :-)

Cheers,

Thomas

mabxsi
05-23-2008, 04:54 PM
I built a package for Vista64, you can download it here: http://community.softimage.com/downloads.php?do=file&id=83 (http://community.softimage.com/downloads.php?do=file&id=83)

pywin32 has to be compiled with python 2.6 (currently in alpha), it cannot be compiled with older versions of python on Windows 64 bit platforms. The pywin32 team should add an x64 build to their regular release process soon according to Mark Hammond.

In the mean time enjoy python on Vista64!!

-mab

ThomasHelzle
05-23-2008, 04:58 PM
Will that work with 64 Bit XSI?

Thanks!

Thomas

mabxsi
05-23-2008, 05:00 PM
Will that work with 64 Bit XSI?

Thanks!

Thomas

Yes! It definetly works on Vista 64. We didn't test with XP 64 but it should also work.

-mab

ThomasHelzle
05-23-2008, 05:04 PM
Do I need to remove all other Python installs on the system?
So far it doesn't work here on Vista 64 with XSI 64...

Cheers!

Thomas

ThomasHelzle
05-23-2008, 07:05 PM
Uninstalled 32 Bit Python - now it works.
Is it possible to have both 32 and 64 Bit Python installed at the same time?

Thanks a lot!!!

Thomas

mabxsi
05-23-2008, 07:27 PM
Uninstalled 32 Bit Python - now it works.
Is it possible to have both 32 and 64 Bit Python installed at the same time?

Thanks a lot!!!

Thomas

Both python 2.5 (32) and python 2.6 (64) should work and shouldn't collide as windows use different parts of the registry to store x86 and x64 app information.

-mab

ThomasHelzle
05-24-2008, 03:57 AM
Ok, I'll give it another try. What do you recommend for the 32 Bit installation? Active Python or Vanilla Python?

Thank you!

Thomas

mabxsi
05-24-2008, 09:54 AM
Ok, I'll give it another try. What do you recommend for the 32 Bit installation? Active Python or Vanilla Python?

Thank you!

Thomas

Python 2.5.2 from python.org

ThomasHelzle
05-25-2008, 06:29 AM
Wow! After such a long time, this finally works. Thank you very much!

XSI 32 Bit on Vista 64 runs Python 2.5.2
XSI 64 Bit on the same Vista 64 runs Python 2.6

Superb, thank you very much mabxsi!

http://www.screendream.de/stuff/2125.gif

Cheers,

Thomas

M-TUNE
05-26-2008, 12:44 PM
yeaaa.!!!!!:biggrin:

M-TUNE
05-26-2008, 01:24 PM
i do not see Python in the Script Language Preferences drop-down list,:oops:.,

mabxsi
05-27-2008, 10:34 AM
i do not see Python in the Script Language Preferences drop-down list,:oops:.,

Look at the Vista event viewer for errors. You can also use systrace.exe to track down side-by-side app problems.

-mab

StephenBlair
05-27-2008, 11:09 AM
i do not see Python in the Script Language Preferences drop-down list,:oops:.,

Did you follow the instructions in the README (eg disable UAC) ?
I tried doing it without disabling UAC (eg running everything as Admin), and Python did not show up for me. So I redid the install with UAC disabled.

M-TUNE
05-27-2008, 02:37 PM
Did you follow the instructions in the README (eg disable UAC) ?
I tried doing it without disabling UAC (eg running everything as Admin), and Python did not show up for me. So I redid the install with UAC disabled.

to try again but it does not work =(

revert
05-27-2008, 05:32 PM
I have the same issue as above. UAC is off, environment variable is set etc. Will not show in scripting prefs.

revert
05-29-2008, 01:45 PM
Does anyone have any further ideas? I'd like to get Python working for some scripts i use, in particular Roadkill.

mabxsi
05-29-2008, 01:55 PM
Does anyone have any further ideas? I'd like to get Python working for some scripts i use, in particular Roadkill.

Are you able to run any of the pywin32 tests?
e.g.
C:\Python26\Lib\site-packages\win32com\test>python testAXScript.py
..
----------------------------------------------------------------------
Ran 2 tests in 1.342s
OK
C:\Python26\Lib\site-packages\win32com\test>

In any case, try uninstalling all python software you have on your machine and start over again. Make sure you follow all instructions. You can also use sxstrace.exe to track down problem with bad installation.

-mab

revert
05-29-2008, 02:02 PM
Thanks for the reply mabxsi. Running the test, i do get an error, csscript.exe-Unable to locate Component. This application has failed to start because python26.dll was not found. Re-installing the application may fix this problem.

I have tried re-installing but it didn't help. As for python26.dll, it is in the C:\Python26 folder.

mabxsi
05-29-2008, 02:05 PM
Thanks for the reply mabxsi. Running the test, i do get an error, csscript.exe-Unable to locate Component. This application has failed to start because python26.dll was not found. Re-installing the application may fix this problem.

I have tried re-installing but it didn't help. As for python26.dll, it is in the C:\Python26 folder.

Looks like C:\Python26 is not in your system PATH.

-mab

revert
05-29-2008, 02:21 PM
You're right, i had made an error with the path. Silly me. Thanks for the help.

TBart
06-17-2008, 02:12 AM
Wow mab, thank you so much for this.

keks
09-07-2008, 09:15 PM
i can't still get it to work i followed all the threads :(

keks
09-07-2008, 09:39 PM
wow i was going crazy all night damn vista... i had to move the dll manually to system32 folder and now it shows the python and roadkill

GeneCrucean
09-07-2008, 10:53 PM
It looks like this site still links to the hacked python install.

Here are updated installers that work perfectly without the hacked pywin.

Download the proper version for your setup: 3.0b*
http://www.python.org/download/releases/3.0/

Direct: http://www.python.org/ftp/python/3.0/python-3.0b2.amd64.msi

Download pywin:
http://downloads.sourceforge.net/pywin32/pywin32-212.win-amd64-py2.6.exe?modtime=1217537366&big_mirror=0&filesize=6659180

Install both (python THEN pywin) and add "C:\Python" minus the quotes to the PATH system variable.

Done.

keks
09-07-2008, 10:59 PM
I got it working now with moving this dll to system32 folder.... now if I want to try your method do i need to uninstall the 2.x version first

keks
09-07-2008, 11:07 PM
pywin that you provided wont install on 3 beta ?

StephenBlair
09-08-2008, 06:09 AM
pywin that you provided wont install on 3 beta ?

What is "3 beta" ?

GeneCrucean
09-08-2008, 10:39 AM
pywin that you provided wont install on 3 beta ?
My post or Steve's?

FYI, I have both of the installers that I linked working perfectly on every machine at WB.

keks
09-08-2008, 10:47 AM
If you try to install that pywin that you liked to on that beta 3 release it wont let you it says you need 2.6.... I am on Vista 64 Ultimate

GeneCrucean
09-08-2008, 11:57 AM
Bummer dude. I don't know what to tell you.

We have both of those two exact installers installed on a bunch of MacPro's running Vista 64 Ultimate here.

Are you sure it's not vcredist_x64.exe you need? We needed to install that before pywin would install... but the error message was nothing like what you said. Ours just wouldn't let the pywin installer run.

edit: http://www.microsoft.com/downloads/details.aspx?FamilyID=90548130-4468-4bbc-9673-d6acabd5d13b&displaylang=en

keks
09-08-2008, 05:12 PM
it is ok i got it working with 2.6