-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Py6S.sixs_exceptions.ExecutionError: 6S executable not found #52
Comments
Hi - this error means that Py6S cannot find the underlying 6S software. How did you install Py6S? Did you follow the instructions at https://py6s.readthedocs.io/en/latest/installation.html, and did you use conda, or install using pip? |
I had a similar issue. Windows 10, 64-bit. Spyder 3.8 The actual problem is I installed Py6S according to conda-forge you mention in your https://py6s.readthedocs.io/en/latest/installation.html It was ok. Later in testing part the first test was ok again, but when I do recommended full test at the last part it generated errors. And since I did not see any work around or issues regarding that in your https://py6s.readthedocs.io/en/latest/installation.html#testing-py6s
|
Are you running this from within the Spyder development environment? If so, could you try running from a standard Python interactive console on the command line? With a conda install, the 6S executable should be installed in a place that can be found automatically. I think both you and the person posting above were running from Spyder, and so there's a possibility that a configuration issue with Spyder is causing the problem. Also, could you try running |
First, the problem starts from here, when I try to do the full test to see both 6S and Py6S working properly;
I have done this from Anaconda3 Prompt, the place you suggest.
I don't quite understand to run sixs command on commandline but when I do this happens.
But the first test is ok:
|
Huh, that's really strange - it is working for the test, but not when you actually use it. Presumably you're running all of these tests from the same Anaconda prompt? Can you try running the following in the interactive Python prompt, and send me the output:
That tests running it using the built-in self-test that you've run already, and then running it manually. Theoretically if it works for the first one then it should work for the second - but it'll be interesting to see. Then can you also try this:
and then send me the output of that. |
By the way, Robin, thanks for your rapid answers, I am very glad about that. Yes, I am using Anaconda Prompt (Anaconda3) then and now.
I tweaked the print part a bit and it produced a number as 134.632, for the following trial:
I did not get what happened there, seems to me it just repeated the wavelengths worked on. |
Ah sorry about the print statement - I missed out the brackets! That all seems to be working fine: the Can you try this now:
and see if you get any errors. If you don't get any errors, then |
Yeah, when I write print(results) I did get some numerical value. Now I am doing what you stated in the last comment.
Again, without errors it produced these. |
Hmm, it looks like everything is working now. Can you go back to trying what you originally tried, and see what happens? Ignore the bit with the
|
I ignored the test with ntpath, and this time this procedure produced the image you were showing in https://py6s.readthedocs.io/en/latest/quickstart.html And the rest of the QuickStart part seems smoothly flowing as well. Interesting, maybe a computer restart and all solved the issue silently. I will comment again if there is a persisting problem without any solution, thanks a lot for helping!. |
Ok great, I'll close this for the moment - please do comment again if there are any further issues. |
hello robintw ,i download the sixs_mac file and rename it to sixsV1.1 , Then i added the file to the local path on my mac, however, when i ran the test code , I still encountered the following problems:
Traceback (most recent call last): |
It seems to be trying to execute a copy of 6S located at When you say you added the file to your "local path", what exactly do you mean? If it turns out to be difficult to get the 6S executable on the path, then you can pass the full path to the executable to the SixS constructor, like |
Thanks a lot for reply Robintw, and the "local path" here i mean the path blow: "/usr/local/bin" and it i tried to pass the full path in to the SixS constructor, it still not working, well I'm going to try and reinstall the environment. Sorry to reply so late, the GITHUB hasn't informed me of any new features, so there's still a lot to explore. thanks agian! |
OutputParsingError: 6S returned an error (shown above) - check for invalid parameter inputs My errors always show like this, How can I fix it ? What I suppose to do ? Thanks!!!! |
Hello, Robintw. I installed Py6S on my laptop as the instruction in https://py6s.readthedocs.io/en/latest/installation.html on anaconda. On the one hand, I am constantly getting this "'from' is not recognized as an internal or external command, operable program or batch file." when I am executing this: "from Py6S import *" in anaconda prompt (of course, before that I activated py6s environment). |
The first problem is caused by you trying to run Python code directly in the Anaconda Prompt. You'll need to run The approach you're taking using Spyder is the correct one, and the error is showing that the underlying 6S model is not installed correctly. Did you follow all of the instructions in the installation guide? Try running |
First of all, thank you for the quick response. In the Spyder output is the same as before. |
Python 3.7.3 (default, Mar 27 2019, 22:11:17)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.4.0 -- An enhanced Interactive Python. Type '?' for help.
PyDev console: using IPython 7.4.0
Python 3.7.3 (default, Mar 27 2019, 22:11:17)
[GCC 7.3.0] on linux
from Py6S import *
s = SixS()
s.wavelength = Wavelength(0.675)
s.aero_profile = AeroProfile.PredefinedType(AeroProfile.Maritime)
s.run()
Traceback (most recent call last):
File "/home/rohit/anaconda3/lib/python3.7/site-packages/IPython/core/interactiveshell.py", line 3296, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "", line 1, in
s.run()
File "/home/rohit/Downloads/Py6S-master (1)/Py6S/sixs.py", line 322, in run
raise ExecutionError("6S executable not found.")
Py6S.sixs_exceptions.ExecutionError: 6S executable not found.
The text was updated successfully, but these errors were encountered: