1"use strict";(globalThis.webpackChunkwebsite=globalThis.webpackChunkwebsite||[]).push([[9066],{7597(e,r,s){s.r(r),s.d(r,{assets:()=>a,contentTitle:()=>l,default:()=>d,frontMatter:()=>i,metadata:()=>n,toc:()=>c});const n=JSON.parse('{"id":"gpt-researcher/gptr/troubleshooting","title":"Troubleshooting","description":"We\'re constantly working to provide a more stable version. If you\'re running into any issues, please first check out the resolved issues or ask us via our Discord community.","source":"@site/docs/gpt-researcher/gptr/troubleshooting.md","sourceDirName":"gpt-researcher/gptr","slug":"/gpt-researcher/gptr/troubleshooting","permalink":"/docs/gpt-researcher/gptr/troubleshooting","draft":false,"unlisted":false,"editUrl":"https://github.com/assafelovic/gpt-researcher/tree/master/docs/docs/gpt-researcher/gptr/troubleshooting.md","tags":[],"version":"current","frontMatter":{},"sidebar":"docsSidebar","previous":{"title":"Automated Tests","permalink":"/docs/gpt-researcher/gptr/automated-tests"},"next":{"title":"Intro to the Frontends","permalink":"/docs/gpt-researcher/frontend/introduction"}}');var o=s(4848),t=s(8453);const i={},l="Troubleshooting",a={},c=[{value:"model: gpt-4 does not exist",id:"model-gpt-4-does-not-exist",level:3},{value:"cannot load library 'gobject-2.0-0'",id:"cannot-load-library-gobject-20-0",level:3},{value:"cannot load library 'pango'",id:"cannot-load-library-pango",level:3},{value:"Error processing the url",id:"error-processing-the-url",level:3},{value:"Chrome version issues",id:"chrome-version-issues",level:3}];function h(e){const r={a:"a",code:"code",h1:"h1",h3:"h3",header:"header",li:"li",p:"p",strong:"strong",ul:"ul",...(0,t.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(r.header,{children:(0,o.jsx)(r.h1,{id:"troubleshooting",children:"Troubleshooting"})}),"\n",(0,o.jsxs)(r.p,{children:["We're constantly working to provide a more stable version. If you're running into any issues, please first check out the resolved issues or ask us via our ",(0,o.jsx)(r.a,{href:"https://discord.gg/QgZXvJAccX",children:"Discord community"}),"."]}),"\n",(0,o.jsx)(r.h3,{id:"model-gpt-4-does-not-exist",children:"model: gpt-4 does not exist"}),"\n",(0,o.jsxs)(r.p,{children:["This relates to not having permission to use gpt-4 yet. Based on OpenAI, it will be ",(0,o.jsx)(r.a,{href:"https://help.openai.com/en/articles/7102672-how-can-i-access-gpt-4",children:"widely available for all by end of July"}),"."]}),"\n",(0,o.jsx)(r.h3,{id:"cannot-load-library-gobject-20-0",children:"cannot load library 'gobject-2.0-0'"}),"\n",(0,o.jsxs)(r.p,{children:["The issue relates to the library WeasyPrint (which is used to generate PDFs from the research report). Please follow this guide to resolve it: ",(0,o.jsx)(r.a,{href:"https://doc.courtbouillon.org/weasyprint/stable/first_steps.html",children:"https://doc.courtbouillon.org/weasyprint/stable/first_steps.html"})]}),"\n",(0,o.jsx)(r.p,{children:"Or you can install this package manually"}),"\n",(0,o.jsxs)(r.p,{children:["In case of MacOS you can install this lib using\n",(0,o.jsx)(r.code,{children:"brew install glib pango"}),"\nIf you face an issue with linking afterward, you can try running ",(0,o.jsx)(r.code,{children:"brew link glib"})]}),"\n",(0,o.jsxs)(r.p,{children:["In case of Linux you can install this lib using\n",(0,o.jsx)(r.code,{children:"sudo apt install libglib2.0-dev"})]}),"\n",(0,o.jsx)(r.h3,{id:"cannot-load-library-pango",children:"cannot load library 'pango'"}),"\n",(0,o.jsxs)(r.p,{children:["In case of MacOS you can install this lib using\n",(0,o.jsx)(r.code,{children:"brew install pango"})]}),"\n",(0,o.jsxs)(r.p,{children:["In case of Linux you can install this lib using\n",(0,o.jsx)(r.code,{children:"sudo apt install libpango-1.0-0"})]}),"\n",(0,o.jsx)(r.p,{children:(0,o.jsx)(r.strong,{children:"Workaround for Mac M chip users"})}),"\n",(0,o.jsx)(r.p,{children:"If the above solutions don't work, you can try the following:"}),"\n",(0,o.jsxs)(r.ul,{children:["\n",(0,o.jsxs)(r.li,{children:["Install a fresh version of Python 3.11 pointed to brew:\n",(0,o.jsx)(r.code,{children:"brew install [email protected]"})]}),"\n",(0,o.jsxs)(r.li,{children:["Install the required libraries:\n",(0,o.jsx)(r.code,{children:"brew install pango glib gobject-introspection"})]}),"\n",(0,o.jsxs)(r.li,{children:["Install the required GPT Researcher Python packages:\n",(0,o.jsx)(r.code,{children:"pip3.11 install -r requirements.txt"})]}),"\n",(0,o.jsxs)(r.li,{children:["Run the app with Python 3.11 (using brew):\n",(0,o.jsx)(r.code,{children:"python3.11 -m uvicorn main:app --reload"})]}),"\n"]}),"\n",(0,o.jsx)(r.h3,{id:"error-processing-the-url",children:"Error processing the url"}),"\n",(0,o.jsxs)(r.p,{children:["We're using ",(0,o.jsx)(r.a,{href:"https://www.selenium.dev",children:"Selenium"})," for site scraping. Some sites fail to be scraped. In these cases, restart and try running again."]}),"\n",(0,o.jsx)(r.h3,{id:"chrome-version-issues",children:"Chrome version issues"}),"\n",(0,o.jsx)(r.p,{children:"Many users have an issue with their chromedriver because the latest chrome browser version doesn't have a compatible chrome driver yet."}),"\n",(0,o.jsxs)(r.p,{children:["To downgrade your Chrome web browser using ",(0,o.jsx)(r.a,{href:"https://www.slimjet.com/chrome/google-chrome-old-version.php",children:"slimjet"}),", follow these steps. First, visit the website and scroll down to find the list of available older Chrome versions. Choose the version you wish to install\nmaking sure it's compatible with your operating system.\nOnce you've selected the desired version, click on the corresponding link to download the installer. Before proceeding with the installation, it's crucial to uninstall your current version of Chrome to avoid conflicts."]}),"\n",(0,o.jsxs)(r.p,{children:["It's important to check if the version you downgrade to, has a chromedriver available in the official ",(0,o.jsx)(r.a,{href:"https://chromedriver.chromium.org/downloads",children:"chrome driver website"})]}),"\n",(0,o.jsx)(r.p,{children:(0,o.jsxs)(r.strong,{children:["If none of the above work, you can ",(0,o.jsx)(r.a,{href:"https://app.tavily.com",children:"try out our hosted beta"})]})})]})}function d(e={}){const{wrapper:r}={...(0,t.R)(),...e.components};return r?(0,o.jsx)(r,{...e,children:(0,o.jsx)(h,{...e})}):h(e)}},8453(e,r,s){s.d(r,{R:()=>i,x:()=>l});var n=s(6540);const o={},t=n.createContext(o);function i(e){const r=n.useContext(t);return n.useMemo(function(){return"function"==typeof e?e(r):{...r,...e}},[r,e])}function l(e){let r;return r=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:i(e.components),n.createElement(t.Provider,{value:r},e.children)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.