SEN2COR command line-not all arguments converted during string formatting

I run the sen2cor successfully in SNAP. But when I ran it in command line window, I got errors, which says: TypeError: not all arguments converted during string formatting. Does anyone know how to solve this problem? Thanks!


I’m not 100% sure that this is what I experienced (can’t remember the error I had exactly), but if it is, then it’s a problem with user privileges. I had to start my console as administrator to resolve it. The error popped up when I tried to write the level 2 product to C://. Worked fine for my user folders.

1 Like

Thanks! As you suggested, it worked if I opened command window by Run as administrator.

I am facing the same problem but under Linux (Ubuntu). Any ideas on how to solve? I’ve already tried appending sudo but did not work. Thanks