kevinheavey / anchorpy

The Python Anchor client.
https://kevinheavey.github.io/anchorpy/
MIT License
222 stars 59 forks source link

Cannot install with pip 22.0.4 #61

Closed sn0rlacks closed 2 years ago

sn0rlacks commented 2 years ago

Currently running python 3.9.11 on Debian. Not sure if this has ever been reported, but pasting my output here. Anchor, solana, and pip are installed. setuptools is also up to date. Any help would be appreciated.

pip install anchorpy
Collecting anchorpy
  Using cached anchorpy-0.8.1-py3-none-any.whl (43 kB)
Collecting jsonrpcclient<5.0.0,>=4.0.1
  Using cached jsonrpcclient-4.0.2.tar.gz (6.5 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [1 lines of output]
      ERROR: Can not execute `setup.py` since setuptools is not available in the build environment.
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
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.
(pyvenv39) #( 03/17/22@ 4:48PM )( lemons@basecamp ):~
   anchor --version
anchor-cli 0.22.1
(pyvenv39) #( 03/17/22@ 4:48PM )( lemons@basecamp ):~
   python --version
Python 3.9.11
(pyvenv39) #( 03/17/22@ 4:48PM )( lemons@basecamp ):~
   pip --version
pip 22.0.4 from /home/lemons/.pyenv/versions/3.9.11/lib/python3.9/site-packages/pip (python 3.9)
kevinheavey commented 2 years ago

Can you try pip install jsonrpcclient? That seems like the part that pip is complaining about?

sn0rlacks commented 2 years ago

Yep, runs into same issue. I'll file a request with their team. Can close this out