Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

How to make it work in Win32

Help
o_wild
2013-01-04
2013-01-04
  • o_wild
    o_wild
    2013-01-04

    Hello. I'm new to icompile and python. I installed python 2.7 and icompile 0.5.16 and found it very hard to use in Windows. I get the following result.
    Traceback (most recent call last):
    File "c:\python27\icompile.py", line 26, in <module>
    from ice.depend import
    File "c:\python27\ice\depend.py", line 16, in <module>
    from .variables import

    File "c:\python27\ice\variables.py", line 9, in <module>
    from .library import *
    File "c:\python27\ice\library.py", line 105, in <module>
    isOSX = (os.uname()[0] == 'Darwin')
    AttributeError: 'module' object has no attribute 'uname'
    My OS is Windows. And I run 'import os, os.uname' in the python console and get the following message.
    'module' object has no attribute 'uname'
    So, I change 'uname()[]' to 'name' and get the following.
    Current Directory: F:\<mysource> Contains 10 directories ( ...)
    Subdirectories contain 108 C++ files (Abbr.cpp, About.cpp, Annotations.cpp, As
    sist.cpp, ...)
    Are you sure you want to run iCompile in your home directory? (Y/N) <I enter="" Y="">
    Traceback (most recent call last):
    File "c:\python27\icompile.py", line 1222, in <module>
    ret = icompile('.', sys.argv[1:])
    File "c:\python27\icompile.py", line 1143, in icompile
    state = getConfigurationState(args)
    File "c:\python27\ice\doticompile.py", line 421, in getConfigurationState
    processProjectFile(state)
    File "c:\python27\ice\doticompile.py", line 287, in processProjectFile
    _processDotICompile(state, config)
    File "c:\python27\ice\doticompile.py", line 256, in _processDotICompile
    if os.path.exists(state.preferenceFile()):
    File "c:\python27\ice\variables.py", line 415, in preferenceFile
    HOME = os.environ['HOME']
    File "C:\Python27\lib\os.py", line 423, in getitem
    return self.data[key.upper()]
    KeyError: 'HOME'
    I found that 'HOME' isn't one of my environment varibles, but the combination of 'HOMEDRIVE' and 'HOMEPATH' is the equivalent, I suppose. So I changed them.
    Finally, it can run on my computer. However, it failed to found the right compiler. My compiler is VC10 but it says VC8 can not found.
    What should I change next?

    best regards,
    Wilde

     
    Last edit: o_wild 2013-01-04
    • Morgan McGuire
      Morgan McGuire
      2013-01-04

      We never finished adding Windows support to icompile. We're currently
      working on 64-bit gcc support and then clang; MSVC12 is a logical next
      target. The changes that you've made are useful for going in that
      direction.

      If you'd like to help out, the latest version of icompile is 0.5.18
      and it is stored in the G3D repository:

      svn checkout svn://svn.code.sf.net/p/g3d/code/G3D9/bin/

      and primarily discussed on the G3D developer list,
      g3d-developers@groups.google.com, these days.

      -m

      Prof. Morgan McGuire
      Computer Science Department
      Williams College
      http://cs.williams.edu/~morgan

      On Fri, Jan 4, 2013 at 2:43 AM, o_wild wild78@users.sf.net wrote:

      Hello. I'm new to icompile and python. I installed python 2.7 and icompile
      0.5.16 and found it very hard to use in Windows. I get the following result.
      Traceback (most recent call last):
      File "c:\python27\icompile.py", line 26, in
      from ice.depend import
      File "c:\python27\ice\depend.py", line 16, in
      from .variables import
      File "c:\python27\ice\variables.py", line 9, in
      from .library import *
      File "c:\python27\ice\library.py", line 105, in
      isOSX = (os.uname()[0] == 'Darwin')
      AttributeError: 'module' object has no attribute 'uname'
      My OS is Windows. And I run 'import os, os.uname' in the python console and
      get the following message.
      'module' object has no attribute 'uname'
      So, I change 'uname()[]' to 'name' and get the following.
      Current Directory: F:\<mysource> Contains 10 directories ( ...)
      Subdirectories contain 108 C++ files (Abbr.cpp, About.cpp, Annotations.cpp,
      As
      sist.cpp, ...)
      Are you sure you want to run iCompile in your home directory? (Y/N)
      Traceback (most recent call last):
      File "c:\python27\icompile.py", line 1222, in
      ret = icompile('.', sys.argv[1:])
      File "c:\python27\icompile.py", line 1143, in icompile
      state = getConfigurationState(args)
      File "c:\python27\ice\doticompile.py", line 421, in getConfigurationState
      processProjectFile(state)
      File "c:\python27\ice\doticompile.py", line 287, in processProjectFile
      _processDotICompile(state, config)
      File "c:\python27\ice\doticompile.py", line 256, in _processDotICompile
      if os.path.exists(state.preferenceFile()):
      File "c:\python27\ice\variables.py", line 415, in preferenceFile
      HOME = os.environ['HOME']
      File "C:\Python27\lib\os.py", line 423, in getitem
      return self.data[key.upper()]
      KeyError: 'HOME'
      I found that 'HOME' isn't one of my environment varibles, but the
      combination of 'HOMEDirve' and 'HOMEPATH' is the equivalent, I suppose. So I
      changed them.
      Finally, it can run on my computer. However, it failed to found the right
      compiler. My compiler is VC10 but it says VC8 can not found.
      What should I change next?

      best regards,
      Wilde


      How to make it work in Win32


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/ice/discussion/340967/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/prefs/