Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't load anaconda-mode in python file #6608

Closed
lsytj0413 opened this issue Jul 17, 2016 · 5 comments
Closed

Can't load anaconda-mode in python file #6608

lsytj0413 opened this issue Jul 17, 2016 · 5 comments
Labels
Projects

Comments

@lsytj0413
Copy link

  • Ubuntu 16.04 LTS
  • GNU Emacs 24.5.1
  • last spacemacs verison on develop branch

Error Message:

Making python-shell-interpreter local to  *Python Internal [792caf12c778150badeeede64c068cee]* while let-bound!
Making python-shell-interpreter-args local to  *Python Internal [792caf12c778150badeeede64c068cee]* while let-bound!
Loading semantic/db-file...done
Configuring package eldoc...done
File mode specification error: (error "Selecting deleted buffer")
Can't guess python-indent-offset, using defaults: 4
Configuring package anaconda-mode...done

When i first open an python-file, it comes with the Selecting deleted buffer Error, and the completion doesn't work. But if i close the python-file and then open it again, the anaconda-mode configuring message is out, and the competion works fine.

I also notice that the ISSUE #1862 and ISSUE #1505, But this doesn't work for me.

@liuchengxu
Copy link

liuchengxu commented Aug 15, 2016

I also encountered the same problem. Emacs can't load expected major mode when first open a python file, which was loaded with Python/la. However, the following python files opened would be loaded with right python mode Python.

  • osx 10.11.6
  • GNU Emacs 24.5.1
  • spacemacs-0.105.21

update: Remove semantic layer toughly, the above problem was fixed for me.

@lsytj0413
Copy link
Author

@xuliuchengxlc
Thank you for your help.
Remove semantic works for me.

@dzhwinter
Copy link

dzhwinter commented Sep 7, 2016

+1
but remove semantic is not work for me

@leezu
Copy link
Contributor

leezu commented Oct 6, 2016

I run into this error if the first python file that I open is below a .python-version file (from pyenv, setting a virtual environment). If I open a python file that is not in a subfolder of a .python-version file no error occurs. Opening a python file that is below a .python-version file later does not raise the error either.

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!

@github-actions github-actions bot added the stale marked as a stale issue/pr (usually by a bot) label Feb 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Bugs
Not reproduced
Development

No branches or pull requests

5 participants