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

Unable to install avocado-framework-plugin-varianter-yaml-to-mux using pip3 #5975

Closed
mahi657 opened this issue Jun 25, 2024 · 3 comments
Closed
Assignees
Labels

Comments

@mahi657
Copy link

mahi657 commented Jun 25, 2024

Describe the bug

Unable to install avocado-framework-plugin-varianter-yaml-to-mux plugin.

[root@fvtlpar3 ~]# pip3 install --user avocado-framework
WARNING: Running pip install with root privileges is generally not a good idea. Try pip3 install --user instead.
Collecting avocado-framework
Downloading https://files.pythonhosted.org/packages/e1/b1/5f0f408bdbc28a82c91267095514eb795df929e0da000da1ae649840afb5/avocado_framework-100.1-py3-none-any.whl (432kB)
100% |████████████████████████████████| 440kB 3.1MB/s
Requirement already satisfied: setuptools in /usr/lib/python3.6/site-packages (from avocado-framework)
Installing collected packages: avocado-framework
Successfully installed avocado-framework-100.1

[root@fvtlpar3 ~]# pip3 install avocado-framework-plugin-varianter-yaml-to-mux
WARNING: Running pip install with root privileges is generally not a good idea. Try pip3 install --user instead.
Collecting avocado-framework-plugin-varianter-yaml-to-mux
Downloading https://files.pythonhosted.org/packages/94/8d/58d3e25a7a042a8454d87590600aa539b3b62db330509ba31c4da8c32a5f/avocado_framework_plugin_varianter_yaml_to_mux-105.0-py3-none-any.whl
Collecting avocado-framework==105.0 (from avocado-framework-plugin-varianter-yaml-to-mux)
Could not find a version that satisfies the requirement avocado-framework==105.0 (from avocado-framework-plugin-varianter-yaml-to-mux) (from versions: 35.0, 36.0, 36.3, 36.4, 37.0.post0, 39.0, 40.0, 41.0, 42.0, 45.0, 46.0, 47.0, 48.0, 49.0, 50.0, 51.0, 52.0, 53.0, 54.0, 55.0, 56.0, 57.0, 58.0, 59.0, 60.0, 61.0, 62.0, 63.0, 64.0, 65.0, 66.0, 67.0, 68.0, 69.0, 69.1, 69.2, 69.3, 70.0, 71.0, 72.0, 73.0, 74.0, 75.1, 76.0, 77.0, 78.0, 79.0, 80.0, 81.0, 82.0, 82.1, 82.2, 83.0, 84.0, 85.0, 86.0, 87.0, 88.0, 88.1, 89.0, 90.0, 91.0, 92.0, 92.1, 92.2, 93.0, 94.0, 95.0, 96.0, 97.0, 98.0, 99.0, 100.0, 100.1)
No matching distribution found for avocado-framework==105.0 (from avocado-framework-plugin-varianter-yaml-to-mux)

I tried version 100.1 specifically, getting this error,

[root@fvtlpar3 ~]# pip3 install avocado-framework-plugin-varianter-yaml-to-mux==100.1
WARNING: Running pip install with root privileges is generally not a good idea. Try pip3 install --user instead.
Collecting avocado-framework-plugin-varianter-yaml-to-mux==100.1
Downloading https://files.pythonhosted.org/packages/b6/63/90d33dcc1bff79d7e3a44776252f45b3b3cad0fcc6c991e5f59df08ad29e/avocado_framework_plugin_varianter_yaml_to_mux-100.1-py3-none-any.whl
Collecting PyYAML>=4.2b2 (from avocado-framework-plugin-varianter-yaml-to-mux==100.1)
Downloading https://files.pythonhosted.org/packages/ff/08/b6768d9f2da231c1396490e91471ffebb12b299a65cb369c27ec0e2a50c6/pyyaml-6.0.2rc1.tar.gz (130kB)
100% |████████████████████████████████| 133kB 2.6MB/s
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "", line 1
(self.include_dirs=)
^
SyntaxError: invalid syntax

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-rz1nsh39/PyYAML/

Steps to reproduce

Run "pip3 install avocado-framework-plugin-varianter-yaml-to-mux"

Expected behavior

avocado-framework-plugin-varianter-yaml-to-mux should get installed .

Current behavior

[root@fvtlpar3 ~]# pip3 install avocado-framework-plugin-varianter-yaml-to-mux==100.1
WARNING: Running pip install with root privileges is generally not a good idea. Try pip3 install --user instead.
Collecting avocado-framework-plugin-varianter-yaml-to-mux==100.1
Downloading https://files.pythonhosted.org/packages/b6/63/90d33dcc1bff79d7e3a44776252f45b3b3cad0fcc6c991e5f59df08ad29e/avocado_framework_plugin_varianter_yaml_to_mux-100.1-py3-none-any.whl
Collecting PyYAML>=4.2b2 (from avocado-framework-plugin-varianter-yaml-to-mux==100.1)
Downloading https://files.pythonhosted.org/packages/ff/08/b6768d9f2da231c1396490e91471ffebb12b299a65cb369c27ec0e2a50c6/pyyaml-6.0.2rc1.tar.gz (130kB)
100% |████████████████████████████████| 133kB 2.6MB/s
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "", line 1
(self.include_dirs=)
^
SyntaxError: invalid syntax

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-rz1nsh39/PyYAML/

System information (please complete the following information):

  • OS: lsb_release -a
    [root@fvtlpar3 ~]# lsb_release -a
    LSB Version: :core-4.1-noarch:core-4.1-ppc64le
    Distributor ID: RedHatEnterprise
    Description: Red Hat Enterprise Linux release 8.10 (Ootpa)
    Release: 8.10
    Codename: Ootpa

  • Avocado version: avocado -v
    [root@fvtlpar3 ~]# avocado -v
    Avocado 105.0

  • Avocado installation method: pip, rpm, github ?
    pip

Additional information
Using Python 3.6.8

@mahi657 mahi657 added the bug label Jun 25, 2024
@mr-avocado mr-avocado bot moved this to Triage in Default project Jun 25, 2024
@richtja
Copy link
Contributor

richtja commented Jun 25, 2024

Hi @mahi657, can you please check the configuration of your pip. I can see that it fetches only avocado_framework-100.1 instead of version 105 even tho you try to instal the latest version with pip3 install --user avocado-framework. If you look at the release history of avocado-framework-plugin-varianter-yaml-to-mux the 105 should be available. https://pypi.org/project/avocado-framework-plugin-varianter-yaml-to-mux/#history

@PraveenPenguin
Copy link
Collaborator

@richtja seems there is an issue with the latest PyYAML version 6.0.2-rc itself broken as 6.0.1 it works well if moved this line as

https://github.com/avocado-framework/avocado/blob/master/optional_plugins/varianter_yaml_to_mux/setup.py#L51

install_requires=[f"avocado-framework=={VERSION}", "PyYAML==6.0.1"]

@clebergnu clebergnu self-assigned this Jul 2, 2024
@clebergnu clebergnu moved this from Triage to In progress in Default project Jul 2, 2024
@clebergnu
Copy link
Contributor

@PraveenPenguin the issue here is that Python 3.6(.8) is being used, and Avocado itself dropped support for it in version 101.0 (see cf587e1). On a Python 3.6 system you could do:

$ python3 -m pip install 'PyYAML==5.4.1'
$ python3 -m pip install 'avocado-framework-plugin-varianter-yaml-to-mux==100.1'

And you will have a working installation.

@github-project-automation github-project-automation bot moved this from In progress to Done 107 in Default project Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

No branches or pull requests

4 participants