dmeranda / demjson

Python module for JSON data encoding, including jsonlint. See the project Wiki here on Github. Also read the README at the bottom of this page, or the project homepage at
http://deron.meranda.us/python/demjson/
Other
302 stars 76 forks source link

error in demjson setup command: use_2to3 is invalid. #43

Closed S4tyendra closed 9 months ago

S4tyendra commented 1 year ago

When i am trying to install manually by cloning git, It was showing this: error in demjson setup command: use_2to3 is invalid. when i am using pip, it was howing this:

Collecting demjson
  Downloading demjson-2.2.4.tar.gz (131 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 131.5/131.5 kB 3.9 MB/s eta 0:00:00
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> See above for output.

  note: This error originates from a subprocess, and is likely not a problem with pip.
  Preparing metadata (setup.py) ... error
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
HMYang33 commented 1 year ago

run this pip3 install setuptools==57.5.0 then install again

NhiNguyen34 commented 2 months ago

run this pip3 install setuptools==57.5.0 then install again

It works for me.