Giter Site home page Giter Site logo

Comments (20)

nathanlannan avatar nathanlannan commented on May 29, 2024 3

Seconded on Windows:
from UserDict import DictMixin
ModuleNotFoundError: No module named 'UserDict'

from auto-gpt.

theref avatar theref commented on May 29, 2024 1

+1

from auto-gpt.

Torantulino avatar Torantulino commented on May 29, 2024 1

Fixed in #68

from auto-gpt.

PhilipAD avatar PhilipAD commented on May 29, 2024
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.

joshsny avatar joshsny commented on May 29, 2024

I didn't experience this when downgrading from Python 3.11 to Python 3.9

from auto-gpt.

OneRain233 avatar OneRain233 commented on May 29, 2024

+1

from auto-gpt.

kaansariveli avatar kaansariveli commented on May 29, 2024

+1

from auto-gpt.

szerlok avatar szerlok commented on May 29, 2024

+1

from auto-gpt.

theopencity avatar theopencity commented on May 29, 2024

Got similar error. Someone help

from auto-gpt.

sparkcomputers avatar sparkcomputers commented on May 29, 2024

I fixed this error by find and replacing

from collections import MutableMapping
to
from collections.abc import MutableMapping

from auto-gpt.

Cosmingld avatar Cosmingld commented on May 29, 2024

Run the error on chatgpt-4 itll give u answers to fix

from auto-gpt.

PhilipAD avatar PhilipAD commented on May 29, 2024

Temp fix - #67

from auto-gpt.

Torantulino avatar Torantulino commented on May 29, 2024

Is there a simpler fix than that?
Anyone got this working, I'm not able to reproduce...

from auto-gpt.

chrgeor avatar chrgeor commented on May 29, 2024

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.

PhilipAD avatar PhilipAD commented on May 29, 2024

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.

theopencity avatar theopencity commented on May 29, 2024

Thanks @sparkcomputers this fixed it for me.

I fixed this error by find and replacing

from collections import MutableMapping to from collections.abc import MutableMapping

from auto-gpt.

Torantulino avatar Torantulino commented on May 29, 2024

@theopencity Where are you finding that import?

from auto-gpt.

PhilipAD avatar PhilipAD commented on May 29, 2024

@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.

chrgeor avatar chrgeor commented on May 29, 2024

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.

Veylkh avatar Veylkh commented on May 29, 2024

Fixed in #68

Would JSON still requires some form of preventive preprocessing?

from auto-gpt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.