Coder Social home page Coder Social logo

Comments (5)

justinmk avatar justinmk commented on June 25, 2024

ERROR HTTP request failed: error: curl error with https://pypi.python.org/pypi/pynvim/json: 35

Why is that HTTP request failing?

local pypi_response = download('https://pypi.python.org/pypi/pynvim/json')

Does curl https://pypi.python.org/pypi/pynvim/json work for you?

Using: g:python3_host_prog = "C:\Users\ASUS\AppData\Local\Programs\Python\Python312"

g:python3_host_prog must point to the exe, not the directory.

from neovim.

JDCerberus avatar JDCerberus commented on June 25, 2024

ok so now I set ( let g:python3_host_prog = 'C:\Users\ASUS\AppData\Local\Programs\Python\Python312\python.exe and python.EXE' in both cases appeared this:

- g:python3_host_prog is not set. Searching for python in the environment.
- Executable: C:\Users\ASUS\AppData\Local\Programs\Python\Python312\python.EXE

as for curl https://pypi.python.org/pypi/pynvim/json it gives me:

 curl: (35) schannel: next InitializeSecurityContext failed: CRYPT_E_NO_REVOCATION_CHECK (0x80092012) - The revocation function was unable to check revocation for the certificate.

from neovim.

JDCerberus avatar JDCerberus commented on June 25, 2024

ok so now I set ( let g:python3_host_prog = 'C:\Users\ASUS\AppData\Local\Programs\Python\Python312\python.exe and python.EXE' in both cases appeared this:

- g:python3_host_prog is not set. Searching for python in the environment.
- Executable: C:\Users\ASUS\AppData\Local\Programs\Python\Python312\python.EXE

as for curl https://pypi.python.org/pypi/pynvim/json it gives me:

 curl: (35) schannel: next InitializeSecurityContext failed: CRYPT_E_NO_REVOCATION_CHECK (0x80092012) - The revocation function was unable to check revocation for the certificate.

So this is a little after, I looked to understand the problem and I found that the connection problem may be due problems with network restrictions or firewalls , then I thought Antivirus I disabled it, and no more HTTP problems .

But the first problem still exist and other problems appeared:

 Python 3 provider (optional) ~
- Using: g:python3_host_prog = "C:UsersASUSAppDataLocalProgramsPythonPython312python.exe"
- Executable: Not found
- ERROR Detected pip upgrade failure: Python executable can import "pynvim" but not "neovim": 
  - ADVICE:
    - Use that Python version to reinstall "pynvim" and optionally "neovim".
    -  -m pip uninstall pynvim neovim
    -  -m pip install pynvim
    -  -m pip install neovim  # only if needed by third-party software

here I'm using vim.g.python3_host_prog and formatted the direction without \
I have pynvim and neovim installed with pip

from neovim.

justinmk avatar justinmk commented on June 25, 2024

here I'm using vim.g.python3_host_prog and formatted the direction without \

What does this mean? Show actual code from your config, don't describe things. Just show the code.

I'm guessing that your config has something like this:

vim.g.python3_host_prog = "C:\Users\ASUS\AppData\Local\Programs\Python\Python312\"

That is why checkhealth reports that "C:UsersASUSAppDataLocalProgramsPythonPython312python.exe" cannot be found.

  1. on Windows you don't need to use \ slashes. / slashes work just fine, except for some cmd.exe commands.
    vim.g.python3_host_prog = "C:/Users/ASUS/AppData/Local/Programs/Python/Python312/"
    
  2. if you really want to use \ slashes you need to escape them:
    vim.g.python3_host_prog = "C:\\Users\\ASUS\\AppData\\Local\\Programs\\Python\\Python312\\"
    

from neovim.

JDCerberus avatar JDCerberus commented on June 25, 2024

Hi, that resolved the problem, I'm sorry for the inconvenience, this is the first time I use GitHub and lot of similar problems I found had \ so I didn't know.
Sorry again if I made you lost time and thank you for the help

from neovim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.