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

no entries under groq_model.... TypeError: Client.__init__() got an unexpected keyword argument 'proxies' #172

Open
tazztone opened this issue Jan 20, 2025 · 6 comments

Comments

@tazztone
Copy link

tazztone commented Jan 20, 2025

had no entries under groq models suddenly:
Image
(tested gpt4o-mini: still working)

so i tried updating plush in manager and got this in terminal claiming node is dirty (?)

Updating: Plush-for-ComfyUISTASH: 'C:\_stability_matrix\Data\Packages\ComfyUI\custom_nodes\Plush-for-ComfyUI' is dirty.
CUSTOM NODE PULL: Success
Install: pip packages
[ComfyUI-Manager] 'numpy' is remapped to 'numpy<2'

anyway: restarting comfy and i still find this:

HTTP Request: GET https://api.openai.com/v1/models "HTTP/1.1 200 OK"
[ERROR] An error occurred while retrieving information for the 'Enhancer' node.
Traceback (most recent call last):
  File "C:\_stability_matrix\Data\Packages\ComfyUI\server.py", line 573, in get_object_info
    out[x] = node_info(x)
  File "C:\_stability_matrix\Data\Packages\ComfyUI\server.py", line 540, in node_info
    info['input'] = obj_class.INPUT_TYPES()
  File "C:\_stability_matrix\Data\Packages\ComfyUI\custom_nodes\Plush-for-ComfyUI\style_prompt.py", line 652, in INPUT_TYPES
    cFig=cFigSingleton()
  File "C:\_stability_matrix\Data\Packages\ComfyUI\custom_nodes\Plush-for-ComfyUI\style_prompt.py", line 73, in __new__
    cls._instance.get_file()
  File "C:\_stability_matrix\Data\Packages\ComfyUI\custom_nodes\Plush-for-ComfyUI\style_prompt.py", line 163, in get_file
    self._groq_models = self._model_fetch.fetch_models(RequestMode.GROQ, self._groq_key)
  File "C:\_stability_matrix\Data\Packages\ComfyUI\custom_nodes\Plush-for-ComfyUI\fetch_models.py", line 325, in fetch_models
    return self.strategy.fetch_models(key, api_obj, **kwargs)
  File "C:\_stability_matrix\Data\Packages\ComfyUI\custom_nodes\Plush-for-ComfyUI\fetch_models.py", line 174, in fetch_models
    client = api_obj(api_key=key)
  File "C:\_stability_matrix\Data\Packages\ComfyUI\venv\lib\site-packages\groq\_client.py", line 99, in __init__
    super().__init__(
  File "C:\_stability_matrix\Data\Packages\ComfyUI\venv\lib\site-packages\groq\_base_client.py", line 824, in __init__
    self._client = http_client or SyncHttpxClientWrapper(
  File "C:\_stability_matrix\Data\Packages\ComfyUI\venv\lib\site-packages\groq\_base_client.py", line 722, in __init__
    super().__init__(**kwargs)
TypeError: Client.__init__() got an unexpected keyword argument 'proxies'

tried deleting plush node and reinstalling and still having the same issue.

PS: not sure if it has anything to do with it but manager shows unknown version:
Image

@glibsonoran
Copy link
Owner

glibsonoran commented Jan 20, 2025

I'm not able to look at it right now, but I will later this morning. Is this your first install of Plush?

Also you might try putting an 'x' in front of your groq environment variable name xGROQ_API_KEY (or just remove it). That should keep the app from trying to fetch the Groq models. See if you still get the error.

@tazztone
Copy link
Author

no i was using it before with great success. not sure what caused it to break tbh

i put x to env. var.
but still get the error upon workflow loading.

[ERROR] An error occurred while retrieving information for the 'Enhancer' node.
Traceback (most recent call last):
  File "C:\_stability_matrix\Data\Packages\ComfyUI\[server.py](https://github.com/glibsonoran/Plush-for-ComfyUI/issues/server.py)", line 573, in get_object_info
    out[x] = node_info(x)
  File "C:\_stability_matrix\Data\Packages\ComfyUI\[server.py](https://github.com/glibsonoran/Plush-for-ComfyUI/issues/server.py)", line 540, in node_info
    info['input'] = obj_class.INPUT_TYPES()
  File "C:\_stability_matrix\Data\Packages\ComfyUI\custom_nodes\Plush-for-ComfyUI\[style_prompt.py](https://github.com/glibsonoran/Plush-for-ComfyUI/issues/style_prompt.py)", line 652, in INPUT_TYPES
    cFig=cFigSingleton()
  File "C:\_stability_matrix\Data\Packages\ComfyUI\custom_nodes\Plush-for-ComfyUI\[style_prompt.py](https://github.com/glibsonoran/Plush-for-ComfyUI/issues/style_prompt.py)", line 73, in __new__
    cls._instance.get_file()
  File "C:\_stability_matrix\Data\Packages\ComfyUI\custom_nodes\Plush-for-ComfyUI\[style_prompt.py](https://github.com/glibsonoran/Plush-for-ComfyUI/issues/style_prompt.py)", line 163, in get_file
    self._groq_models = self._model_fetch.fetch_models(RequestMode.GROQ, self._groq_key)
  File "C:\_stability_matrix\Data\Packages\ComfyUI\custom_nodes\Plush-for-ComfyUI\[fetch_models.py](https://github.com/glibsonoran/Plush-for-ComfyUI/issues/fetch_models.py)", line 325, in fetch_models
    return self.strategy.fetch_models(key, api_obj, **kwargs)
  File "C:\_stability_matrix\Data\Packages\ComfyUI\custom_nodes\Plush-for-ComfyUI\[fetch_models.py](https://github.com/glibsonoran/Plush-for-ComfyUI/issues/fetch_models.py)", line 174, in fetch_models
    client = api_obj(api_key=key)
  File "C:\_stability_matrix\Data\Packages\ComfyUI\venv\lib\site-packages\groq\_client.py", line 99, in __init__
    super().__init__(
  File "C:\_stability_matrix\Data\Packages\ComfyUI\venv\lib\site-packages\groq\_base_client.py", line 824, in __init__
    self._client = http_client or SyncHttpxClientWrapper(
  File "C:\_stability_matrix\Data\Packages\ComfyUI\venv\lib\site-packages\groq\_base_client.py", line 722, in __init__
    super().__init__(**kwargs)
TypeError: Client.__init__() got an unexpected keyword argument 'proxies'

@glibsonoran
Copy link
Owner

glibsonoran commented Jan 20, 2025

I thought I remembered this from an earlier issue. This is a rare combination of two libraries that have a bad interaction.
Take a look at the thread for this issue it should give you the guidance you need to fix your problem.

Basically you're going to need to change your version of the httpx library.

@tazztone
Copy link
Author

thank you .
sorry should have done my due diligence searching existing issues better i guess

@glibsonoran
Copy link
Owner

No worries my friend. I'm glad it's working for you, enjoy! 👍

@tazztone
Copy link
Author

downgraded httpx to 0.25.1 as suggested. confirmed working

@glibsonoran glibsonoran reopened this Jan 28, 2025
@glibsonoran glibsonoran pinned this issue Jan 28, 2025
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

2 participants