Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#19823 closed defect (fixed)

pwd not available on Windows

Reported by: trodun Owned by: atagar
Priority: Medium Milestone:
Component: Core Tor/Stem Version:
Severity: Normal Keywords:
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

The commit below breaks Windows support, the pwd module is only available on Unix.

https://gitweb.torproject.org/stem.git/commit/?id=4082270d068338fa01a433a9006a1073fc4d087b

ImportError: No module named 'pwd'
  File "run.py", line 141, in run_process
    start_app()
  File "run.py", line 39, in start_app
    from app.main import run_app
  File "E:\dev\prs\test\app\main.py", line 86, in <module>
    from app.network import net
  File "E:\dev\prs\test\app\network.py", line 13, in <module>
    from stem.control import Controller as StemCtrl
  File "e:\dev\prs\stem\stem\control.py", line 261, in <module>
    import stem.descriptor.microdescriptor
  File "e:\dev\prs\stem\stem\descriptor\__init__.py", line 51, in <module>
    import stem.util.system
  File "e:\dev\prs\stem\stem\util\system.py", line 62, in <module>
    import stem.util.proc
  File "e:\dev\prs\stem\stem\util\proc.py", line 53, in <module>
    import pwd

Child Tickets

Change History (3)

comment:1 Changed 3 years ago by atagar

Great catch, thanks! I'll try to get a fix out for this in the next day or so.

comment:2 Changed 3 years ago by atagar

Resolution: fixed
Status: newclosed

Fix pushed, thanks for the catch!

comment:3 Changed 3 years ago by trodun

It works well, thanks a lot for the fix!

Note: See TracTickets for help on using tickets.