René's URL Explorer Experiment


Title: ImportError: cannot import name 'ChatMessage' from 'llama_index.core.llms' (unknown location) · Issue #2 · techwithtim/PythonAgentAI · GitHub

Open Graph Title: ImportError: cannot import name 'ChatMessage' from 'llama_index.core.llms' (unknown location) · Issue #2 · techwithtim/PythonAgentAI

X Title: ImportError: cannot import name 'ChatMessage' from 'llama_index.core.llms' (unknown location) · Issue #2 · techwithtim/PythonAgentAI

Description: error: Traceback (most recent call last): File "/Users/ahmednadiir/Desktop/agency/main.py", line 4, in from llama_index.core.query_engine import PandasQueryEngine File "/Users/ahmednadiir/Desktop/agency/ai/lib/python3.11/site-pa...

Open Graph Description: error: Traceback (most recent call last): File "/Users/ahmednadiir/Desktop/agency/main.py", line 4, in from llama_index.core.query_engine import PandasQueryEngine File "/Users/ahmednadiir/...

X Description: error: Traceback (most recent call last): File "/Users/ahmednadiir/Desktop/agency/main.py", line 4, in <module> from llama_index.core.query_engine import PandasQueryEngine File &quo...

Opengraph URL: https://github.com/techwithtim/PythonAgentAI/issues/2

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ImportError: cannot import name 'ChatMessage' from 'llama_index.core.llms' (unknown location)","articleBody":"error:\r\n`Traceback (most recent call last):\r\n  File \"/Users/ahmednadiir/Desktop/agency/main.py\", line 4, in \u003cmodule\u003e\r\n    from llama_index.core.query_engine import PandasQueryEngine\r\n  File \"/Users/ahmednadiir/Desktop/agency/ai/lib/python3.11/site-packages/llama_index/__init__.py\", line 13, in \u003cmodule\u003e\r\n    from llama_index.callbacks.global_handlers import set_global_handler\r\n  File \"/Users/ahmednadiir/Desktop/agency/ai/lib/python3.11/site-packages/llama_index/callbacks/__init__.py\", line 7, in \u003cmodule\u003e\r\n    from .token_counting import TokenCountingHandler\r\n  File \"/Users/ahmednadiir/Desktop/agency/ai/lib/python3.11/site-packages/llama_index/callbacks/token_counting.py\", line 6, in \u003cmodule\u003e\r\n    from llama_index.utilities.token_counting import TokenCounter\r\n  File \"/Users/ahmednadiir/Desktop/agency/ai/lib/python3.11/site-packages/llama_index/utilities/token_counting.py\", line 6, in \u003cmodule\u003e\r\n    from llama_index.llms import ChatMessage, MessageRole\r\n  File \"/Users/ahmednadiir/Desktop/agency/ai/lib/python3.11/site-packages/llama_index/llms/__init__.py\", line 14, in \u003cmodule\u003e\r\n    from llama_index.llms.anyscale import Anyscale\r\n  File \"/Users/ahmednadiir/Desktop/agency/ai/lib/python3.11/site-packages/llama_index/llms/anyscale.py\", line 10, in \u003cmodule\u003e\r\n    from llama_index.llms.openai import OpenAI\r\n  File \"/Users/ahmednadiir/Desktop/agency/ai/lib/python3.11/site-packages/llama_index/llms/openai/__init__.py\", line 1, in \u003cmodule\u003e\r\n    from llama_index.llms.openai.base import AsyncOpenAI, OpenAI, SyncOpenAI, Tokenizer\r\n  File \"/Users/ahmednadiir/Desktop/agency/ai/lib/python3.11/site-packages/llama_index/llms/openai/base.py\", line 28, in \u003cmodule\u003e\r\n    from llama_index.core.callbacks import CallbackManager\r\n  File \"/Users/ahmednadiir/Desktop/agency/ai/lib/python3.11/site-packages/llama_index/core/callbacks/__init__.py\", line 4, in \u003cmodule\u003e\r\n    from .token_counting import TokenCountingHandler\r\n  File \"/Users/ahmednadiir/Desktop/agency/ai/lib/python3.11/site-packages/llama_index/core/callbacks/token_counting.py\", line 6, in \u003cmodule\u003e\r\n    from llama_index.core.utilities.token_counting import TokenCounter\r\n  File \"/Users/ahmednadiir/Desktop/agency/ai/lib/python3.11/site-packages/llama_index/core/utilities/token_counting.py\", line 6, in \u003cmodule\u003e\r\n    from llama_index.core.llms import ChatMessage, MessageRole\r\nImportError: cannot import name 'ChatMessage' from 'llama_index.core.llms' (/Users/ahmednadiir/Desktop/agency/ai/lib/python3.11/site-packages/llama_index/core/llms/__init__.py)`\r\n\r\n\r\ncode:\r\n`from dotenv import load_dotenv\r\nimport os\r\nimport pandas as pd\r\nfrom llama_index.core.query_engine import PandasQueryEngine\r\nfrom prompts import new_prompt, instruction_str\r\n\r\n\r\nload_dotenv()\r\n\r\n\r\n#my quran.json file\r\nquran_path = os.path.join('data', 'data.json');\r\n#load\r\nquran_df = pd.read_json(quran_path);\r\n\r\nquran_query_engine = PandasQueryEngine(df=quran_df, verbose=True, instruction_str=instruction_str);\r\nquran_query_engine.update_prompts({\"pandas_prompt\": new_prompt})\r\nquran_query_engine.query(\"how many total hasanat in the the whole quran\")`\r\n\r\nhelp me plz","author":{"url":"https://github.com/C0deXG","@type":"Person","name":"C0deXG"},"datePublished":"2024-02-20T04:00:15.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/2/PythonAgentAI/issues/2"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:b9838937-0bf8-1eca-e16c-ba3cbb399cc8
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD358:162B2:28BD745:3842AB8:6A4EFE80
html-safe-nonceee36bcfb64e7db39f3f75b3c47fe8b85c4c08c014d09d1db2deb713c5e2a5d43
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMzU4OjE2MkIyOjI4QkQ3NDU6Mzg0MkFCODo2QTRFRkU4MCIsInZpc2l0b3JfaWQiOiI1MzE3MjE4MjMyMDQ1NjAwMzg0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac581000ea8eae1c3404f5e450071ff1fb78239f22a04ae32fdf4773d9f76e4376
hovercard-subject-tagissue:2143496217
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/techwithtim/PythonAgentAI/2/issue_layout
twitter:imagehttps://opengraph.githubassets.com/4b5fe99c64429d7d2a2599cbb99e72bd196001d5a2cd9f1df9b68f91cf9bb02b/techwithtim/PythonAgentAI/issues/2
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/4b5fe99c64429d7d2a2599cbb99e72bd196001d5a2cd9f1df9b68f91cf9bb02b/techwithtim/PythonAgentAI/issues/2
og:image:alterror: Traceback (most recent call last): File "/Users/ahmednadiir/Desktop/agency/main.py", line 4, in from llama_index.core.query_engine import PandasQueryEngine File "/Users/ahmednadiir/...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameC0deXG
hostnamegithub.com
expected-hostnamegithub.com
Noneb92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9
turbo-cache-controlno-preview
go-importgithub.com/techwithtim/PythonAgentAI git https://github.com/techwithtim/PythonAgentAI.git
octolytics-dimension-user_id35348871
octolytics-dimension-user_logintechwithtim
octolytics-dimension-repository_id750367130
octolytics-dimension-repository_nwotechwithtim/PythonAgentAI
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id750367130
octolytics-dimension-repository_network_root_nwotechwithtim/PythonAgentAI
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release2b8f23afb982271f1b22258a94aede67a6b77760
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/techwithtim/PythonAgentAI/issues/2#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftechwithtim%2FPythonAgentAI%2Fissues%2F2
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftechwithtim%2FPythonAgentAI%2Fissues%2F2
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=techwithtim%2FPythonAgentAI
Reloadhttps://github.com/techwithtim/PythonAgentAI/issues/2
Reloadhttps://github.com/techwithtim/PythonAgentAI/issues/2
Reloadhttps://github.com/techwithtim/PythonAgentAI/issues/2
techwithtim https://github.com/techwithtim
PythonAgentAIhttps://github.com/techwithtim/PythonAgentAI
Notifications https://github.com/login?return_to=%2Ftechwithtim%2FPythonAgentAI
Fork 114 https://github.com/login?return_to=%2Ftechwithtim%2FPythonAgentAI
Star 161 https://github.com/login?return_to=%2Ftechwithtim%2FPythonAgentAI
Code https://github.com/techwithtim/PythonAgentAI
Issues 6 https://github.com/techwithtim/PythonAgentAI/issues
Pull requests 1 https://github.com/techwithtim/PythonAgentAI/pulls
Actions https://github.com/techwithtim/PythonAgentAI/actions
Projects https://github.com/techwithtim/PythonAgentAI/projects
Security and quality 0 https://github.com/techwithtim/PythonAgentAI/security
Insights https://github.com/techwithtim/PythonAgentAI/pulse
Code https://github.com/techwithtim/PythonAgentAI
Issues https://github.com/techwithtim/PythonAgentAI/issues
Pull requests https://github.com/techwithtim/PythonAgentAI/pulls
Actions https://github.com/techwithtim/PythonAgentAI/actions
Projects https://github.com/techwithtim/PythonAgentAI/projects
Security and quality https://github.com/techwithtim/PythonAgentAI/security
Insights https://github.com/techwithtim/PythonAgentAI/pulse
ImportError: cannot import name 'ChatMessage' from 'llama_index.core.llms' (unknown location)https://github.com/techwithtim/PythonAgentAI/issues/2#top
https://github.com/C0deXG
C0deXGhttps://github.com/C0deXG
on Feb 20, 2024https://github.com/techwithtim/PythonAgentAI/issues/2#issue-2143496217
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.