Comments (5)
Try conda install scikit-learn==1.2.2
from briefgpt.
Thanks! After trying that:
AttributeError: partially initialized module 'charset_normalizer' has no attribute 'md__mypyc' (most likely due to a circular import)
Traceback:
File "/opt/homebrew/Caskroom/miniconda/base/envs/briefgpt/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 565, in _run_script
exec(code, module.__dict__)
File "/Users/soly/Code/BriefGPT/main.py", line 6, in <module>
from chat_utils import create_and_save_directory_embeddings
File "/Users/soly/Code/BriefGPT/chat_utils.py", line 3, in <module>
from langchain.text_splitter import RecursiveCharacterTextSplitter
File "/opt/homebrew/Caskroom/miniconda/base/envs/briefgpt/lib/python3.11/site-packages/langchain/__init__.py", line 6, in <module>
from langchain.agents import MRKLChain, ReActChain, SelfAskWithSearchChain
File "/opt/homebrew/Caskroom/miniconda/base/envs/briefgpt/lib/python3.11/site-packages/langchain/agents/__init__.py", line 2, in <module>
from langchain.agents.agent import (
File "/opt/homebrew/Caskroom/miniconda/base/envs/briefgpt/lib/python3.11/site-packages/langchain/agents/agent.py", line 16, in <module>
from langchain.agents.tools import InvalidTool
File "/opt/homebrew/Caskroom/miniconda/base/envs/briefgpt/lib/python3.11/site-packages/langchain/agents/tools.py", line 8, in <module>
from langchain.tools.base import BaseTool, Tool, tool
File "/opt/homebrew/Caskroom/miniconda/base/envs/briefgpt/lib/python3.11/site-packages/langchain/tools/__init__.py", line 10, in <module>
from langchain.tools.bing_search.tool import BingSearchResults, BingSearchRun
File "/opt/homebrew/Caskroom/miniconda/base/envs/briefgpt/lib/python3.11/site-packages/langchain/tools/bing_search/__init__.py", line 3, in <module>
from langchain.tools.bing_search.tool import BingSearchResults, BingSearchRun
File "/opt/homebrew/Caskroom/miniconda/base/envs/briefgpt/lib/python3.11/site-packages/langchain/tools/bing_search/tool.py", line 10, in <module>
from langchain.utilities.bing_search import BingSearchAPIWrapper
File "/opt/homebrew/Caskroom/miniconda/base/envs/briefgpt/lib/python3.11/site-packages/langchain/utilities/__init__.py", line 2, in <module>
from langchain.requests import TextRequestsWrapper
File "/opt/homebrew/Caskroom/miniconda/base/envs/briefgpt/lib/python3.11/site-packages/langchain/requests.py", line 5, in <module>
import aiohttp
File "/opt/homebrew/Caskroom/miniconda/base/envs/briefgpt/lib/python3.11/site-packages/aiohttp/__init__.py", line 6, in <module>
from .client import (
File "/opt/homebrew/Caskroom/miniconda/base/envs/briefgpt/lib/python3.11/site-packages/aiohttp/client.py", line 59, in <module>
from .client_reqrep import (
File "/opt/homebrew/Caskroom/miniconda/base/envs/briefgpt/lib/python3.11/site-packages/aiohttp/client_reqrep.py", line 72, in <module>
import charset_normalizer as chardet # type: ignore[no-redef]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Caskroom/miniconda/base/envs/briefgpt/lib/python3.11/site-packages/charset_normalizer/__init__.py", line 23, in <module>
from charset_normalizer.api import from_fp, from_path, from_bytes, normalize
File "/opt/homebrew/Caskroom/miniconda/base/envs/briefgpt/lib/python3.11/site-packages/charset_normalizer/api.py", line 10, in <module>
from charset_normalizer.md import mess_ratio
from briefgpt.
It seems like the requirements weren't installed correctly - just to clarify, you removed the pywin32 dependency from the requirements.txt file, then ran conda install --file requirements.txt
again?
from briefgpt.
Reinstalling the requirements did the trick, thanks!
from briefgpt.
Of course, if you encounter any other bugs let me know :)
from briefgpt.
Related Issues (12)
- Many eBooks are in EPUB format。I hope this project can support it HOT 2
- Repo is missing license HOT 1
- Support for alternative OpenAI's endpoints
- add support for folder(multiple files) chat for the local run
- Open API key
- bug at chat_utils.py line 99
- 3. Set your API key in test.env - How to create API Key HOT 2
- Local Summarizer Support
- run local_app.py LlamaCpp load error HOT 6
- Inference too slow HOT 2
- example in test.env doesn't match if statement HOT 1
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 briefgpt.