Skip to content

attic install fails on windows due to known issue with "os.uname"; fix included #188

@jumper444

Description

@jumper444

Attempt to install attic on windows xp machine (see command lines below) results in error due to use of "os.uname". (Environment: Windows XP sp3, fresh python 3.4.2.msi install from "python.org/downloads/windows)

Investigation finds that this is a known problem and that "os.uname" should not be used since it does not exist/function on Windows:
http://bugs.python.org/issue8080

Instead this report says use "platform.uname".
Can the Attic module be modified to use platform.uname thus allowing Windows installation?
Is there something I'm missing otherwise or a workaround?


PIP INSTALL BELOW


C:\Python34>python -m pip install attic
Downloading/unpacking attic
  Running setup.py (path:t:\windows\pip_build_x\attic\setup.py) egg_info for pac
kage attic
    Traceback (most recent call last):
      File "<string>", line 17, in <module>
      File "t:\windows\pip_build_x\attic\setup.py", line 12, in <module>
        platform = os.uname()[0]
    AttributeError: 'module' object has no attribute 'uname'
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 17, in <module>

  File "t:\windows\pip_build_x\attic\setup.py", line 12, in <module>

    platform = os.uname()[0]

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions