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

[ci] Prevent Python downgrading to pypy on Windows #5197

Merged
merged 3 commits into from
May 4, 2022
Merged

Conversation

StrikerRUS
Copy link
Collaborator

Fix current master failures at Appveyor that happen due to pytest uses pypy3 as a Python interpreter.

The following packages will be DOWNGRADED:
  python                        3.7.12-h900ac77_100_cpython --> 3.7.12-0_73_pypy
  python_abi                                    3.7-2_cp37m --> 3.7-2_pypy37_pp73

...

============================= test session starts =============================
platform win32 -- Python 3.7.12[pypy-7.3.7-final], pytest-7.1.1, pluggy-1.0.0

...
_________________________________ test_basic __________________________________
self = <class 'ctypes.c_char_p'>, value = 1047415529008
    def from_param(self, value):
        if isinstance(value, self):
            return value
        try:
>           as_parameter = value._as_parameter_
E           AttributeError: 'int' object has no attribute '_as_parameter_'
C:\Miniconda3-x64\envs\test-env\lib_pypy\_ctypes\basics.py:56: AttributeError

https://ci.appveyor.com/project/guolinke/lightgbm/builds/43430960/job/smunq6b4pcq936b5?fullLog=true

Looks like libxml2 installation is an universal workaround for any CI error 😄
Related #4993, #5068, #5126.

Copy link
Collaborator

@jameslamb jameslamb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I never knew libxml2 was so powerful haha

This is fine, thanks very much for working on the fix!

@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity since it was closed. To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants