iki / monkeypatch

Monkey patcher
http://pypi.python.org/pypi/monkeypatch
5 stars 10 forks source link

getting syntax error attempting to install monkeypatch. #3

Open mehbebe opened 1 year ago

mehbebe commented 1 year ago

Hello, I am using oobabooga webui, and one of the scripts in that webui requires monkeypatch to be installed. I attempted to install monkeypatch using "pip install monkeypatch", and got the following error returned:

Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "C:\Users\username\AppData\Local\Temp\pip-install-6dbxphts\monkeypatch_f06937c6f11a4bcbb510558679cc65e8\setup.py", line 99
          except ImportError, e:
                 ^^^^^^^^^^^^^^
      SyntaxError: multiple exception types must be parenthesized
      [end of output]

I don't really understand why I am getting this error, as I can see other people are successfully installing it without any issues. Could it possibly be that this version of monkeypatch isn't compatible with my version of python? my version of python: 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]

TheNitzel commented 1 year ago

Exact same situation here too. Did you have any luck?

baljeetn commented 1 year ago

To fix this issue, you should modify this line to use parentheses around the exception types: Setup.py

except (ImportError, e):

GabsMarcelino commented 8 months ago

Same here