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

Avoid installing pyyaml 6.0.0 #512

Merged
merged 4 commits into from
Aug 28, 2023
Merged

Conversation

uilianries
Copy link
Member

@uilianries uilianries commented Aug 28, 2023

Hooks tests are broken because we can't install PyYAML 6.0.0

Collecting PyYAML<=6.0,>=3.11 (from conan==1.60.0)

  Using cached https://files.pythonhosted.org/packages/36/2b/61d51a2c4f25ef062ae3f74576b01638bebad5e045f747ff12643df63844/PyYAML-6.0.tar.gz

  Installing build dependencies: started

  Installing build dependencies: finished with status 'done'

    Complete output from command python setup.py egg_info:

    running egg_info

    creating pip-egg-info/PyYAML.egg-info

    writing pip-egg-info/PyYAML.egg-info/PKG-INFO

    writing dependency_links to pip-egg-info/PyYAML.egg-info/dependency_links.txt

    writing top-level names to pip-egg-info/PyYAML.egg-info/top_level.txt

    writing manifest file 'pip-egg-info/PyYAML.egg-info/SOURCES.txt'

    Traceback (most recent call last):

      File "<string>", line 1, in <module>

      File "/private/var/folders/59/4z5w84h155g6vgxb0xf8g96w0000gp/T/pip-install-v1b049v6/PyYAML/setup.py", line 312, in <module>

        python_requires='>=3.6',

      File "/private/var/folders/59/4z5w84h155g6vgxb0xf8g96w0000gp/T/pip-build-env-5vlmcvxc/lib/python3.6/site-packages/setuptools/__init__.py", line 153, in setup

        return distutils.core.setup(**attrs)

      File "/Users/jenkins/.pyenv/versions/3.6.15/lib/python3.6/distutils/core.py", line 148, in setup

        dist.run_commands()

      File "/Users/jenkins/.pyenv/versions/3.6.15/lib/python3.6/distutils/dist.py", line 955, in run_commands

        self.run_command(cmd)

      File "/Users/jenkins/.pyenv/versions/3.6.15/lib/python3.6/distutils/dist.py", line 974, in run_command

        cmd_obj.run()

      File "/private/var/folders/59/4z5w84h155g6vgxb0xf8g96w0000gp/T/pip-build-env-5vlmcvxc/lib/python3.6/site-packages/setuptools/command/egg_info.py", line 299, in run

        self.find_sources()

      File "/private/var/folders/59/4z5w84h155g6vgxb0xf8g96w0000gp/T/pip-build-env-5vlmcvxc/lib/python3.6/site-packages/setuptools/command/egg_info.py", line 306, in find_sources

        mm.run()

      File "/private/var/folders/59/4z5w84h155g6vgxb0xf8g96w0000gp/T/pip-build-env-5vlmcvxc/lib/python3.6/site-packages/setuptools/command/egg_info.py", line 541, in run

        self.add_defaults()

      File "/private/var/folders/59/4z5w84h155g6vgxb0xf8g96w0000gp/T/pip-build-env-5vlmcvxc/lib/python3.6/site-packages/setuptools/command/egg_info.py", line 578, in add_defaults

        sdist.add_defaults(self)

      File "/private/var/folders/59/4z5w84h155g6vgxb0xf8g96w0000gp/T/pip-build-env-5vlmcvxc/lib/python3.6/site-packages/setuptools/command/py36compat.py", line 34, in add_defaults

        self._add_defaults_ext()

      File "/private/var/folders/59/4z5w84h155g6vgxb0xf8g96w0000gp/T/pip-build-env-5vlmcvxc/lib/python3.6/site-packages/setuptools/command/py36compat.py", line 118, in _add_defaults_ext

        self.filelist.extend(build_ext.get_source_files())

      File "/private/var/folders/59/4z5w84h155g6vgxb0xf8g96w0000gp/T/pip-install-v1b049v6/PyYAML/setup.py", line 204, in get_source_files

        self.cython_sources(ext.sources, ext)

      File "/Users/jenkins/.pyenv/versions/3.6.15/lib/python3.6/distutils/cmd.py", line 103, in __getattr__

        raise AttributeError(attr)

    AttributeError: cython_sources

There is a related open issue yaml/pyyaml#601, yaml/pyyaml#724

Meanwhile, let's run an older version.

Signed-off-by: Uilian Ries <uilianries@gmail.com>
Signed-off-by: Uilian Ries <uilianries@gmail.com>
Signed-off-by: Uilian Ries <uilianries@gmail.com>
Signed-off-by: Uilian Ries <uilianries@gmail.com>
@uilianries
Copy link
Member Author

Needed by #511

@uilianries uilianries marked this pull request as ready for review August 28, 2023 14:18
@uilianries uilianries merged commit 3bd65ca into conan-io:master Aug 28, 2023
@uilianries uilianries deleted the hotfix/pyyaml branch August 28, 2023 14:30
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

Successfully merging this pull request may close these issues.

2 participants