scholarly icon indicating copy to clipboard operation
scholarly copied to clipboard

Client.__init__() got an unexpected keyword argument 'proxies'

Open lvndry opened this issue 7 months ago • 1 comments

Describe the bug when trying to fetch on google scholar I got an Client.__init__() got an unexpected keyword argument 'proxies' error

To Reproduce Dependency requirement "httpx>=0.28.0,<1.0.0" Try using scholary

Expected behavior Should work fine with latest httpx version

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • Proxy service: FreeProxies
  • python version: 3.11
  • OS: WSL
  • Version latest

Do you plan on contributing? Your response below will clarify whether the maintainers can expect you to fix the bug you reported.

  • [ ] Yes, I will create a Pull Request with the bugfix.

Additional context Add any other context about the problem here.

lvndry avatar Jun 09 '25 16:06 lvndry

This will be an issue with all proxies.

To anyone who finds this and isn't sure how to solve it. The httpx library no longer supports the proxies argument (as of v0.28.0). You can fix this by installing httpx==0.27.2

Something like this worked for me.

pip3 uninstall httpx
pip3 install httpx==0.27.2

hackmoore avatar Jun 26 '25 10:06 hackmoore