I installed Leap 15.2, followed by an installation of spyder3 via
zypper install spyder3
But when starting a test program I get the following messages:
spyder3 test2.py
No protocol specified
(python3:4260): GStreamer-WARNING **: 19:40:43.873: External plugin loader failed. This most likely means that the plugin loader helper binary was not found or could not be run. You might need to set the GST_PLUGIN_SCANNER environment variable if your setup is unusual. This should normally not be required though.
spyder3 test2.py
Traceback (most recent call last):
File “/usr/bin/spyder3”, line 3, in <module>
start.main()
File “/usr/lib/python3.6/site-packages/spyder/app/start.py”, line 89, in main
options, args = get_options()
File “/usr/lib/python3.6/site-packages/spyder/app/cli_options.py”, line 140, in get_options
options = parser.parse_args(argv)
File “/home/michel/gnu7_openmpi2/lib/site-packages/argparse.py”, line 1688, in parse_args
args, argv = self.parse_known_args(args, namespace)
File “/home/michel/gnu7_openmpi2/lib/site-packages/argparse.py”, line 1709, in parse_known_args
if isinstance(action.default, basestring):
NameError: name ‘basestring’ is not defined
Hi
The code needs fixing for python3, basestring is no longer available in Python 3, it needs to change to str, you could try the 2to3 tool (cnf 2to3)?
Thank you for your notice, but I don’t see how it could help me. The difference to Leap 15.1 is that the error message concerning basestring appears during startup of spyder3 before the python script is started. In Leap 15.1 one could still circumvent the basestring error message on start-up by adding in the code.
I have replaced “basestring” by “str” in argparse.py and it now works!! argparse.py is a software previously installed for my data reduction.
Thank you very much for your help.