python-gtmetrix icon indicating copy to clipboard operation
python-gtmetrix copied to clipboard

Getting error: No module named 'settings'

Open austinejose1516 opened this issue 3 years ago • 2 comments

python3 test.py
Traceback (most recent call last):
  File "/Users/austine/Coding/together-digital/apps/technical-report/test.py", line 1, in <module>
    from gtmetrix import *
  File "/opt/homebrew/lib/python3.10/site-packages/gtmetrix/__init__.py", line 1, in <module>
    from gtmetrix.interface import *
  File "/opt/homebrew/lib/python3.10/site-packages/gtmetrix/interface.py", line 1, in <module>
    import settings
ModuleNotFoundError: No module named 'settings'

Can somebody help me with this please. Thanks in advance.

austinejose1516 avatar Feb 15 '23 15:02 austinejose1516

If you want to see the directory_tree, make sure that settings module is install, you can do with "Package seedir" pip install seedir,

import seedir as sd path=" which folder you want to see" sd.seedir(path) That you can printout the structure of the folder. link: https://earnestt1234.github.io/seedir/seedir/index.html?ref=softhints.com

xiaohongzsy avatar Aug 26 '23 00:08 xiaohongzsy

Or you can pip install python-settings,this module provides you easy access to your config/settings properties from all your python modules. You can see the link with: https://pypi.org/project/python-settings/

xiaohongzsy avatar Aug 26 '23 03:08 xiaohongzsy