LukeMathWalker / LukeMathWalker/linfa-python
poetry run pytest and module not found
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 13
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Description
`poetry run pytest`
==================================================================== test session starts ====================================================================
platform linux -- Python 3.8.1, pytest-5.3.5, py-1.8.1, pluggy-0.13.1
benchmark: 3.2.3 (defaults: timer=time.perf_counter disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 warmup=False warmup_iterations=100000)
rootdir: /home/frag/linfa-python
plugins: benchmark-3.2.3, asyncio-0.10.0
collected 0 items / 1 error
========================================================================== ERRORS ===========================================================================
__________________________________________________________ ERROR collecting tests/test_k_means.py ___________________________________________________________
ImportError while importing test module '/home/frag/linfa-python/tests/test_k_means.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
tests/test_k_means.py:5: in
from linfa import KMeans
linfa/__init__.py:1: in
from .LinfaKMeans import KMeans, WrappedKMeans
linfa/LinfaKMeans.py:6: in
from .linfa import WrappedKMeans
E ModuleNotFoundError: No module named 'linfa.linfa'
`rustc -V`
rustc 1.40.0-nightly (0e8a4b441 2019-10-16)
`uname -a`
Linux amx-dev-lap 5.3.0-7629-generic #31~1581628825~19.10~f90b7d5-Ubuntu SMP Fri Feb 14 19:56:45 UTC x86_64 x86_64 x86_64 GNU/Linux
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_k_means.py and trace the import through linfa/__init__.py and linfa/LinfaKMeans.py. Run poetry run pytest and inspect how the missing linfa.linfa module is produced or exposed; done means test collection proceeds without the ModuleNotFoundError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, rust
- Domain
- build-system, testing
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100