deshaw / pyflyby

A set of productivity tools for Python
https://deshaw.github.io/pyflyby/
Other
358 stars 52 forks source link

Pyflyby is not supported on windows? #79

Open BeBopping opened 4 years ago

BeBopping commented 4 years ago

I suspect that pyflyby is not supported in a windows environment based on the following reliance on pwd. Is that correct? Is it possible to support windows users down the line?

In [2]: import pyflyby
---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-2-4a427bf4f5ff> in <module>
----> 1 import pyflyby

c:\users\isaia\appdata\local\programs\python\python37\lib\site-packages\pyflyby\__init__.py in <module>
      8 from   pyflyby._autoimp         import (auto_eval, auto_import,
      9                                         find_missing_imports)
---> 10 from   pyflyby._dbg             import (add_debug_functions_to_builtins,
     11                                         attach_debugger, debug_on_exception,
     12                                         debug_statement, debugger,

c:\users\isaia\appdata\local\programs\python\python37\lib\site-packages\pyflyby\_dbg.py in <module>
     11 from   functools                import wraps
     12 import os
---> 13 import pwd
     14 import signal
     15 import sys

ModuleNotFoundError: No module named 'pwd'
gamis commented 3 years ago

Yikes, no comment or progress in a year? If it's just an issue of wrapping a few imports in try/except, I can make a PR, but is there anyone actively maintaining this library? @scopatz ?

gamis commented 3 years ago

I tried just ignoring the import errors (specifically for packages pwd, tty, and os.uname ), but it seems that pyflyby doesn't work even then.

Carreau commented 3 years ago

Thanks for asking for updates, we are doing our best but supporting windows, though is not straightforward. It is maintained (last commit is from 10 days ago), and currently bugfixes and working platforms are the main focus when possible.

Few of the devs and users uses windows, which unfortunately create a negative feedback loop, but we can look into making this a higher priority.

gamis commented 3 years ago

Especially now that an increasing number of Windows users are running python under WSL, I can see why it wouldn't be at the top of your list!

jeremy-feng commented 1 year ago

3 years later but still no progress on this issue? Windows users also need this useful tool! 🙏