mirror of
https://github.com/XuehaiPan/nvitop.git
synced 2026-05-15 14:15:55 -06:00
[GH-ISSUE #12] [Bug] ModuleNotFoundError: No module named 'pwd' #11
Labels
No labels
api
bug
bug
cli / tui
dependencies
documentation
documentation
documentation
duplicate
enhancement
exporter
invalid
pull-request
pynvml
question
question
upstream
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/nvitop#11
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ghost on GitHub (Dec 23, 2021).
Original GitHub issue: https://github.com/XuehaiPan/nvitop/issues/12
Runtime Environment
3.8.10PyCharm 2021.3 (Professional Edition)nvitopversion or commit:0.5.2python-ml-pyversion:11.450.51zh_CN.UTF-8Current Behavior
When I type the
nvitopin console in pycharm, it repports the errorModuleNotFoundError: No module named 'pwd'.I have run
nvitopcorrectly when I install it.Expected Behavior
I want to use it for its great gui.
Context
Steps to Reproduce
1.In PyCharm IDE, switch to
consoleand typenvitop, and enter.Traceback
@XuehaiPan commented on GitHub (Dec 23, 2021):
@qjwzmy Thanks for the report!
I cannot reproduce this on my machine (Powershell / CMD / Git-Bash, and Python Console in PyCharm). Do you use a shell program other than above?
Could you try the following command in your terminal?
and
In
getpass(Python's built-in module):When your terminal emulator doesn't set
USERnorUSERNAME, Python will try to importpwd(Unix-like system only) to get the current user name.@XuehaiPan commented on GitHub (Dec 23, 2021):
@qjwzmy Hi, I add a new commit to address this (
56db1bf000).Could you try to reinstall
nvitopwith:@XuehaiPan commented on GitHub (Dec 26, 2021):
The potential fix (
56db1bf000) is now available in version 0.5.2.1 on PyPI.Thanks for the feedback from @qjwzmy! Feel free to reopen this issue if you have any other questions.