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

AttributeError: 'NoneType' object has no attribute 'apply_plugin_settings' when attempting to activate Automatic Connections for Help #6673

Closed
LUNTSAI opened this issue Mar 8, 2018 · 7 comments

Comments

@LUNTSAI
Copy link

LUNTSAI commented Mar 8, 2018

Cannot auto connect to the editor...
And the use of help always show "no document available"

@CAM-Gerlach
Copy link
Member

You've given us extremely little information to go on, but it sounds like an install issue of some sort. What do you mean by

Cannot auto connect to the editor...

Please be clear and detailed.

Please try the steps listed in the Spyder Troubleshooting Guide, specifically the Basic First Aid and Emergency CPR sections, which resolve the great majority of Spyder installation issues.

If it still isn't working, please describe in detail the circumstances in which the error occurred, and post the information listed in relevant subsection of the Calling for Help section as a comment to this issue, and we'll try to help if we can. Thanks, and best of luck!

@LUNTSAI
Copy link
Author

LUNTSAI commented Mar 8, 2018

Sorry for my short problem description.
My "help" by press Ctrl + I work well in IPython console, however, when I tried to use this short cut in editor, it always showed the "No documentation available".
I tried to Preference -> Help -> Automatic connection to select both editor and IPython console, but everytime I pressed apply, it showed the following message "Spyder has encounterd an internal problem".
Is it related to the problem of the fall lunch of Anaconda Navigator? (Today, I found my Anaconda cannot lunch, it shows psutil.AccessDenied pid = 8752)

@CAM-Gerlach
Copy link
Member

CAM-Gerlach commented Mar 8, 2018

My "help" by press Ctrl + I work well in IPython console, however, when I tried to use this short cut in editor, it always showed the "No documentation available".

This is a duplicate of a well known issue, #2162 , that can be caused by a number of different proximate causes. Check out that thread for some fixes.

Is it related to the problem of the fall lunch of Anaconda Navigator?

Well, it is spring now...does it have a problem with breakfast and dinner as well?

All jokes aside, the latter isn't because I reproduced it just now. However, the former might be, if it is, then it is completely outside of Spyder' control and you should do a complete uninstall and reinstall of the latest version of Anaconda, You can also try the steps listed in the Spyder Troubleshooting Guide, specifically the Basic First Aid and Emergency CPR sections, which resolve the great majority of Spyder installation issues.

I tried to Preference -> Help -> Automatic connection to select both editor and IPython console, but everytime I pressed apply, it showed the following message "Spyder has encounterd an internal problem".

This seems it could be a new, separate issue, and although useless by itself without the error traceback it gave you, I was able to easily reproduce it by simply doing what you stated in the latest version of Spyder. The traceback (below) is very similar but not quite identical to #6519 , and the proximate trigger is different, so I'm not sure if it needs to be addressed separately. @ccordoba12 ?

File "C:\Anaconda3\lib\site-packages\spyder\plugins\configdialog.py", line 223, in button_clicked
configpage.apply_changes()
File "C:\Anaconda3\lib\site-packages\spyder\plugins\configdialog.py", line 104, in apply_changes
self.apply_callback()
File "C:\Anaconda3\lib\site-packages\spyder\plugins\configdialog.py", line 269, in
self.apply_settings(self.changed_options))
File "C:\Anaconda3\lib\site-packages\spyder\plugins\help.py", line 552, in apply_plugin_settings
self.editor.apply_plugin_settings(options=[connect_n])
AttributeError: 'NoneType' object has no attribute 'apply_plugin_settings'

@CAM-Gerlach CAM-Gerlach reopened this Mar 8, 2018
@CAM-Gerlach CAM-Gerlach changed the title Automatic error report AttributeError: 'NoneType' object has no attribute 'apply_plugin_settings' when attempting to active Automatic Connections for Help Mar 8, 2018
@CAM-Gerlach CAM-Gerlach changed the title AttributeError: 'NoneType' object has no attribute 'apply_plugin_settings' when attempting to active Automatic Connections for Help AttributeError: 'NoneType' object has no attribute 'apply_plugin_settings' when attempting to activate Automatic Connections for Help Mar 8, 2018
@ccordoba12
Copy link
Member

The traceback (below) is very similar but not quite identical to #6519 , and the proximate trigger is different, so I'm not sure if it needs to be addressed separately. @ccordoba12 ?

The underlying cause is the same as the one reported on issue #6519, so this is fixed now and it'll be part of 3.2.8.

@CAM-Gerlach
Copy link
Member

Great!

@LUNTSAI
Copy link
Author

LUNTSAI commented Mar 9, 2018

Thanks all ~
Some kind of weird...
Maybe the short-cut of spyder went wrong for some reason...
After I reset my Anaconda and used it to lunch spyder, the problems were no longer exist.

@CAM-Gerlach
Copy link
Member

CAM-Gerlach commented Mar 9, 2018

Glad you got it fixed. I explain the likely causes of each issue above.

The help/inspection issue is usually due to some particular or another of your install, so that's unsurprising.

The Anaconda Navigator issue certainly is, and has nothing to do with Spyder.

The help connection issue is related to another known bug, and will be fixed in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants