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

crewai run --> "Using SOCKS proxy, but the 'socksio' package is not installed." #218

Open
chenggangqcg opened this issue Jan 15, 2025 · 1 comment

Comments

@chenggangqcg
Copy link

I'm testing the template "Similar Company Finder", follow the README.md. I already installed https & socksio packages. But I got the error while running "crewai run":

similar-company-finder % crewai run
Running the Crew
Traceback (most recent call last):
  File "/Users/doudou/project/crewAI/workspace/similar-company-finder/.venv/bin/run_crew", line 5, in <module>
    from similar_company_finder_template.main import run
  File "/Users/doudou/project/crewAI/workspace/similar-company-finder/src/similar_company_finder_template/main.py", line 4, in <module>
    from similar_company_finder_template.crew import SimilarCompanyFinderTemplateCrew
  File "/Users/doudou/project/crewAI/workspace/similar-company-finder/src/similar_company_finder_template/crew.py", line 3, in <module>
    from crewai import Agent, Crew, Process, Task
  File "/Users/doudou/project/crewAI/workspace/similar-company-finder/.venv/lib/python3.12/site-packages/crewai/__init__.py", line 2, in <module>
    from crewai.agent import Agent
  File "/Users/doudou/project/crewAI/workspace/similar-company-finder/.venv/lib/python3.12/site-packages/crewai/agent.py", line 12, in <module>
    from crewai.llm import LLM
  File "/Users/doudou/project/crewAI/workspace/similar-company-finder/.venv/lib/python3.12/site-packages/crewai/llm.py", line 5, in <module>
    import litellm
  File "/Users/doudou/project/crewAI/workspace/similar-company-finder/.venv/lib/python3.12/site-packages/litellm/__init__.py", line 280, in <module>
    module_level_aclient = AsyncHTTPHandler(timeout=request_timeout)
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/doudou/project/crewAI/workspace/similar-company-finder/.venv/lib/python3.12/site-packages/litellm/llms/custom_httpx/http_handler.py", line 38, in __init__
    self.client = self.create_client(
                  ^^^^^^^^^^^^^^^^^^^
  File "/Users/doudou/project/crewAI/workspace/similar-company-finder/.venv/lib/python3.12/site-packages/litellm/llms/custom_httpx/http_handler.py", line 57, in create_client
    return httpx.AsyncClient(
           ^^^^^^^^^^^^^^^^^^
  File "/Users/doudou/project/crewAI/workspace/similar-company-finder/.venv/lib/python3.12/site-packages/httpx/_client.py", line 1456, in __init__
    else self._init_proxy_transport(
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/doudou/project/crewAI/workspace/similar-company-finder/.venv/lib/python3.12/site-packages/httpx/_client.py", line 1509, in _init_proxy_transport
    return AsyncHTTPTransport(
           ^^^^^^^^^^^^^^^^^^^
  File "/Users/doudou/project/crewAI/workspace/similar-company-finder/.venv/lib/python3.12/site-packages/httpx/_transports/default.py", line 319, in __init__
    raise ImportError(
ImportError: Using SOCKS proxy, but the 'socksio' package is not installed. Make sure to install httpx using `pip install httpx[socks]`.
An error occurred while running the crew: Command '['uv', 'run', 'run_crew']' returned non-zero exit status 1.
@chenggangqcg
Copy link
Author

/Users/XXX/miniconda3/envs/crewai/lib/python3.12/site-packages
This package path isn't included in crewai's virtual env's package path. Is this a bug of crewai command?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant