Hi Chad. At work on my Vista 64bit PC. It seems that os.uname() fails all the time in all versions of vista Maya. And you can't import win32con without the module installed. Mark Jackson has just tried on 32bit Windows XP Maya 2009 SP1a, os.uname() fails as well. Also win32con but I'm sure that's because the following needs to be installed.
http://sourceforge.net/projects/pywin32/files/ My tests from vista NB... changed except: "no uname" to except: print "no uname" so it's clear Maya x86 2008 Ext 2 ------------------- no uname win32 no win32con Maya x64 2008 Ext 2 ------------------- no uname win32 no win32con Maya x64 2009 SP1A ------------------ no uname win32 no win32con My question is what are you trying to determin from each system? Would it be a good idea if the pywin modules came with windows maya python? So far our modules make assumptions based on python version. If it's 32bit we run our .Net module system with 32bit dlls etc? -Dave On Jul 9, 8:19 am, "[email protected]" <[email protected]> wrote: > here's the result from 64bit windows 7 > > import os > try: print os.uname() > except: "no uname" > > import sys > print sys.platform > > try:import win32con > except ImportError: print "no win32con" > > ## results ### > ## Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit > (Intel)] on win32>>> ================================ RESTART > ================================ > > win32 > no win32con > > > > When I get into work I'll do the same for my 64bit Vista PC > > -Dave > > On Jul 9, 1:32 am, chadrik <[email protected]> wrote: > > > os.rename failed on dave's test on Vista32. it looks like it might be > > a vista problem, because the origin bug was posted from a vista64 user. > > > On Jul 8, 2009, at 5:29 PM, Paul Molodowitch wrote: > > > > Yeah, it returned 'win32' > > > > More results: > > > > vista 64, maya2009x64: > > > ---------------------------------- > > > win32 > > > no win32con > > > > vista 64, maya2008x64: > > > ---------------------------------- > > > win32 > > > no win32con > > > > vista 64, maya2008x32: > > > ---------------------------------- > > > win32 > > > no win32con > > > > ...so far, all results are identical.- Hide quoted text - > > > - Show quoted text - > > --~--~---------~--~----~------------~-------~--~----~ http://groups.google.com/group/python_inside_maya -~----------~----~----~----~------~----~------~--~---
