Skip to content

[Bug]: ModuleNotFoundError: Cannot import infinity_sdk on WSL2 Ubuntu 24.04 (Noble) #2902

@ying0515

Description

@ying0515

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Version or Commit ID

nightly

Other environment information

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions