Skip to content

ModuleNotFoundError on Importing Installed lmstudio Package #40

@aviad-kardome

Description

@aviad-kardome

Title: ModuleNotFoundError on Importing Installed lmstudio Package

Description:

When installing the lmstudio package using pip and trying to import it in Python, I receive a ModuleNotFoundError. Below are the details to reproduce the issue.

Steps to Reproduce:

  1. Install the package:

    $ pip install lmstudio
  2. Try to import the package in a Python shell or script:

    import lmstudio as lms
  3. Observe the error:

    ModuleNotFoundError: No module named 'lmstudio'

Additional Information:

  • Checking the package metadata (via pip show lmstudio):

    Name: lmstudio
    Version: 0.0.1
    Summary: LM Studio API Python Client
    Home-page: 
    Author: LM Studio
    Author-email: [email protected]
    License: 
    Location: [c:\users\userk\anaconda3\envs\krdm\lib\site-packages](file:///C:/users/userk/anaconda3/envs/krdm/lib/site-packages)
    Requires: 
    Required-by:
  • In the site-packages folder, only an lmstudio-0.0.1.dist-info directory is present; the package folder lmstudio is missing.

Expected Behavior:

After installing, the lmstudio package should be importable without error.

Environment:

  • OS: Windows
  • Python version: 3.9.19
  • Installation via pip in an Anaconda environment

Any help on why the package folder might not be installed or how to resolve this issue is appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions