Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configure fails (Ubuntu 20.04) #59

Closed
hesa opened this issue May 7, 2021 · 3 comments
Closed

configure fails (Ubuntu 20.04) #59

hesa opened this issue May 7, 2021 · 3 comments

Comments

@hesa
Copy link

hesa commented May 7, 2021

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
Copy link
Contributor

@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
Copy link
Contributor

$ 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
Copy link
Author

hesa commented May 10, 2021

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

@hesa hesa closed this as completed May 10, 2021
AyanSinhaMahapatra pushed a commit that referenced this issue May 5, 2022
Do not use Python 3.6 on Windows 2022 jobs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants