Giter Site home page Giter Site logo

Comments (9)

chemzqm avatar chemzqm commented on June 15, 2024 1

Fixed, environment rule is added.

from coc-python.

wadkar avatar wadkar commented on June 15, 2024 1

Huh. Well, I don't use conda but I do manage separate virtualenv for neovim and let g:python3_host_prog = $HOME . '/pyenv/versions/.../python3' . But I still get this error.

@chemzqm can you please let us know what are we missing here? What information can we provide you so that it's easy to debug for you?

from coc-python.

gugahoa avatar gugahoa commented on June 15, 2024

I believe this could be related to #20

from coc-python.

wadkar avatar wadkar commented on June 15, 2024

This looks like broken again after PR #143 got merged. It is not clear what the PR hopes to achieve given it's description is not in English. But it looks like it is trying to activate environment differently based on whether the shell is fish or not.

Can you please point me to the code that sets VIRTUAL_ENV variable and let me see if I can fix it?

from coc-python.

atgmello avatar atgmello commented on June 15, 2024

I can confirm to be facing this same issue, albeit with conda environments.

from coc-python.

wadkar avatar wadkar commented on June 15, 2024

@atgmello are you using pyenv? How are you activating/using the virtualenv?

from coc-python.

atgmello avatar atgmello commented on June 15, 2024

@wadkar No, I'm using conda for both installing packages and managing my environments, so I activate a given env with conda activate env.

from coc-python.

wadkar avatar wadkar commented on June 15, 2024

@atgmello that's interesting. I believe the issue is due to the way with which one detects whether a virtual environment is active or not. Can you try and use the CoC command to set python interpret and point to the conda environment?

from coc-python.

atgmello avatar atgmello commented on June 15, 2024

Well, turns out this was on me. After running a :checkhealth I noticed that neovim wasn't finding the Python provider. So I created a new conda env, installed pynvim and linked to it with let g:python_host_prog = '/path/to/python' (and the same for python3 as well) in my init.vim. With that the issue seemed to be over, I could for instance get autocompletion for pandas, which wasn't happening before. However, running :checkhealth again I ran into this wierd import pynvimImportError: bad magic number in 'pynvim': b'\x03\xf3\r\n', but I guess that's another issue altogether.

Edit: installing pynvim to my base conda environment just makes everything work and I am very confused.

from coc-python.

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.