Closed mcmillion closed 7 years ago
I've seen this on one of my four octoprint servers as well; unfortunately I haven't had time to debug it, and TBH I thought it was a configuration problem with that server rather than the plugin. I'll have to try to look into it, but unfortunately that's not likely in the next week as my schedule is moderately insane right now.
If you happen to figure out what is causing it let me know and I'll see if I can fix it :-/ In the mean time I'll get to it when I can
I'm in the middle of a print but I think I'm onto it via the logs:
2017-06-17 15:54:07,927 - octoprint.plugin.core - ERROR - Error loading plugin smsnotifier
Traceback (most recent call last):
File "/home/pi/oprint/local/lib/python2.7/site-packages/OctoPrint-1.3.4-py2.7.egg/octoprint/plugin/core.py", line 689, in _import_plugin
instance = imp.load_module(key, f, filename, description)
File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_smsnotifier/__init__.py", line 5, in <module>
from twilio.rest import TwilioRestClient
ImportError: cannot import name TwilioRestClient
I'll try some more stuff once my current print is done.
Good catch, I'm pretty sure you've nailed the issue. A little looking around reveals that they changed the name of TwilioRestClient to just Client in version 6; I've updated the package and also pushed it to pypi so you should be able to update and have it work, I think.
I haven't ever actually updated the plugin before, so I'm not sure if I needed to do anything else...
Dang. that wasnt' all of it; I suspect that there are also API changes that need to be made. I'll happily accept a PR if you want to fix it for me =] I can't spend any more time on it today, unfortunately. thanks for your help so far
I've got it working now; Turns out there was a bug in an intermediate version of phonenumbers
, which is a dependency. If you have the issue still after upgrading to the latest version, try running ~/oprint/bin/python -m pip install --upgrade phonenumbers
All good! Thanks!
Giving this a try today, and while it appears to install correctly, it never shows up in Octoprint's plugins manager or in the list of plugins to configure. Strangely enough, if you try to install again, the debug log says that it's already installed and so it reinstalls. Any ideas? Here's the output from the initial successful install: