Comments (8)
If you are using conda environment on Windows, make sure you have GTK3 installed before you install the rest of the requirements:
conda install -c conda-forge gtk3
from gpt-researcher.
I'm not using conda, I'm using a straight VSCode git clone with .venv for pip install requirements.txt
I'd rather KISS.
Is there any way to get it working properly using this most basic of all setups, which is what the install instructions advise as well? There's nothing about needing GTK in there afaik. Not sure what it has to do with styling of the output in a browser anyway?
from gpt-researcher.
It has something top do with the fact that WaesyPrint requires GTK3 and that cannot be installed using pip.
If you are not using conda, then simply installing GTK3 before installing requirements should do the trick.
To find out "why" you would have to dig into WeasyPrint source.
Here is a good start: Kozea/WeasyPrint#2011 (comment)
Using anaconda is pretty basic:
conda create --name myenv python=3.11
conda activate myenv
conda install -c conda-forge gtk3
and then just continue from step_1 of the installation instructions.
Once environment is setup, just select that Python interpreter for your project in VSCode.
from gpt-researcher.
Okay, thanks for the info.
@assafelovic Any thoughts? Could you adjust the installation documentation to reflect this?
Even better, replace WeasyPrint due to the GTK dependency and hassle installing it on Windows.
Is there a simpler yet functional replacement?
from gpt-researcher.
Hey @sonicviz I've been looking for a decent Markdown->PDF library without any success. This is why I've decided to include it for users who can get it working instead of removing completely. The service still runs but there's an issue with the PDF right?
from gpt-researcher.
Well, there two issues here, perhaps I should have done them separately.
- The pdf issue with the error: Error in converting Markdown to PDF: cannot load library 'gobject-2.0-0': error 0x7e. Additionally, ctypes.util.find_library() did not manage to locate a library called 'gobject-2.0-0'
- The output text has a lot of styling issues, which must be due to the WaesyPrint issue mentioned above.
I can get by without the pdf as I use the word export, and it's about 95% ok, just some of the bulleted lists seem to have an extra carriage return at the start of the sentence. The bigger issue is the text in the browser window is much worse, nowhere near what it looks like in Docker on on the cloud version. Pretty unreadable, much worse than the word export.
Does that make sense?
from gpt-researcher.
can you please attach a screenshot of how it looks like?
from gpt-researcher.
Sure. This is messy, not how it looks on the Cloud or Docker.
from gpt-researcher.
Related Issues (20)
- multi-agents module seems to be using gpt-4o no matter what is specified as "model" in task.json HOT 1
- BUG: Crash due to inconsistent arguments passed to GPTResearcher() constructor HOT 1
- UnicodeEncodeError: 'charmap' codec can't encode character '\U0001f50e' in position 0: character maps to <undefined> HOT 5
- TypeError in Config class initialization and ensure proper type handling and directory validation. Solution Provided! HOT 1
- Research across multiple sources HOT 2
- Error with new tone feature when doing a research HOT 6
- Docker buildx to linux/amd64 from Mac M1 throws "system lacks support for the sse3 instruction set" HOT 2
- How to use own .env file? HOT 3
- KeyError: 'Objective (impartial and unbiased presentation of facts and findings)' HOT 2
- raise ImportError( ImportError: lxml.html.clean module is now a separate project lxml_html_clean. Install lxml[html_clean] or lxml_html_clean directly. HOT 1
- ERROR: Exception in ASGI application when running with Ollama. HOT 5
- Researcher using links from previous calls HOT 4
- gpt-researcher 0.8.0 pip package no longer works with anthropic models HOT 7
- context_length_exceeded HOT 1
- TypeError: the JSON object must be str, bytes or bytearray, not coroutine HOT 2
- Visualization issues :graph.get_graph(xray=1).draw_mermaid_png() HOT 1
- docs.gptr.dev unavailable HOT 5
- KeyError: 'snippet' HOT 1
- llama3 keyerror 'server' HOT 1
- Different LLM sources for "SMART" and "FAST".
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gpt-researcher.