infiniflow / infiniflow/infinity
[Bug]: ModuleNotFoundError: Cannot import infinity_sdk on WSL2 Ubuntu 24.04 (Noble)
- Dominant language
- C++
- Stars
- 4.7k
- Forks
- 445
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 7
Description
### Is there an existing issue for the same bug?
- [x] I have checked the existing issues.
### Version or Commit ID
nightly
### Other environment information
```Markdown
```
### Actual behavior and How to reproduce it
Hello,
I am experiencing a persistent `ModuleNotFoundError: No module named 'infinity_sdk'` on a clean WSL2 Ubuntu 24.04 environment.
**System Details:**
* OS: Ubuntu 24.04 on WSL2
* Architecture: x86_64
* Python Versions Tested: 3.12 and 3.11
**Problem Description:**
I have tried exhaustively to debug this issue. The installation of `infinity-sdk` via `pip` completes successfully inside a clean virtual environment (`venv`). The `pip` command and `sys.path` checks confirm that the package is installed in the correct `site-packages` directory and that the Python interpreter is looking in that directory.
However, running `import infinity_sdk` consistently fails with `ModuleNotFoundError`.
**Crucial Diagnostic Step:**
To confirm my system environment is working correctly, I created a separate, clean venv with Python 3.11 and successfully installed and imported the `pandas` library (`version 2.3.1`). This proves my WSL2 and Python setup can handle complex packages with C-extensions.
The issue appears to be specific to the `infinity-sdk` package or one of its dependencies (other than pandas/numpy) on this platform. The entire debugging process suggests a potential incompatibility or a silent import failure within the package itself.
Could you please advise on what might be causing this issue? Thank you.
### Expected behavior
_No response_
### Additional information
_No response_
Contributor guide
Research direction
Start by reproducing the import failure in a clean WSL2 Ubuntu 24.04 virtual environment with Python 3.11 and 3.12, comparing the successful pandas installation with infinity-sdk. Trace why pip-installed infinity-sdk cannot be imported; done means the package imports successfully or the platform incompatibility and its cause are documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100