ImperialCollegeLondon / ImperialCollegeLondon/sharpy

No module named 'sharpy.home'

Open
#207 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
191
Forks
69
PR merge metrics
No merged PRs in 30d

Description

This error occurs when trying to run the command "sharpy simple_HALE.sharpy" while following the instructions on HALE example page.
Distro: Windows11 WSL2 Ubuntu
Python: IntelPython from OneAPI (Sharpy_env correctly configured)
Compilers: g++, gfortran

Traceback (most recent call last):
File "/home/fdc/intel/oneapi/intelpython/latest/envs/sharpy_env/lib/python3.7/site-packages/sharpy/solvers/__init__.py", line 16, in
solver_interface.solvers[file] = importlib.import_module(import_path + "." + file)
File "/home/fdc/intel/oneapi/intelpython/latest/envs/sharpy_env/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 953, in _find_and_load_unlocked
File "", line 219, in _call_with_frames_removed
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 953, in _find_and_load_unlocked
File "", line 219, in _call_with_frames_removed
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 953, in _find_and_load_unlocked
File "", line 219, in _call_with_frames_removed
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 953, in _find_and_load_unlocked
File "", line 219, in _call_with_frames_removed
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 953, in _find_and_load_unlocked
File "", line 219, in _call_with_frames_removed
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 953, in _find_and_load_unlocked
File "", line 219, in _call_with_frames_removed
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 953, in _find_and_load_unlocked
File "", line 219, in _call_with_frames_removed
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 953, in _find_and_load_unlocked
File "", line 219, in _call_with_frames_removed
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 953, in _find_and_load_unlocked
File "", line 219, in _call_with_frames_removed
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 953, in _find_and_load_unlocked
File "", line 219, in _call_with_frames_removed
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 953, in _find_and_load_unlocked
File "", line 219, in _call_with_frames_removed
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 953, in _find_and_load_unlocked
File "", line 219, in _call_with_frames_removed
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 953, in _find_and_load_unlocked
File "", line 219, in _call_with_frames_removed
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 953, in _find_and_load_unlocked
File "", line 219, in _call_with_frames_removed
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 965, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'home'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/fdc/intel/oneapi/intelpython/latest/envs/sharpy_env/bin/sharpy", line 8, in
sys.exit(sharpy_run())
File "/home/fdc/intel/oneapi/intelpython/latest/envs/sharpy_env/lib/python3.7/site-packages/sharpy/sharpy_main.py", line 152, in sharpy_run
data = main(sys.argv)
File "/home/fdc/intel/oneapi/intelpython/latest/envs/sharpy_env/lib/python3.7/site-packages/sharpy/sharpy_main.py", line 43, in main
import sharpy.solvers
File "/home/fdc/intel/oneapi/intelpython/latest/envs/sharpy_env/lib/python3.7/site-packages/sharpy/solvers/__init__.py", line 18, in
solver_interface.solvers[file] = importlib.import_module('sharpy.' + import_path + "." + file)
File "/home/fdc/intel/oneapi/intelpython/latest/envs/sharpy_env/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named 'sharpy.home'

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the HALE example instructions and reproduce `sharpy simple_HALE.sharpy` in the reported Python 3.7 environment. Read `sharpy/solvers/__init__.py` and `sharpy/sharpy_main.py` around the import traceback; done means the HALE example starts without the reported `sharpy.home` import error.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.