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

[community][fix] Compatibility support to bump up wikibase-rest-api-client version #27316

Merged
merged 4 commits into from
Dec 16, 2024

Conversation

Rock2z
Copy link
Contributor

@Rock2z Rock2z commented Oct 13, 2024

Description:

This PR addresses the TypeError: sequence item 0: expected str instance, FluentValue found error when invoking WikidataQueryRun. The root cause was an incompatible version of the wikibase-rest-api-client, which caused the tool to fail when handling FluentValue objects instead of strings.

The current implementation only supports wikibase-rest-api-client<0.2, but the latest version is 0.2.1, where the current implementation breaks. Additionally, the error message advises users to install the latest version: code reference. Therefore, this PR updates the tool to support the latest version of wikibase-rest-api-client.

Key changes:

  • Updated the handling of FluentValue objects to ensure compatibility with the latest wikibase-rest-api-client.
  • Removed the restriction to wikibase-rest-api-client<0.2 and updated to support the latest version (0.2.1).

Issue:

Fixes #24093TypeError: sequence item 0: expected str instance, FluentValue found.

Dependencies:

  • Upgraded wikibase-rest-api-client to the latest version to resolve the issue.

Copy link

vercel bot commented Oct 13, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
langchain ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 16, 2024 4:22pm

@Rock2z
Copy link
Contributor Author

Rock2z commented Oct 13, 2024

Test report
Before:
image
After:
image

@Rock2z Rock2z marked this pull request as ready for review October 13, 2024 14:45
@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. community Related to langchain-community 🤖:bug Related to a bug, vulnerability, unexpected error with an existing feature labels Oct 13, 2024
@Rock2z
Copy link
Contributor Author

Rock2z commented Oct 13, 2024

Hi @hwchase17 @derenrich Could you help to take a look when you have time~ Many thanks in advance :)

@ccurme ccurme enabled auto-merge (squash) December 16, 2024 16:16
@ccurme ccurme merged commit 768e4a7 into langchain-ai:master Dec 16, 2024
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖:bug Related to a bug, vulnerability, unexpected error with an existing feature community Related to langchain-community size:S This PR changes 10-29 lines, ignoring generated files.
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

TypeError: sequence item 0: expected str instance, FluentValue found - Error while invoking WikidataQueryRun
3 participants