No local packages or working download links found for SIP, in the Appveyor Windows Containers, when testing python 3.5

servoz's Avatar

servoz

25 Apr, 2019 02:50 PM

For continuous integrations, we test our scripts for Windows OS with appveyor, as usual after each push in GitHub.
The tests are launched for python 3.5, 3.6 and 3.7. For 3.6 and 3.7 all is working fine.

For 3.5, the test falls due to no SIP package found:

searching for SIP    
Reading https://pypi.python.org/simple/SIP/ 
No local packages or working download links found for SIP
error: Could not find suitable distribution for Requirement.parse('SIP')
Command exited with code 1```

It is strange because:

  • For python 3.6 the return is:

    Searching for SIP
    Reading https://pypi.org/simple/SIP/
    Downloading https://files.pythonhosted.org/packages/7a/49/67cc7955baf2ec5b67e141da2ab2a436cbf0f8d7c9fcab54e35df21d056b/sip-4.19.8-cp36-none-win32.whl#sha256=74da4ddd20c5b35c19cda753ce1e8e1f71616931391caeac2de7a1715945c679
    Best match: sip 4.19.8
    Processing sip-4.19.8-cp36-none-win32.whl
    Installing sip-4.19.8-cp36-none-win32.whl to c:\python36\lib\site-packages
    Adding sip 4.19.8 to easy-install.pth file
    
  • For python 3.7 the return is:

    Searching for SIP
    Reading https://pypi.org/simple/SIP/
    Downloading https://files.pythonhosted.org/packages/89/34/056db01926839dd05f80a08a579ee2f4f6625913b0620580ee580fa05fbf/sip-4.19.8-cp37-none-win32.whl#sha256=1bb10aac55bd5ab0e2ee74b3047aa2016cfa7932077c73f602a6f6541af8cd51
    Best match: sip 4.19.8
    Processing sip-4.19.8-cp37-none-win32.whl
    Installing sip-4.19.8-cp37-none-win32.whl to c:\python37\lib\site-packages
    Adding sip 4.19.8 to easy-install.pth file
    
  • So for python 3.5 we can think that the good target is sip-4.19.8-cp35-none-win32.whl, and by inspecting https://pypi.python.org/simple/SIP/ it seems that it is existing!

I spent a while trying to understand what's wrong, without success. Any help would be greatly appreciated.


  • in attach, please find the appveyor.yml file used. The problem comes from the line 20: "python setup.py install". The corresponding setup.py file define some package as SIP to install with the install_requires argument in the setup().
  • Here is an example of the result for python36 and python35
  1. Support Staff 1 Posted by Owen McDonnell on 25 Apr, 2019 11:49 PM

    Owen McDonnell's Avatar

    I don't have any immediate ideas (though my understanding of python packaging is limited).
    Certainly looks like the package needed is present.

    Is this build configuration one that you are able to get working locally?

  2. 2 Posted by servoz on 26 Apr, 2019 06:28 AM

    servoz's Avatar

    thanks to reply.

    I have not tested this build configuration because my work station is
    running on Linux.

    It could be possible to use a virtual environment but I am not very
    comfortable with it ... and i am not at all comfortable with Windows ...
    (in fact the project that I am working with is intended to run on the 3
    principal OS. For Linux and Mac it is Ok but Windows is for me an
    unknown land ... and I don't now if it is really an OS :-)

  3. Support Staff 3 Posted by Owen McDonnell on 26 Apr, 2019 04:24 PM

    Owen McDonnell's Avatar

    What if you try to specify an earlier version of the SIP package here?

  4. 4 Posted by servoz on 29 Apr, 2019 11:44 AM

    servoz's Avatar

    thanks to reply.
    It seems a good try, that I just finished. I tested with SIP<19, SIP==4.19.8, SIP==4.19.7, SIP==4.19.6, SIP==4.19.5, SIP==4.19.4, SIP==4.19.3, SIP==4.19.2, SIP==4.19.1, SIP==4.19, SIP==4.18.1 and SIP==4.18, all without success ! I also tried to remove the SIP package to the list to install and in this case I observed that the build fails also but this time on scipy (that is normally installed after SIP, I checked). So, I start to think that this issue is linked to the build used ..

  5. 5 Posted by servoz on 29 Apr, 2019 01:21 PM

    servoz's Avatar

    I continue my tries ...
    I made the pip installation of SIP early in the installation (directly in the appveyer.yml, I added pip install SIP just after the line: - "python -m pip install --upgrade pip", and it is working ... So, the issue comes from the python setup.py install command ... I do not understand yet why, but it is a good trail ..

  6. 6 Posted by servoz on 01 May, 2019 06:39 AM

    servoz's Avatar
  7. Support Staff 7 Posted by Owen McDonnell on 01 May, 2019 11:26 PM

    Owen McDonnell's Avatar

    Thanks for sharing your solution.

  8. Owen McDonnell closed this discussion on 01 May, 2019 11:26 PM.

  9. servoz re-opened this discussion on 02 May, 2019 07:37 AM

  10. 8 Posted by servoz on 02 May, 2019 07:37 AM

    servoz's Avatar

    it is to me to thank you for your support and good ideas to try! all the
    best

  11. Owen McDonnell closed this discussion on 02 May, 2019 01:51 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac