Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModuleNotFoundError: No module named 'semantic_router.layer' #511

Open
swayanjeet opened this issue Jan 14, 2025 · 1 comment
Open

ModuleNotFoundError: No module named 'semantic_router.layer' #511

swayanjeet opened this issue Jan 14, 2025 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@swayanjeet
Copy link

swayanjeet commented Jan 14, 2025

After installing the "0.1.0.dev6" version of semantic router and then doing a
"from semantic_router.layer import RouteLayer" fails throwing the below error.
Traceback (most recent call last):
File "./semantic_router_test.py", line 26, in
from semantic_router.layer import RouteLayer
ModuleNotFoundError: No module named 'semantic_router.layer'

@jamescalam
Copy link
Member

We'll have a migration guide soon, but the solution is:

from semantic_router.routers import SemanticRouter

SemanticRouter is the new RouteLayer. We have also moved the old HybridRouterLayer to HybridRouter

@jamescalam jamescalam self-assigned this Jan 17, 2025
@jamescalam jamescalam added the question Further information is requested label Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants