question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ModuleNotFoundError: No module named 'Users.t'

See original GitHub issue

This error shows up even if I just run a simple script:

Снимок экрана 2021-10-08 в 01 27 10
t.lolaev@t-lolaev freaky-goblins % brownie run scripts/deploy.py 
Brownie v1.16.4 - Python development framework for Ethereum

FreakyGoblinsProject is the active project.

Launching 'ganache-cli --port 8545 --gasLimit 12000000 --accounts 10 --hardfork istanbul --mnemonic brownie'...
  File "brownie/_cli/run.py", line 49, in main
    return_value, frame = run(
  File "brownie/project/scripts.py", line 53, in run
    module = _import_from_path(script)
  File "brownie/project/scripts.py", line 149, in _import_from_path
    _import_cache[import_str] = importlib.import_module(import_str)
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen, line line, in in
  File "<frozen, line line, in in
  ...
  File "<frozen, line line, in in
  File "<frozen, line line, in in
ModuleNotFoundError: No module named 'Users.t'
Terminating local RPC client...

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:5
  • Comments:16

github_iconTop GitHub Comments

9reactions
bodasooqacommented, Oct 8, 2021

UPD

The problem is that my home directory is called t.lolaev. I solved the problem by moving the project outside of this directory (to the /Users folder)

Please fix this so that other users with a dot in the name of the home directory do not have such problems

1reaction
freddie71010commented, Feb 23, 2022

@fivetran-connorbrereton, take a look at CountZer0’s change here: https://github.com/eth-brownie/brownie/pull/1446 and try and implement that code change into ur brownie code and retry running things. Not sure if CountZer0’s change will work but it is probably worth a try.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ImportError: No module named 'users' - python - Stack Overflow
You get the import error because the users directory is not on the Python path. The easiest solution is to move the users...
Read more >
ModuleNotFoundError: No module named 'users'
Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'users' How to remove the ModuleNotFou.
Read more >
no module named django / python import error (If Installed / If ...
Fix ModuleNotFoundError ( no module named django) Python Import Error (If Installed / If Exists)#python #error #fix #fixed #howto Hey guys in ...
Read more >
ModuleNotFoundError: No module named 'django' - QueWorx
If you got the error “ModuleNotFoundError: No module named 'django'” it means that Python couldn't find your Django package. Here's the full error...
Read more >
Brownie "No Module named"Users"" error
To answer your question, I might need more information (just finished the same tutorial you are going through).
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found