protlib icon indicating copy to clipboard operation
protlib copied to clipboard

problems installing protlib v1.5.0

Open krishnavelu opened this issue 3 years ago • 7 comments
trafficstars

Hello @EliAndrewC

I couldn't install the new version of protlib. Please have a look.

image

krishnavelu avatar Apr 16 '22 15:04 krishnavelu

I think the problem is related to setuptools >=58 and/or python 3.10. By forcing the version <58 the installation works.

 pip install --upgrade pip setuptools==57.5.0

Source problem seems to be this: https://github.com/pypa/setuptools/issues/2086

Other projects fixing this problem in the following way:

  • https://github.com/behave/behave/commit/34ec5097f33c9b1620714d8dd95e75901559668b
  • https://opendev.org/openstack/pbr/commit/242f7bd1b68428fc20a9d7f219f70a21372dd5c9

uwohlfeil avatar May 04 '22 21:05 uwohlfeil

I'm also having this problem now. Is there a fix planned?

I've limited my tox install to protlib==1.4

raysalemi avatar May 19 '22 18:05 raysalemi

our issue post doesn't reach @EliAndrewC. Contact through email.

krishnavelu avatar May 19 '22 19:05 krishnavelu

same issue. With Heroku, they don't even allow downgrading setuptools.

viveksp avatar Jun 21 '22 06:06 viveksp

I solved this by creating a whl myself from the available tar

viveksp avatar Jun 21 '22 08:06 viveksp

How to fix the issue can someone help in step by step

mchoudhury-tpr avatar Aug 17 '22 13:08 mchoudhury-tpr

Hi, if you use a virtual environment it is easy.

  1. Create a virtual environment in your project path python -m venv env. env is in this case the name of the virtual environment.
  2. Switch with your command line into this environment
  • Linux: source venv/bin/activate
  • Windows: venv\Scripts\activate
  1. Install the oder version of the setuptools pip install setuptools==57.5.0
  2. Install all required dependencies like protlib via pip
  3. IDEs like Visual Studio Code support virtual environments
    • Visual Studio Code: CTRL + SHIFT + P -> Python: Select Interpretor

uwohlfeil avatar Aug 17 '22 14:08 uwohlfeil