Can not execute test.py in test file
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 670
- Forks
- 219
- Avg merge
- 8d 2h
- Merged PRs (30d)
- 1
Description
Anyone has issue with test.py? When I execute the file, the console tells me that the No module named 'cmake_example'. Any one knows how to deal with this problem?
Traceback (most recent call last):
File "/Users/jiaqimo/cmake_example/tests/test.py", line 1, in
import cmake_example as m
ModuleNotFoundError: No module named 'cmake_example'
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with tests/test.py and the repository's CMake-based build setup, then reproduce the reported import failure for cmake_example. Determine how the example is expected to be built and made importable before running the test; done means test.py runs without the reported ModuleNotFoundError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake, cpp, python
- Domain
- build-system, testing
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100