nexB / scancode-analyzer

scancode-results-analyzer
4 stars 2 forks source link

configure fails (Ubuntu 20.04) #59

Closed hesa closed 3 years ago

hesa commented 3 years ago

Problem:

$ git clone https://github.com/nexB/scancode-analyzer.git
$ ./configure 

... snip  

File "/home/hesa/opt/scancode-analyzer/tmp/virtualenv.pyz/virtualenv/util/zipapp.py", line 22, in extract

  File "/usr/lib/python3.8/zipfile.py", line 1441, in getinfo
    raise KeyError(
KeyError: "There is no item named '.py' in the archive"

System information:

$ python3 --version
Python 3.8.5
$ pip3 list | grep virtualenv 
virtualenv                    20.4.6     
$ virtualenv --version
virtualenv 20.4.6 from /usr/local/lib/python3.8/dist-packages/virtualenv/__init__.py
$ dpkg --list virtualenv
dpkg-query: no packages found matching virtualenv
pombredanne commented 3 years ago

@hesa Sorry for this, but I do not seem to be able to reproduce

$ mkdir -p tmp/sca
$ cd tmp/sca
$ git clone https://github.com/nexB/scancode-analyzer.git
Cloning into 'scancode-analyzer'...
remote: Enumerating objects: 808, done.
remote: Counting objects: 100% (420/420), done.
remote: Compressing objects: 100% (268/268), done.
remote: Total 808 (delta 252), reused 277 (delta 145), pack-reused 388
Receiving objects: 100% (808/808), 2.61 MiB | 6.19 MiB/s, done.
Resolving deltas: 100% (420/420), done.
$ pyenv local 3.8.6 
$ python --version
Python 3.8.6
$ ./configure 
....
Successfully installed  ....

let me try in a container

pombredanne commented 3 years ago
$ docker pull ubuntu:20.04
$ docker run  -it ubuntu:20.04 
root@85d2c0ae2d52:/# apt-get update
Get:1 http://archive.ubuntu.com/ubuntu focal InRelease [265 kB]
a....
root@85d2c0ae2d52:/# apt-get install python3 build-essential git python3-dev wget
root@85d2c0ae2d52:/# git clone https://github.com/nexB/scancode-analyzer.git
root@85d2c0ae2d52:/# python3
Python 3.8.5 (default, Jan 27 2021, 15:41:15) 
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
root@85d2c0ae2d52:/scancode-analyzer# ./configure 
root@85d2c0ae2d52:/scancode-analyzer# . tmp/bin/activate
(tmp) root@85d2c0ae2d52:/scancode-analyzer# scancode --version
ScanCode version 21.3.31

it works too

hesa commented 3 years ago

Got it to work in a container :) I must have %¤# my environment. Sorry :(