Comments (20)
Seconded on Windows:
from UserDict import DictMixin
ModuleNotFoundError: No module named 'UserDict'
from autogpt.
+1
from autogpt.
Fixed in #68
from autogpt.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/path/to/main.py", line 3, in <module>
import commands as cmd
File "/path/to/commands.py", line 8, in <module>
import ai_functions as ai
File "/path/to/ai_functions.py", line 5, in <module>
from json_parser import fix_and_parse_json
File "/path/to/json_parser.py", line 1, in <module>
import dirtyjson
File "/path/to/anaconda3/envs/auto-gpt/lib/python3.11/site-packages/dirtyjson/init.py", line 33, in <module>
from .loader import DirtyJSONLoader
File "/path/to/anaconda3/envs/auto-gpt/lib/python3.11/site-packages/dirtyjson/loader.py", line 8, in <module>
from dirtyjson.attributed_containers import AttributedDict, AttributedList
File "/path/to/anaconda3/envs/auto-gpt/lib/python3.11/site-packages/dirtyjson/attributed_containers.py", line 11, in <module>
from UserDict import DictMixin
ModuleNotFoundError: No module named ‘UserDict'
from autogpt.
I didn't experience this when downgrading from Python 3.11 to Python 3.9
from autogpt.
+1
from autogpt.
+1
from autogpt.
+1
from autogpt.
Got similar error. Someone help
from autogpt.
I fixed this error by find and replacing
from collections import MutableMapping
to
from collections.abc import MutableMapping
from autogpt.
Run the error on chatgpt-4 itll give u answers to fix
from autogpt.
Temp fix - #67
from autogpt.
Is there a simpler fix than that?
Anyone got this working, I'm not able to reproduce...
from autogpt.
I have the same issue in windows with venv python 3.10.9
edit:
I got this warning in pip install
DEPRECATION: dirtyjson is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559
Running setup.py install for dirtyjson ... done
from autogpt.
Is there a simpler fix than that? Anyone got this working, I'm not able to reproduce...
I tried monkey patching but it doesn't seem to import correctly
from autogpt.
Thanks @sparkcomputers this fixed it for me.
I fixed this error by find and replacing
from collections import MutableMapping
tofrom collections.abc import MutableMapping
from autogpt.
@theopencity Where are you finding that import?
from autogpt.
@theopencity Where are you finding that import?
I think they are referring to changing their locally stored package site-packages/dirtyjson directly.
from autogpt.
that's right, it is in my venv ...\Auto-GPT\venv\lib\python3.8\site-packages\dirtyjson\attributed_containers.py
from collections import MutableMapping as DictMixin
from autogpt.
Fixed in #68
Would JSON still requires some form of preventive preprocessing?
from autogpt.
Related Issues (20)
- change other api HOT 3
- support to gemini HOT 3
- Create a Security Policy
- Wsl fails HOT 1
- module missing despite installed HOT 1
- Poetry command not found HOT 4
- Failed to connect to duckduckgo.com HOT 3
- ValueError: Unknown scheme for proxy URL URL('socks://127.0.0.1:10808/') HOT 1
- Make it easier to use local LLMs by decoupling AutoGPT from dependence on OpenAI function calling HOT 13
- Agent returns Washington D.C. HOT 5
- Autogpt ran local model error. HOT 3
- To complete setup: Where to paste Github access token? HOT 2
- context_length_exceeded | This model's maximum context length is 16385 tokens. However, your messages resulted in 59678 tokens. Please reduce the length of the messages | invalid_request_error HOT 3
- AttributeError: module 'proto' has no attribute 'module'
- Port and split `autogpt.core.configuration` into `forge.config` and `forge.state` HOT 1
- Port `autogpt.core.resource.model_provider` from AutoGPT to Forge
- Port `autogpt.core.utils.json_schema` from AutoGPT to Forge HOT 1
- Poetry install failed, Onnxruntime failed HOT 8
- Port `autogpt.file_storage` functionality from AutoGPT to Forge
- Error installing dependencies HOT 4
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 autogpt.