Comments (20)
Seconded on Windows:
from UserDict import DictMixin
ModuleNotFoundError: No module named 'UserDict'
from auto-gpt.
+1
from auto-gpt.
Run the error on chatgpt-4 itll give u answers to fix
from auto-gpt.
Fixed in #68
from auto-gpt.
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 auto-gpt.
I didn't experience this when downgrading from Python 3.11 to Python 3.9
from auto-gpt.
+1
from auto-gpt.
+1
from auto-gpt.
+1
from auto-gpt.
Got similar error. Someone help
from auto-gpt.
I fixed this error by find and replacing
from collections import MutableMapping
to
from collections.abc import MutableMapping
from auto-gpt.
Temp fix - #67
from auto-gpt.
Is there a simpler fix than that?
Anyone got this working, I'm not able to reproduce...
from auto-gpt.
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 auto-gpt.
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 auto-gpt.
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 auto-gpt.
@theopencity Where are you finding that import?
from auto-gpt.
@theopencity Where are you finding that import?
I think they are referring to changing their locally stored package site-packages/dirtyjson directly.
from auto-gpt.
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 auto-gpt.
Fixed in #68
Would JSON still requires some form of preventive preprocessing?
from auto-gpt.
Related Issues (20)
- Prevent agent execution when required fields are empty - outline in red.
- Censor "Secret" fields like API keys in the Builder until clicked on
- Add Jina WebSearch
- [Builder] Add support for Agent Templates
- Add CreateMediumPost Block
- Add YouTube Transcriber Block
- Azure endpoint not configured HOT 1
- can't load credentials error
- Where is the node? HOT 1
- [Builder] Add Pagination to Monitor Page
- Update node creation docs
- Move `renderInputField` to a React Component
- Getting 'group' was unexpected when trying to run poetry shell HOT 1
- Display type on block outputs
- [Builder] Deduplicate implementation of `AutoGPTServerAPI` client
- [Server] Move API to `/api` to prevent route collisions with frontend
- Decrease the delay before a tooltip opens
- Silent Failure when creating Block with non-unique ID
- [Builder] Speed up `GET /graphs` calls
- Add gpt-4o-mini
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 auto-gpt.