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

[BUG] Name error during importing when camel is not installed #26

Open
dandansamax opened this issue Aug 31, 2024 · 0 comments
Open

[BUG] Name error during importing when camel is not installed #26

dandansamax opened this issue Aug 31, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@dandansamax
Copy link
Collaborator

What version of camel are you using?

0.1.2

System information

pass

Problem description

When camel extra is not installed, the type annotation in camel_model.py will cause Name Error.
https://github.com/camel-ai/crab/blob/48b6f4e66c8451f39cd7da5eeb785c5f9f935bd7/crab/agents/backend_models/camel_model.py

Reproducible example code

The Python snippets:

Command lines:

Extra dependencies:


Steps to reproduce:

Traceback

Traceback (most recent call last):
  File "/home/dandan/.pyenv/versions/3.10.12/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/home/dandan/.pyenv/versions/3.10.12/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/home/dandan/Programs/crab-publish/crab-benchmark-v0/main.py", line 27, in <module>
    from crab.agents.backend_models import ClaudeModel, GeminiModel, OpenAIModel
  File "/home/dandan/Programs/crab-publish/crab/agents/backend_models/__init__.py", line 15, in <module>
    from .camel_model import CamelModel
  File "/home/dandan/Programs/crab-publish/crab/agents/backend_models/camel_model.py", line 37, in <module>
    def find_model_platform_type(model_platform_name: str) -> ModelPlatformType:
NameError: name 'ModelPlatformType' is not defined

Expected behavior

No response

Additional context

No response

@dandansamax dandansamax added the bug Something isn't working label Aug 31, 2024
@WHALEEYE WHALEEYE linked a pull request Aug 31, 2024 that will close this issue
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants