Jaymon / pout

Python pretty print on steroids
MIT License
29 stars 0 forks source link

resource module not available in windows #68

Closed alimoezzi closed 2 years ago

alimoezzi commented 3 years ago

pout uses resource module which is UNIX-specific. Consider using psustil which is cross platform.

Using this module on windows results in

Traceback (most recent call last):
  File "C:/Users/User/YandexDisk/myAI/myDL/tensorflow_dnn_classifier_estimator_cloud.py", line 3, in <module>
    import pout
  File "C:\Program Files\Python37\lib\site-packages\pout\__init__.py", line 42, in <module>
    from .interface import (
  File "C:\Program Files\Python37\lib\site-packages\pout\interface.py", line 9, in <module>
    import resource
ModuleNotFoundError: No module named 'resource'
Jaymon commented 2 years ago

This was fixed in v0.8.17 and above but it looks like I never pushed anything to pypi, sorry about that.

You can install it directly from github:

pip install -U "git+https://github.com/Jaymon/pout#egg=pout"

And I should have a new version pushed up to pypi shortly also.

You only lose the memory printing by not having resource and I don't think it's worth introducing a third party dependency for just that, I might change my mind if I ever develop on Windows though