Comments (9)
Fixed, environment rule is added.
from coc-python.
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.
I believe this could be related to #20
from coc-python.
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.
I can confirm to be facing this same issue, albeit with conda environments.
from coc-python.
@atgmello are you using pyenv
? How are you activating/using the virtualenv?
from coc-python.
@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.
@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.
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)
- yarn install --frozen-lockfile fails HOT 2
- Intellisense low on offers HOT 1
- Cannot disable linting HOT 1
- Wrong Pyright errors. HOT 1
- python.createTerminal not activating virtual env
- iPython as interpreter
- How to make reappear the info of a function
- Why did this happen whenever I opened a python file HOT 1
- "Linter pylint is not installed." Even though it is.
- coc formatter deleting lines when formatting sometimes HOT 1
- Black does not support the "Format Selection" command
- Modified the wrong code, but the underline still exists. HOT 1
- Can't get out of the terminal one interacted with HOT 1
- Uncaught Exception Error on Windows!
- Default ctags exclude list is unconfigurable HOT 1
- Jedi error raised on python completion HOT 2
- Silence [coc.nvim]: Uncaught exception: spawn python2 ENOENT HOT 4
- Autocompletion through Coc vs VS Code HOT 2
- Settings
- Error float window hangs and then not able to get completion HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from coc-python.