GitHub Issue Body:
Hello Zonos Team,
First, thank you for your incredible work on this high-quality TTS model. I'm trying to use it in a project but have run into a persistent import issue on a standard Windows environment.
Despite a successful installation using uv, I'm consistently unable to import the Zonos class.
Environment:
OS: Windows 10/11
Python Version: 3.12.11
Installation Tool: uv (installed via pip)
Zonos Version: 0.1.0
Bug Description:
After cloning the repository and installing dependencies into a virtual environment using uv pip install ., any attempt to import the Zonos class results in ImportError: cannot import name 'Zonos' from 'zonos' (unknown location).
Steps to Reproduce:
On a clean Windows environment with Python 3.12, install uv:
Bash
pip install uv
Clone the repository:
Bash
git clone https://github.com/Zyphra/Zonos.git
Navigate into the project directory:
Bash
cd Zonos
Create and activate a virtual environment:
Bash
uv venv
.venv\Scripts\activate
Install the package using a standard (non-editable) install:
Bash
uv pip install .
Create a simple test file named test.py in the same directory with the following content:
Python
print("Attempting to import Zonos...")
try:
from zonos import Zonos
print("Successfully imported Zonos.")
except ImportError as e:
print(f"Failed to import Zonos: {e}")
Run the test script:
Bash
python test.py
Expected Behavior:
The script should print "Successfully imported Zonos." without any errors.
Actual Behavior:
The script fails with the following traceback:
Attempting to import Zonos...
Failed to import Zonos: cannot import name 'Zonos' from 'zonos' (unknown location)
Troubleshooting Steps Taken:
I have tried numerous approaches to resolve this, all of which resulted in the same error:
Editable vs. Regular Install: Both uv pip install -e . and uv pip install . produce the same import error.
Running Location: Running the script from inside the project root (Zonos/) and from an external parent directory both fail.
Manual Dependency Installation: Manually installing additional packages like flask and scipy into the virtual environment works correctly, but the import for zonos itself remains broken.
Alternative Imports: Attempts to import other potential classes like from zonos.manager import TTSManager also failed with ModuleNotFoundError: No module named 'zonos.manager', suggesting the package's structure is not being correctly recognized by the interpreter.
Based on the persistent (unknown location) message across different installation methods, this seems to be a packaging issue or an incompatibility specifically with how the library is structured and how it's being resolved by Python 3.12 on Windows.
Thank you for your time and for looking into this. I'm happy to provide any further information or run additional tests if needed.
GitHub Issue Body:
Hello Zonos Team,
First, thank you for your incredible work on this high-quality TTS model. I'm trying to use it in a project but have run into a persistent import issue on a standard Windows environment.
Despite a successful installation using uv, I'm consistently unable to import the Zonos class.
Environment:
OS: Windows 10/11
Python Version: 3.12.11
Installation Tool: uv (installed via pip)
Zonos Version: 0.1.0
Bug Description:
After cloning the repository and installing dependencies into a virtual environment using uv pip install ., any attempt to import the Zonos class results in ImportError: cannot import name 'Zonos' from 'zonos' (unknown location).
Steps to Reproduce:
On a clean Windows environment with Python 3.12, install uv:
Bash
pip install uv
Clone the repository:
Bash
git clone https://github.com/Zyphra/Zonos.git
Navigate into the project directory:
Bash
cd Zonos
Create and activate a virtual environment:
Bash
uv venv
.venv\Scripts\activate
Install the package using a standard (non-editable) install:
Bash
uv pip install .
Create a simple test file named test.py in the same directory with the following content:
Python
print("Attempting to import Zonos...")
try:
from zonos import Zonos
print("Successfully imported Zonos.")
except ImportError as e:
print(f"Failed to import Zonos: {e}")
Run the test script:
Bash
python test.py
Expected Behavior:
The script should print "Successfully imported Zonos." without any errors.
Actual Behavior:
The script fails with the following traceback:
Attempting to import Zonos...
Failed to import Zonos: cannot import name 'Zonos' from 'zonos' (unknown location)
Troubleshooting Steps Taken:
I have tried numerous approaches to resolve this, all of which resulted in the same error:
Editable vs. Regular Install: Both uv pip install -e . and uv pip install . produce the same import error.
Running Location: Running the script from inside the project root (Zonos/) and from an external parent directory both fail.
Manual Dependency Installation: Manually installing additional packages like flask and scipy into the virtual environment works correctly, but the import for zonos itself remains broken.
Alternative Imports: Attempts to import other potential classes like from zonos.manager import TTSManager also failed with ModuleNotFoundError: No module named 'zonos.manager', suggesting the package's structure is not being correctly recognized by the interpreter.
Based on the persistent (unknown location) message across different installation methods, this seems to be a packaging issue or an incompatibility specifically with how the library is structured and how it's being resolved by Python 3.12 on Windows.
Thank you for your time and for looking into this. I'm happy to provide any further information or run additional tests if needed.