SPIDERMAN icon indicating copy to clipboard operation
SPIDERMAN copied to clipboard

'module' object has no attribute 'ModelParams'

Open prajwal309 opened this issue 7 years ago • 4 comments

I have installed and can successfully import the module. But I get error on the first next line: spider_params = sp.ModelParams(brightness_model="zhang").

prajwal309 avatar Feb 18 '18 01:02 prajwal309

Hi Prajwal, can you please describe the error in more detail?

lkreidberg avatar Feb 19 '18 19:02 lkreidberg

Hi Laura, oops, I forgot to mention the exact error. I pip installed spiderman, and have following two lines of code:

import spiderman as sp spider_params = sp.ModelParams(brightness_model='zhang')

I can import the library successfully but the next line gives me an error: spider_params = sp.ModelParams(brightness_model='zhang') AttributeError: 'module' object has no attribute 'ModelParams'

prajwal309 avatar Feb 19 '18 19:02 prajwal309

Hi Prajwal, the pip version is currently quite a long way behind the git version - sorry about that, I plan to do another "official" release on there shortly. In the meantime, could you try with the current github version? Cheers, Tom

tomlouden avatar Feb 19 '18 19:02 tomlouden

Thanks for the response.

prajwal309 avatar Feb 20 '18 04:02 prajwal309