[Distutils] RFH with a problem with pip 10 on Windows (AppVeyor)

Lele Gaifax lele at metapensiero.it
Wed Apr 25 11:24:43 EDT 2018


Hi,

since some time, the CI job on AppVeyor for a package I maintain fails in a
way I was not able to reproduce in my local demo Win7 VM.

This is a link to the error:

  https://ci.appveyor.com/project/lelit/python-rapidjson/build/1.0.184#L66

and as you can see, it happens when cibuildwheel tries to install the "wheel"
package, and the following happens:

  + pip install wheel
  Using default MSVC build environment for 32 bit architecture
  Executing: pip install wheel
  Traceback (most recent call last):
    File "c:\python34\lib\runpy.py", line 170, in _run_module_as_main
      "__main__", mod_spec)
    File "c:\python34\lib\runpy.py", line 85, in _run_code
      exec(code, run_globals)
    File "C:\Python34\Scripts\pip.exe\__main__.py", line 5, in <module>
  ImportError: cannot import name 'main'
  
The problem may be related to something different in version 10 of pip, but
that's just a guess: as always, on Windows there are no certainties :-)

It used to work as expected, this is a link to latest successful run:

  https://ci.appveyor.com/project/lelit/python-rapidjson/build/1.0.181?fullLog=true#L63

and since then the only (apparent) difference is the pip version...

Can anybody understand what's going on?

Thanks in advance,
ciao, lele.
-- 
nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri
real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia.
lele at metapensiero.it  |                 -- Fortunato Depero, 1929.



More information about the Distutils-SIG mailing list