screencloud icon indicating copy to clipboard operation
screencloud copied to clipboard

Error with plugins when starting ScreenCloud

Open dbermond opened this issue 8 years ago • 23 comments

I'm having the following error when starting ScreenCloud. It happens with the git master version and also with the 1.2.0 release version.

When using the git master version compiled with Qt5 interface the error is (username intentionally left blank): screencloud-pythonqt-error1 screencloud-pythonqt-error2

Console output from git master version:

$ screencloud
[WARN] "Error while parsing script file /home/user/.local/share/screencloud/ScreenCloud/plugins/ftp/main.py"
[WARN] "Error while parsing script file /home/user/.local/share/screencloud/ScreenCloud/plugins/imgur/main.py"
[WARN] "Error while parsing script file /home/user/.local/share/screencloud/ScreenCloud/plugins/sftp/main.py"
[WARN] "Error while parsing script file /home/user/.local/share/screencloud/ScreenCloud/plugins/dropbox/main.py"
[WARN] "Error while parsing script file /home/user/.local/share/screencloud/ScreenCloud/plugins/file/main.py"
[INFO] "Loaded 5 plugin(s)"
[INFO] "Using icon from theme: oxygen"
[WARN] "Failed to call isConfigured() in ImgurUploader"
[WARN] "Failed to call isConfigured() in SFTPUploader"
[WARN] "Failed to call isConfigured() in FileUploader"
[WARN] "Failed to call isConfigured() in FTPUploader"
[WARN] "Failed to call isConfigured() in DropboxUploader"
[INFO] "Plugin update check. Has version 1.3 of 'dropbox'. Latest is 1.3"
[INFO] "Plugin update check. Has version 1.6 of 'imgur'. Latest is 1.6"
[INFO] "Plugin update check. Has version 1.4 of 'ftp'. Latest is 1.4"
[INFO] "Plugin update check. Has version 1.4 of 'sftp'. Latest is 1.4"
[INFO] "Plugin update check. Has version 1.1 of 'file'. Latest is 1.1"
[INFO] "Plugin update check. Has version 1.3 of 'dropbox'. Latest is 1.3"
[INFO] "Plugin update check. Has version 1.6 of 'imgur'. Latest is 1.6"
[INFO] "Plugin update check. Has version 1.4 of 'ftp'. Latest is 1.4"
[INFO] "Plugin update check. Has version 1.4 of 'sftp'. Latest is 1.4"
[INFO] "Plugin update check. Has version 1.1 of 'file'. Latest is 1.1"

When using the 1.2.0 release version, the error is (username intentionally left blank): screencloud-release-error screencloud-release-error2 Console output from 1.2.0 release version:

$ screencloud 
[WARN] "Error while parsing script file /home/user/.local/share/data/screencloud/ScreenCloud/plugins/sftp/main.py" 
[INFO] "Loaded 5 plugin(s)" 
[WARN] "Audio format not supported by backend. Trying nearest format." 
[WARN] "Error while creating audio output. Code: 1 Device: " 
[INFO] "Using bundled icon: :/systray/trayicon-gray.svg" 
[WARN] "Failed to call isConfigured() in SFTPUploader"

With git master version (Qt5) it shows these two dialogs for every plugin that I have installed: ftp, sftp, imgur, dropbox and file. The mentioned installed plugins cannot be used. They all give a similiar dialog error when trying to configure them in Preferences-> Online Services->Settings. I can save screenshots only to Clipboard and directly to ScreenClound online service.

When using the 1.2.0 release version this error occurs only with the sftp plugin. It gives a similiar dialog error when trying to configure it in Preferences-> Online Services->Settings. All other plugins are working.

ScreenCloud: version git master (currently at version 1.2.0.r109.gc328b34) and version 1.2.0 release OS: Arch Linux x86_64 Desktop: Plasma 5.7.2 gcc: 6.1.1 python: 3.5.2 python2: 2.7.12 qt5-base: 5.7.0 pythonqt-qt5: 3.1 python-pyqt5: 5.6 qt4: 4.8.7 python-pyqt4: 4.11.4

Any help would be appreciated. Thank you.

dbermond avatar Jul 22 '16 18:07 dbermond

Thanks for the detailed report!

This is a problem with the newest version of PythonQt and not ScreenCloud itself. It seems that the QtUiTools wrappers were removed. I've asked the PythonQt author if the change was intentional or not: https://sourceforge.net/p/pythonqt/discussion/631393/thread/28b3bb01/.

olav-st avatar Jul 25 '16 10:07 olav-st

Thank you for your reply and support Olav.

I compiled PythonQt using the latest SVN version (actually r438, after the upstream re-addition of QtUiTools wrappers) and recompiled screenclound git master version (Qt5) but the issue partially persists. In screencloud git master version all plugins are working now, except for sftp.

Screenshots of error dialog when staring screenclout git master: screencloud-git-new-error1-upload screencloud-git-new-error2

New console output of git master version:

$ screencloud
[WARN] "Error while parsing script file /home/user/.local/share/screencloud/ScreenCloud/plugins/sftp/main.py"
[INFO] "Loaded 5 plugin(s)"
[INFO] "Using icon from theme: oxygen"
[WARN] "Failed to call isConfigured() in SFTPUploader"
[INFO] "Plugin update check. Has version 1.3 of 'dropbox'. Latest is 1.3"
[INFO] "Plugin update check. Has version 1.6 of 'imgur'. Latest is 1.6"
[INFO] "Plugin update check. Has version 1.4 of 'ftp'. Latest is 1.4"
[INFO] "Plugin update check. Has version 1.4 of 'sftp'. Latest is 1.4"
[INFO] "Plugin update check. Has version 1.1 of 'file'. Latest is 1.1"
[INFO] "Plugin update check. Has version 1.3 of 'dropbox'. Latest is 1.3"
[INFO] "Plugin update check. Has version 1.6 of 'imgur'. Latest is 1.6"
[INFO] "Plugin update check. Has version 1.4 of 'ftp'. Latest is 1.4"
[INFO] "Plugin update check. Has version 1.4 of 'sftp'. Latest is 1.4"
[INFO] "Plugin update check. Has version 1.1 of 'file'. Latest is 1.1"

The sftp plugin cannot be configured in Preferences->Online Services->Settings, producing a similiar dialog error.

When using screencloud version 1.2.0 release, the issue remains the same (problem occurs only with sftp plugin as in initial description).

As you can see, the issue seems to be restricted to the sftp plugin.

Also, I tried to apply a patch over PythonQt 3.1 using the SVN commit that re-added the QtUiTools wrappers. By doing this, the issue is almost the same with screencloud git master version, but now with sftp and dropbox plugins being affected, making both unusable, and screencloud version 1.2.0 remains with the same sftp problem.

dbermond avatar Jul 25 '16 18:07 dbermond

You probably don't have PyCrypto installed. Try installing python-crypto or python2-crypto.

olav-st avatar Jul 29 '16 16:07 olav-st

I had python-crypto installed. Installing python2-crypto doesn't solve the sftp plugin issue.

Installing python-paramiko and python2-paramiko doesn't help either.

dbermond avatar Jul 29 '16 17:07 dbermond

After recent update (yesterday), the app on startup thoughs following errors: 2016-08-13_165224 2016-08-13_165958 It is a bit annoying, feels like plugins are not tested before they are shipped.

jeserkin avatar Aug 13 '16 14:08 jeserkin

After recent update (yesterday), the app on startup thoughs following errors:

I'm having this same issue since yesterday after the dropbox plugin got updated from version 1.3 to 1.5.

dbermond avatar Aug 13 '16 16:08 dbermond

I'm having the same issues as people above. I've just installed screencloud on ubuntu 16.04 using new repo entries. No plugins seem to work.

Also the rectangle selection lags a lot.

furai avatar Aug 14 '16 16:08 furai

Temproray workaround to those who updated to latest plugins and can not use dropbox:

  1. Download previoud plugin version https://github.com/olav-st/screencloud-plugins/blob/467f90f44c3e2a33205c7c4d56bc31a200584c7f/dropbox/current.zip
  2. Close ScreenCloud
  3. In AppData directory open dropbox plugin directory e.g.: AppData\Local\screencloud\ScreenCloud\plugins\dropbox
  4. Remove all files from that directory and extract those, that where in current.zip file download on step 1.
  5. Start ScreenCloud and do not update plugin for now.
  6. Profit!

jeserkin avatar Aug 15 '16 17:08 jeserkin

It is a bit annoying, feels like plugins are not tested before they are shipped.

Because they aren't very thoroughly tested. I was working on v1.3.0 of ScreenCloud when I updated the plugin. The new version uses Python 3 on most systems so that's why I didn't encounter this error. Updating to 1.3.0 should fix the problem for you.

olav-st avatar Aug 16 '16 08:08 olav-st

Just got this error after upgrading to 1.3.0 and reinstalled sftp plugin :

Error in file: /home/pfoo/.local/share/screencloud/ScreenCloud/plugins/sftp/main.py Traceback (most recent call last): File "", line 5, in File "/home/pfoo/.local/share/screencloud/ScreenCloud/plugins/sftp/modules/paramiko/init.py", line 30, in from paramiko.transport import SecurityOptions, Transport File "/home/pfoo/.local/share/screencloud/ScreenCloud/plugins/sftp/modules/paramiko/transport.py", line 50, in from paramiko.dsskey import DSSKey File "/home/pfoo/.local/share/screencloud/ScreenCloud/plugins/sftp/modules/paramiko/dsskey.py", line 26, in from Crypto.PublicKey import DSA ImportError: No module named Crypto.PublicKey

then

Failed to call SFTPUploader.isConfigured() Traceback (most recent call last): File "", line 1, in ImportError: cannot import name SFTPUploader Traceback (most recent call last): File "", line 1, in NameError: name 'SFTPUploader' is not defined

pycrypto is installed :

python-crypto is already the newest version (2.6.1-6build1). python3-crypto is already the newest version (2.6.1-6build1).

pfoo avatar Aug 16 '16 09:08 pfoo

Because they aren't very thoroughly tested. I was working on v1.3.0 of ScreenCloud when I updated the plugin. The new version uses Python 3 on most systems so that's why I didn't encounter this error. Updating to 1.3.0 should fix the problem for you.

I'm using git master version (currently at version 1.3.0.r1.g38937c5) and python 3.5.2. Still, the issue remains with sftp and dropbox plugins.

Just got this error after upgrading to 1.3.0 and reinstalled sftp plugin

Good to know that I'm not alone with the issue in sftp plugin.

dbermond avatar Aug 16 '16 15:08 dbermond

I have the same issue with SFTP plugin on Kubuntu 16.04 with v1.3.0 of ScreenCloud. Also I have the issue with SFTP plugin on Windows 7 even with fresh install of the program. I get the following error during attempt to upload screenshot into SFTP server: screencloud

This error I see when I try to open settings of SFTP plugin: screencloud2

sly-roar avatar Aug 16 '16 17:08 sly-roar

I'm getting the same ImportError: No module named 'Crypto.PublicKey' error, which gives me an another error afterwards: NameError: name 'SFTPUploader' is not defined This happens when I installed the SFTP plugin or when launching Screencloud.

https://gist.github.com/mkody/b19937e079441b5d39576b0f4bf1ac22

Typing from Crypto.PublicKey import DSA on an interactive Python shell doesn't return any error. 1471368503

OS: Arch Linux, x86_64, 4.6.4-1-ARCH #1 SMP PREEMPT Python: Python 3.5.2 pip: pip 8.1.2 from /usr/lib/python3.5/site-packages (python 3.5)

mkody avatar Aug 16 '16 17:08 mkody

Hello, after update to screecloud 1.3 error come back. Do you have solution ? I have installed screendcloud with your repo.

vdeville avatar Aug 17 '16 07:08 vdeville

@MyTheValentinus if you are looking for any solution, then did even care to read my previous comment?

jeserkin avatar Aug 18 '16 20:08 jeserkin

I also had problems with running SC, then I just deleted ~/.config/screencloud/ScreenCloud.conf and restarted SC. All the issues has gone.

OnkelTem avatar Aug 19 '16 15:08 OnkelTem

For ubuntu, copying /usr/lib/python2.7/dist-packages/Crypto/ to ~/.local/share/screencloud/ScreenCloud/plugins/sftp/modules/ fixes the issue for now. Not working if using the python3 version of Crypto (but the error changes). Could be related, I thought screencloud 1.3 was using python 3 ?

pfoo avatar Aug 19 '16 16:08 pfoo

Hello @pfoo, Thank for your quick solution. I'm waiting @olav-st final solution to work with python 3. Thank

vdeville avatar Aug 19 '16 16:08 vdeville

@MyTheValentinus mate why are you doing that? I just said how I've fixed my issue, nothing more. I'm not a model walking a catwalk for your evaluation!

OnkelTem avatar Aug 22 '16 20:08 OnkelTem

For the dropbox plugin, see https://github.com/olav-st/screencloud/issues/224. I've pushed a fix.

olav-st avatar Nov 27 '16 19:11 olav-st

Hi @olav-st !

I'm running screencloud (1.3, but I tried with 1.2 as well) on Ubuntu 16.04 and I'm still struggling with the sftp plugin and the "No module named Crypto.PublicKey", which is how we share screenshots in my team. I've tried many workarounds, but still no luck... :'(

Do you have a solution for poor guys like me?

Thanks! Clément

cgrimal avatar Feb 07 '17 09:02 cgrimal

Hi, I'm getting this error with SC dropbox service.

Error in file: /home/zubair/.local/share/screencloud/ScreenCloud/plugins/dropbox/main.py Traceback (most recent call last): File "<string>", line 20, in <module> File "/home/zubair/.local/share/screencloud/ScreenCloud/plugins/dropbox/modules/dropbox/__init__.py", line 3, in <module> from .dropbox import __version__, Dropbox, DropboxTeam, create_session File "/home/zubair/.local/share/screencloud/ScreenCloud/plugins/dropbox/modules/dropbox/dropbox.py", line 19, in <module> from . import stone_serializers File "/home/zubair/.local/share/screencloud/ScreenCloud/plugins/dropbox/modules/dropbox/stone_serializers.py", line 23, in <module> from . import stone_validators as bv File "/home/zubair/.local/share/screencloud/ScreenCloud/plugins/dropbox/modules/dropbox/stone_validators.py", line 21, in <module> from typing import Optional ImportError: No module named 'typing'

Any help on how to resolve it?

Thanks

mzubairharoon avatar Oct 06 '18 09:10 mzubairharoon

This issue has had no activity in the last 60 days. Please add a reply if you want to keep this issue active, otherwise it will be automatically closed after 30 days.

github-actions[bot] avatar May 01 '24 02:05 github-actions[bot]