Open mic-rigaud opened 6 years ago
I am using mac ide-python 1.2.0 Atom 1.34.0 Python 3.7.2 pyls 0.19.0 and pyls keep initialising for ever!
I just noticed that after an update of Atom I had this problem again, eventough it had disappeared before.
Solution I went to the ide-python settings and pasted the full path (in my case /usr/local/bin/python3) to the python version I want to use in the 'Python Executable' field. After restarting atom pyls worked fine.
Story
I am guessing this has to do with the fact that older MACs come with python 2.7 as the default, i.e., executing python
in a terminal will give you the prompt for that version.
If (like me) you have a different pyhton version, installed via homebrew or the like, then attempting to start any kernel will result in a prompt displaying the available python versions.
Selecting "Python 3" seems to work fine for executing statements, but pyls would not initialize for me without having set the path in the ide-python settings.
I had discovered somtehing similar before (see my comment above), but this time the upgrade of atom itself seems to have reset this setting.
Also what I am wondering is why this path issue cannot be resolved with the user's choice of python version, as code execution and the like seem to work fine without specifying that path...
For me it didn't worked in the flatpak version of atom. I installed the normal vesion (.rpm form atom.io) and then it worked with the exact same settings.
A solution for me (mac user):
install anaconda
my conda version conda 4.6.14
install pyls
and ide
pip uninstall python-language-server
pip uninstall flake8
pip install 'python-language-server[all]'
pip install flake8
apm install atom-ide-ui
apm install ide-python
My final plugins' versions:
python-language-server 0.26.1
atom-ide-ui@0.13.0
ide-python@1.4.1
A solution for me (mac user):
- install anaconda my conda version
conda 4.6.14
- install
pyls
andide
pip uninstall python-language-server pip uninstall flake8 pip install 'python-language-server[all]' pip install flake8 apm install atom-ide-ui apm install ide-python
My final plugins' versions:
python-language-server 0.26.1 atom-ide-ui@0.13.0 ide-python@1.4.1
This worked for me (Windows). Don't know how. Don't know why.
It's been the third time I've had this issue though :(
i have the same problem
I use python-language-server (0.31.8)
but i have found pyls package - https://pypi.org/project/pyls/#history I have installed this package, but version does not reletad (need to install 0.19+ and this version with different numbers) so with this package error was same and i uninstall it. Now i have only python-language-server (0.31.8) and 0 errors in console
PS: I installed successfully all packages from this command:
pip3 install 'python-language-server[all]'
0 errors
PS2: I have tried with python3.6 and python3.8 - same result
How to fix problem from screenshot? Thanks
I've had the same problem for months, and never got this to work - very frustrating. Finally figured out that it was because I had python aliased to python 3 in my zshell (on macos something like "alias python=/usr/local/bin/python3". I've tried changing this in the config settings for ide-python many times but to no avail. Does anyone have ideas as to how to get the config to save after restarting Atom? It always goes back to default (python instead of python3) when I change it.
Hello,
Since the new maj (1.0.0) I got the same problem explain here: https://github.com/lgeiger/ide-python/issues/85
However the problem seems different. The solution doesn't work and the error message in debug mode is different too. The command "pyls --help" works.
I use Atom Editor v1.25.1, and ide-python 1.0.0
Thank you,