-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Error on running Plotly with batch jobs on remote server #1068
Comments
Hi @apal90 , If you run just a single job on the remote server does it work? I'm wondering if it's something about the server configuration, or it it's some issue with having a bunch of jobs trying to sign in at the same time. Also, what version of plotly.py are you running? I ask because in version 3 we added logic to automatically retry server requests if they fail at first. And finally, what is your desired visualization output from the server jobs? You might consider just using plotly.py's offline mode (Where there is no sign-in involved and no communication with the plot.ly servers). This forum post might be helpful: https://community.plot.ly/t/plotly-plots-on-server/10780 |
@jonmmease Indeed, a single job does work fine. Even upto 10-12 jobs work without problems. If I try to submit more than than simultaneously, several of them terminate with one of two errors:
or
Here is the sum total of my Plotly declarations --
Is this not sufficient to run plotly offline? I don't see where I am trying to connect online. I only used the My Plotly version is 2.5.1, and my desired output is simple 3D scatter plots and triplots, which I save directly to disk, as advised in the forum post that you shared. Please let me know if the above information tells you anything. Will upgrading Plotly suffice? |
Hi @apal90 , Yes, you can use plotly offline without any credentials. But I'm not sure I'm following your example any more. Can you remove the call to It would also be helpful if you could update to the current version (3.1.0). I don't expect that it will fix the issue, but it will make debugging easier. |
Hi @jonmmease , I am sorry, but I had made an error in reporting my code. Also, I upgraded to the latest version, but that does not solve my problems. My Plotly declarations are as follows --
So, as you see, I already use the offline versions of The error I get is the following:
And that's it. The other error message stopped appearing. Does that make anything clearer? |
Ok, I think I might see what's going on here. It looks like we're automatically checking for read-write permissions on the This warning message is a bit misleading since you still don't need to call Please remove the Once we sort this out I'll create an issue to work on removing this check when it's not needed and not raise the warning when working offline, but I don't expect the warning itself to cause a problem. Thanks |
@jonmmease I removed the |
Great! So you can just ignore the warning for now (and if it really bothers you, you could also suppress it altogether: https://docs.python.org/3/library/warnings.html) I'm going to close this issue in favor of #1076 now. Thanks for reporting this! |
See #1195 for full resolution |
I am a regular user of Plotly with python, but only on my own computer, where I don't run more than a couple of instances of plotly at the same time. However, I now need to run several copies of my program, which uses plotly, simultaneously on a remote server. I use the following lines at the top of my code:
import plotly.plotly as py
py.sign_in('id','key') ## necessary for server simulations
This has worked for me all along, but I now get the error message:
plotly.exceptions.PlotlyError: Sign in failed.
So, what is going on? Do I need to pay even for offline use of Plotly?
The text was updated successfully, but these errors were encountered: