Skip to content
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.

Cant install Cobra at Ubuntu 22.04 using python 3.10 #1406

Open
sv-atoslav opened this issue May 9, 2022 · 1 comment
Open

Cant install Cobra at Ubuntu 22.04 using python 3.10 #1406

sv-atoslav opened this issue May 9, 2022 · 1 comment

Comments

@sv-atoslav
Copy link

System and Python Environment

Item Tooltip Value
System uname -a Linux 5.15.0-27-generic #28-Ubuntu SMP Thu Apr 14 04:55:28 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Python python -V 3.10.4
Cobra python cobra.py unavailable

Description

Hello, developer of this tool.
I try setup cobra to Workstation with Ubuntu 22.04 and python 3.10 (latest at this moment), but installation failed.

Steps to Reproduce

  1. download cobra from git
$ git clone https://github.com/FeeiCN/Cobra
Cloning into 'Cobra'...
remote: Enumerating objects: 12443, done.
remote: Counting objects: 100% (18/18), done.
remote: Compressing objects: 100% (15/15), done.
remote: Total 12443 (delta 9), reused 6 (delta 3), pack-reused 12425
Receiving objects: 100% (12443/12443), 24.33 MiB | 8.23 MiB/s, done.
Resolving deltas: 100% (8515/8515), done.
$ cd Cobra
  1. create virtual environment
$ virtualenv venv
created virtual environment CPython3.10.4.final.0-64 in 454ms
  creator CPython3Posix(dest=/home/*path_to_cobra*/Cobra/venv, clear=False, no_vcs_ignore=False, global=False)
  seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy)
    added seed packages: pip==22.0.4, setuptools==62.1.0, wheel==0.37.1
  activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator
$ source venv/bin/activate
  1. installation
    Expected behavior: successfully installing
    Actual behavior:
$ pip install -r requirements.txt
Collecting Flask==1.0.0
  Using cached Flask-1.0-py2.py3-none-any.whl (97 kB)
Collecting Flask-RESTful==0.3.6
  Using cached Flask_RESTful-0.3.6-py2.py3-none-any.whl (25 kB)
Collecting rarfile==2.7
  Using cached rarfile-2.7.tar.gz (37 kB)
  Preparing metadata (setup.py) ... done
Collecting prettytable==0.7.2
  Using cached prettytable-0.7.2.zip (28 kB)
  Preparing metadata (setup.py) ... done
Collecting requests==2.20.0
  Using cached requests-2.20.0-py2.py3-none-any.whl (60 kB)
Collecting pytest==3.0.6
  Using cached pytest-3.0.6-py2.py3-none-any.whl (172 kB)
Collecting pip==9.0.1
  Using cached pip-9.0.1-py2.py3-none-any.whl (1.3 MB)
Collecting phply==1.0.0
  Using cached phply-1.0.0.tar.gz (65 kB)
  Preparing metadata (setup.py) ... done
Collecting Werkzeug==0.15.3
  Using cached Werkzeug-0.15.3-py2.py3-none-any.whl (327 kB)
Collecting ConcurrentLogHandler==0.9.1
  Using cached ConcurrentLogHandler-0.9.1.tar.gz (25 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 in ConcurrentLogHandler setup command: use_2to3 is invalid.
      [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.

Aslo I have colorful screenshot of problem
image

@dhirajwanem
Copy link

same problem here

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants