niazalikhan87 / qutip

Automatically exported from code.google.com/p/qutip
2 stars 1 forks source link

os.uname not supported by windows #10

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Download and install version 1.1.3-1 on windows 
2. from qutip import *

What is the expected output? What do you see instead?

Well should work, instead I get

C:\Python27\lib\site-packages\qutip\__init__.py in <module>()
     37 
     38 # check for windows platform

---> 39 if os.uname()[0] == "Windows":
     40     # graphics always available on windows

     41     os.environ['QUTIP_GRAPHICS']="YES"

AttributeError: 'module' object has no attribute 'uname'

As it turns out os.uname is not supported on windows plattforms (see 
http://docs.python.org/library/os.html#os.uname).

Python bug tracker suggest using plattform.uname() instead 
(http://bugs.python.org/issue8080).

Original issue reported on code.google.com by Markus.B...@gmail.com on 13 Dec 2011 at 6:11

GoogleCodeExporter commented 8 years ago
Markus,

Thanks for pointing this out.  It has been fixed.

Original comment by nonhermitian on 13 Dec 2011 at 7:08

GoogleCodeExporter commented 8 years ago
I think I will upload a new version of 1.1.3 tomorrow to address this issue.

Original comment by nonhermitian on 13 Dec 2011 at 12:22