Problem with Snappy and error

that looks ok, i can see the python path there (C:\Python27)
This should be fine now.
Try and configure snappy again using this python path and NOT anaconda

there is one python.exe in the sen2cor directory. Although it is located under C:\Sen2Cor-02.08.00-win64\bin, it might still be called somehow.
Last thing I could think of but worth a try.

2 Likes

Do you mean to delete up this path?

yes, just temporally remove it from the PATH variable so this python is no longer conflicting with other python instances.

I think we’re in our right way, but should I press any enter or to wait?

I did first trial without to remove it, and it runs,

hallelujah

this is the right message we expect to get in the terminal.
Now this means you are all set. you can try and import the snappy now

it still runs, could I press Enter? Or should I wait?

press enter a few times. that’s it
you do not need to do anything else.

now, go to snappy folder, and try to import snappy or use sys module to append the path

same error, I also remove sen2cor path,

we are so close, now it should work, damn
when using sys module try adding two backslashes in your path as the messages in your terminal shows Problem with Snappy and error

2 Likes

you’re right…

import sys
sys.path.append('C:\\Users\\FALAH FAKHRI\\.snap\\snap-python\\snappy')
from snappy import ProductIO
2 Likes

can you try and import snappy while you are within snappy folder?

Thanks a lot, I think it works now, I copied the snappy folder to the site-packages in python,

Thanks a lot, I think it works now

wow, i cannot believe it.
well done, you did it
you can work with snappy now :wink:

1 Like

Tremendous thanks to you and to @ABraun for your big efforts

1 Like

great to hear!

Normally, I mark one post as the solution so others can spot it more quickly, but to be honest, I don’t know what was the solution in the end. Probably a mix of interfering python instances (sen2cor) and and missing folders or path variables.

Thank you @johngan for your patience and congratulations @falahfakhri for keeping at it!

2 Likes

I think, one thing that is worth mentioning for all window users is not to mix up different python instance. I think that was the solution at the end.
Users need to have one clean python installation and make sure they use this path to configure snappy.

1 Like