specidentify icon indicating copy to clipboard operation
specidentify copied to clipboard

__init__.py remove for loop

Open HeloiseS opened this issue 6 years ago • 0 comments

Here is the error message returned when importing specreduce:

(specid) heloise@Lola:~/Data/specreduce_tests$ python try_specid.py 
Traceback (most recent call last):
  File "try_specid.py", line 8, in <module>
    from specreduce.interidentify import InterIdentify
  File "/home/heloise/Data/specreduce_tests/specidentify/specreduce/__init__.py", line 17, in <module>
    sip.setapi(cl, 2)
ValueError: API 'QString' has already been set to version 1

And here are the lines to comment out from the init.py file:

#for cl in ('QString', 'QVariant'):
#    sip.setapi(cl, 2)

That fixed the ValueError.

HeloiseS avatar May 03 '18 17:05 HeloiseS