id

247

publisher

jnanar@tickets.goffi.org/a566cc4b-fcf9-4c20-9125-dffaa87ffbbe

title
Unable to use file sharing
author
jnanar
created
25/03/2018, 17:52
updated
11/07/2019, 18:47
labels
sat jp
type
bug
status
closed
priority
normal
milestone
0.7
severity
normal
body

When trying to share the current directory, the following error is obtained:

jp file share path -cp profile_name . -j jid@server.tld
can't share path: UnknownMethod: Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/dbus/service.py", line 654, in _message_cb
(candidate_method, parent_method) = _method_lookup(self, method_name, interface_name)
File "/usr/lib/python2.7/site-packages/dbus/service.py", line 246, in _method_lookup
raise UnknownMethodException('%s is not a valid method of interface %s' % (method_name, dbus_interface))
UnknownMethodException: org.freedesktop.DBus.Error.UnknownMethod: Unknown method: FISSharePath is not a valid method of interface org.goffi.SAT.plugin

When I try to list the files (even if the previous command failed, we should have a clear output)

jp file share list jid@server.tld
Can't import sat_frontends.jp.output_template plugin, ignoring it: No module named pygments
Unable to set arguments (u'jid@server.tld', u'', {}, u'profile_name') according to signature None: <type 'exceptions.ValueError'>: Unable to guess signature from an empty dict
Traceback (most recent call last):
File "/usr/bin/jp", line 25, in <module>
jp.run()
File "/usr/lib/python2.7/site-packages/sat_frontends/jp/base.py", line 521, in run
self.args._cmd.run()
File "/usr/lib/python2.7/site-packages/sat_frontends/jp/base.py", line 970, in run
self.host.connect_profile(self.connected)
File "/usr/lib/python2.7/site-packages/sat_frontends/jp/base.py", line 661, in connect_profile
callback()
File "/usr/lib/python2.7/site-packages/sat_frontends/jp/base.py", line 984, in connected
self.start()
File "/usr/lib/python2.7/site-packages/sat_frontends/jp/cmd_file.py", line 447, in start
exit_code=C.EXIT_BRIDGE_ERRBACK))
File "/usr/lib/python2.7/site-packages/sat_frontends/bridge/dbus_bridge.py", line 135, in getPluginMethod
return method(args, kwargs)
File "/usr/lib/python2.7/site-packages/dbus/proxies.py", line 137, in call
keywords)
File "/usr/lib/python2.7/site-packages/dbus/connection.py", line 584, in call_async
message.append(signature=signature,
args)
ValueError: Unable to guess signature from an empty dict

comments_uri
xmpp:pubsub.goffi.org?;node=urn%3Axmpp%3Amicroblog%3A0%3Acomments%2Forg.salut-a-toi.tickets%3A0_He7onzZPdsJ7itsEc94saJ
Hi, I've just tried it and it's working fine for me, you're first error looks like the plugin was not loaded, can you try again and check backend log if the problem is still here? The second issue is similar, I suspect that the plugin was not loaded at all. Also note that in this case you are doing a direct device to device sharing, so you need to use a full jid (with the resource specified) for second command. I'll document this hopefully soon so it will be more clear. Also I'm planning to implement XEP-0353 for 0.8 so the full jid would not be mandatory anymore.

You are not logged. You need to log in to comment.