Skip to content

__init__.py remove for loop  #23

@HeloiseS

Description

@HeloiseS

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions