[Python+Spyder] Spyder zeigt beim Start einen Fehle an

in #deutsch3 years ago

Spyder startet gleich mit einem Fehler:

File "/site-packages/spyder/plugins/ipythonconsole/plugin.py", line 739, in
lambda c=client: self.process_started(c))
File "/site-packages/spyder/plugins/ipythonconsole/plugin.py", line 1380, in process_started
self.main.variableexplorer.add_shellwidget(client.shellwidget)
File "/site-packages/spyder/plugins/variableexplorer/plugin.py", line 134, in add_shellwidget
nsb.setup(**self.get_settings())
TypeError: setup() got an unexpected keyword argument 'exclude_callables_and_modules'

Der Fehler liegt an folgender Zeile:
/site-packages/spyder/plugins/variableexplorer/widgets/namespacebrowser.py:84

def setup(self, check_all=None, exclude_private=None,
         exclude_uppercase=None, exclude_capitalized=None,
         exclude_unsupported=None, excluded_names=None,
         minmax=None, dataframe_format=None,
         show_callable_attributes=None,
         show_special_attributes=None):

Die Lösung ist **kwargs als Parameter hinzuzufügen:

def setup(self, check_all=None, exclude_private=None,
         exclude_uppercase=None, exclude_capitalized=None,
         exclude_unsupported=None, excluded_names=None,
         minmax=None, dataframe_format=None,
         show_callable_attributes=None,
         show_special_attributes=None, **kwargs):
Sort:  

Congratulations @fehlerbeheber! You have completed the following achievement on the Hive blockchain and have been rewarded with new badge(s) :

You received more than 100 upvotes.
Your next target is to reach 200 upvotes.

You can view your badges on your board and compare yourself to others in the Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP

Support the HiveBuzz project. Vote for our proposal!