menu
Channels
# All channels
view-forward
# General
view-forward
# Meta
view-forward
# News
view-forward
Team

Gauge is not finding any of my step implementation files

November 5, 2020 at 8:24pm
The Gauge community has a new home. This thread is preserved for historical purposes. The content of this conversation may be innaccurrate or out of date. Go to new community home →

Gauge is not finding any of my step implementation files

November 5, 2020 at 8:24pm (Edited 3 months ago)
After updating from python 3.6.5 to 3.7.9, gauge is no longer able to find any of the step implementation files. Here is the error that repeates for every python file in step_impl:
Python: 3.7.9
Exception occurred while loading step implementations from file: step_impl\product\feature_functionality\device\feature1\feature1_step_impl.py.
Traceback (most recent call last):
File "C:\Users\user\AppData\Local\Programs\Python\Python37\lib\site-packages\getgauge\impl_loader.py", line 65, in _import_file
m = importlib.import_module(module_name)
File "C:\Users\user\AppData\Local\Programs\Python\Python37\lib\importlib\__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 965, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'step_impl.product'
Version Information:
Gauge version: 1.1.5
Commit Hash: f455126
## Plugins
flash (0.0.2)
html-report (4.0.12)
json-report (0.3.5)
python (0.3.12)
screenshot (0.0.1)

November 6, 2020 at 5:02am
I could run the sample project fine with python3.7 in windows.. can you please try reinstalling getgauge package ? pip uninstall getgauge pip install getgauge
  • reply
  • like

November 6, 2020 at 2:06pm
yes I've tried that already but no luck. It seems like something got mixed up when upgrading from python 3.6 to python 3.7.
Edited
  • reply
  • like
  • reply
  • like
I did a reinstall of everything including python 3.7 and everything seems to be working ok except the vscode plugin is alerting me that all of my concept files are duplicates which I don't actually have any duplicates.
  • reply
  • like
I jumped back to gauge version 1.1.4 and gauge is no longer flagging duplicates. The possible issue may have been introduced in version 1.1.5 from https://github.com/getgauge/gauge/pull/1780
Edited
  • reply
  • like
I'm getting the original error again. I'll continue to dig in to see if I can find the root cause. It seemed to be resolved after a fresh install of everything but now the issue is back.
  • reply
  • like

November 9, 2020 at 6:19am
(pmcphailwat) Could you please provide a sample project where this issue is replicable? It will help us troubleshoot the error quicker.
  • reply
  • like

November 9, 2020 at 2:18pm
I cant try to create a sample project, however, today when I pulled up my project I don't see the issue. The problem seems to be intermittent which will probably make it difficult to create a sample project. I'll do what I can to consistently recreate it.
Edited
  • reply
  • like

November 10, 2020 at 5:23am
I saw a similar issue but it went away when i downgraded to Gauge 1.1.4
  • reply
  • like