siemens / kas

Setup tool for bitbake based projects
MIT License
353 stars 144 forks source link

Cannot install has 2.6 using pip #69

Closed 0x6e closed 2 years ago

0x6e commented 2 years ago

Hello, I am unable to install kas using pip. pip install kas results in the following error:

» pip install kas
Collecting kas
  Using cached kas-2.6.tar.gz (25 kB)
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-necuf4_r/kas/setup.py'"'"'; __file__='"'"'/tmp/pip-install-necuf4_r/kas/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-necuf4_r/kas/pip-egg-info
         cwd: /tmp/pip-install-necuf4_r/kas/
    Complete output (9 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-necuf4_r/kas/setup.py", line 29, in <module>
        from kas import __version__
      File "/tmp/pip-install-necuf4_r/kas/kas/__init__.py", line 28, in <module>
        from .configschema import CONFIGSCHEMA
      File "/tmp/pip-install-necuf4_r/kas/kas/configschema.py", line 34, in <module>
        with open(os.path.join(cwd, 'schema-kas.json'), 'r') as f:
    FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-install-necuf4_r/kas/kas/schema-kas.json'
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

I'm using pip 20.0.2 from /usr/lib/python3/dist-packages/pip (python 3.8) on Ubuntu 20.04.3 LTS (GNU/Linux 5.4.0-89-generic x86_64)

Installing an old version with pip install kas==2.5 worked fine.

jan-kiszka commented 2 years ago

Yeah, see https://groups.google.com/g/kas-devel/c/Ynb74zAQp-o/m/YY4fODGRAgAJ and https://github.com/siemens/kas/commit/257e5bdd5eb892977510db0a5490b3f6e9e12a72. I'm just looking for a confirmation that this has no other side-effect, then I will tag 2.6.1

0x6e commented 2 years ago

Thanks. Installing with that commit appears to work.

» pip install git+git://github.com/siemens/kas.git@257e5bdd5eb892977510db0a5490b3f6e9e12a72
Collecting git+git://github.com/siemens/kas.git@257e5bdd5eb892977510db0a5490b3f6e9e12a72
  Cloning git://github.com/siemens/kas.git (to revision 257e5bdd5eb892977510db0a5490b3f6e9e12a72) to /tmp/pip-req-build-ld4mfn96
  Running command git clone -q git://github.com/siemens/kas.git /tmp/pip-req-build-ld4mfn96
  Running command git checkout -q 257e5bdd5eb892977510db0a5490b3f6e9e12a72
Requirement already satisfied: PyYAML<6,>=3.0 in /usr/lib/python3/dist-packages (from kas==2.6) (5.3.1)
Requirement already satisfied: distro<2,>=1.0.0 in /usr/lib/python3/dist-packages (from kas==2.6) (1.4.0)
Requirement already satisfied: jsonschema<4,>=2.5.0 in /usr/lib/python3/dist-packages (from kas==2.6) (3.2.0)
Collecting kconfiglib<15,>=14.1.0
  Downloading kconfiglib-14.1.0-py2.py3-none-any.whl (145 kB)
     |████████████████████████████████| 145 kB 1.5 MB/s 
Building wheels for collected packages: kas
  Building wheel for kas (setup.py) ... done
  Created wheel for kas: filename=kas-2.6-py3-none-any.whl size=43194 sha256=7ce8b9c485c86a2d059bf9aa04fa1ed6dc2bd87c88078f3455ba62eff0a62a17
  Stored in directory: /home/nathan/.cache/pip/wheels/2e/aa/71/d2a6dbe98a9b2bd0c2d18918661ffc1390637a27157f0a71a3
Successfully built kas
Installing collected packages: kconfiglib, kas
  WARNING: The scripts alldefconfig, allmodconfig, allnoconfig, allyesconfig, defconfig, genconfig, guiconfig, listnewconfig, menuconfig, oldconfig, olddefconfig, savedefconfig and setconfig are installed in '/home/nathan/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
  Attempting uninstall: kas
    Found existing installation: kas 2.5
    Uninstalling kas-2.5:
      Successfully uninstalled kas-2.5
  WARNING: The script kas is installed in '/home/nathan/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed kas-2.6 kconfiglib-14.1.0
jan-kiszka commented 2 years ago

Thanks for testing. 2.6.1 is out.