Code Monkey home page Code Monkey logo

alfred-dropbox's People

Contributors

alok avatar fniephaus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

alfred-dropbox's Issues

Sharing DB link for a .gif file returns static image

I'm very likely not understanding exactly what this workflow is copying to the clipboard but I'm trying to build my own workflow that simply accesses one folder (within public directory) of my drop box, queries by filename, copies to clipboard the public dropbox link for the file on return and then pastes it into the current cursor location .

I've got everything but the last two working just fine. I always get a broken link on my workflow and when I used yours the shared link only returns a static image of the gif.

I know yours is directly using the DB API whereas I think what I'm trying to do is locally access the files and somehow copy the public link (as you would by right-clicking the file in finder) and then paste it, but one step at a time of course.

Feel free to just close this, but I've seen and used a lot of your workflows and I'd appreciate any tips you could send my way!

ascii Encoding problem…

Recently, I've installed OsX El Capitan, and now, I have this error when I browse a dropbox (a problem with the accents in folder name) :

Error in workflow 'com.fniephaus.dropbox'
'ascii' codec can't encode character u'\xe9' in position 37 origninal not in range(128)

screencapture

Do you know how I can fix that ?

  • python version?

Doesn't function after auth...

Starting debug for 'Dropbox for Alfred - COPY'

[2018-10-03 08:52:37][ERROR: input.scriptfilter] Code 1: 08:52:37 workflow.py:2249 DEBUG workflow version: 2.3.0
08:52:37 workflow.py:1657 DEBUG reading settings from /Users/Benjamin/Library/Application Support/Alfred 3/Workflow Data/com.fniephaus.dropbox/settings.json
08:52:37 workflow.py:2532 DEBUG Update check not due
08:52:37 workflow.py:1884 DEBUG loading cached data: /Users/Benjamin/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/com.fniephaus.dropbox/__workflow_update_status.cpickle
08:52:37 workflow.py:2462 DEBUG update_data: {u'available': False}
08:52:37 workflow.py:2651 DEBUG Got password : com.fniephaus.dropbox:dropbox_access_tokens
08:52:37 workflow.py:2651 DEBUG Got password : com.fniephaus.dropbox:dropbox_access_tokens
08:52:37 workflow.py:2267 ERROR [400] u'v1_retired'
Traceback (most recent call last):
File "/Users/Benjamin/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.4A420B7A-3718-4454-AAF6-8A6EBB65ED2C/workflow/workflow.py", line 2260, in run
func(self)
File "dropbox_filter.py", line 28, in main
'dropbox_accounts', data_func=get_account_info, max_age=360)
File "/Users/Benjamin/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.4A420B7A-3718-4454-AAF6-8A6EBB65ED2C/workflow/workflow.py", line 1890, in cached_data
data = data_func()
File "/Users/Benjamin/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.4A420B7A-3718-4454-AAF6-8A6EBB65ED2C/helpers.py", line 40, in get_account_info
output.append(api_client.account_info())
File "/Users/Benjamin/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.4A420B7A-3718-4454-AAF6-8A6EBB65ED2C/dropbox/client.py", line 149, in account_info
return self.rest_client.GET(url, headers)
File "/Users/Benjamin/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.4A420B7A-3718-4454-AAF6-8A6EBB65ED2C/dropbox/rest.py", line 311, in GET
return cls.IMPL.GET(*n, **kw)
File "/Users/Benjamin/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.4A420B7A-3718-4454-AAF6-8A6EBB65ED2C/dropbox/rest.py", line 246, in GET
return self.request("GET", url, headers=headers, raw_response=raw_response)
File "/Users/Benjamin/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.4A420B7A-3718-4454-AAF6-8A6EBB65ED2C/dropbox/rest.py", line 227, in request
raise ErrorResponse(r, r.read())
ErrorResponse: [400] u'v1_retired'
08:52:37 workflow.py:2269 INFO for assistance, see: https://github.com/fniephaus/alfred-dropbox/issues
08:52:37 workflow.py:2290 DEBUG workflow finished in 0.375 seconds

Can't auth since update

Hello Fabio, I had the workflow installed and authorised and after updating to 2.2 version it doesn't work anymore. I deleted the keychain, and the auth from dropbox, but can't authorise it again.

This is the debugger log:

19:17:05 workflow.py:1628 DEBUG    Reading settings from `/Users/pablo/Library/Application Support/Alfred 3/Workflow Data/com.fniephaus.dropbox/settings.json` ...
19:17:05 workflow.py:2514 DEBUG    Update check not due
19:17:05 workflow.py:1859 DEBUG    Loading cached data from : /Users/pablo/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/com.fniephaus.dropbox/__workflow_update_status.cpickle
19:17:05 workflow.py:2444 DEBUG    update_data : {u'available': True, u'version': u'v2.2', u'download_url': u'https://github.com/fniephaus/alfred-dropbox/releases/download/v2.2/Dropbox-Client-for-Alfred.alfredworkflow'}
19:17:05 workflow.py:2243 ERROR    'Workflow' object has no attribute 'update_info'
Traceback (most recent call last):
  File "/Users/pablo/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.602B4993-EECA-480F-B1CB-964C0C5A5129/workflow/workflow.py", line 2236, in run
    func(self)
  File "dropbox_filter.py", line 16, in main
    subtitle = 'New: %s' % wf.update_info['body']
AttributeError: 'Workflow' object has no attribute 'update_info'
19:17:05 workflow.py:2246 INFO     For assistance, see: https://github.com/fniephaus/alfred-dropbox/issues
19:17:05 workflow.py:2267 DEBUG    Workflow finished in 0.014 seconds.```

API Issue, auth went fine next step failed

[2018-06-13 11:24:21][ERROR: input.scriptfilter] Code 1: 11:24:21 workflow.py:2249 DEBUG    workflow version: 2.3.0
11:24:21 workflow.py:1657 DEBUG    reading settings from /Users/x/Library/Application Support/Alfred 3/Workflow Data/com.fniephaus.dropbox/settings.json
11:24:21 workflow.py:2532 DEBUG    Update check not due
11:24:21 workflow.py:1884 DEBUG    loading cached data: /Users/x/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/com.fniephaus.dropbox/__workflow_update_status.cpickle
11:24:21 workflow.py:2462 DEBUG    update_data: {u'available': False}
11:24:21 workflow.py:2651 DEBUG    Got password : com.fniephaus.dropbox:dropbox_access_tokens
11:24:21 workflow.py:2651 DEBUG    Got password : com.fniephaus.dropbox:dropbox_access_tokens
11:24:21 workflow.py:2267 ERROR    [400] u'v1_retired'
Traceback (most recent call last):
  File "/Users/x/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.0A1B5C13-ED4A-401B-ACB3-CDC92AE4DDFE/workflow/workflow.py", line 2260, in run
    func(self)
  File "dropbox_filter.py", line 28, in main
    'dropbox_accounts', data_func=get_account_info, max_age=360)
  File "/Users/x/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.0A1B5C13-ED4A-401B-ACB3-CDC92AE4DDFE/workflow/workflow.py", line 1890, in cached_data
    data = data_func()
  File "/Users/x/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.0A1B5C13-ED4A-401B-ACB3-CDC92AE4DDFE/helpers.py", line 40, in get_account_info
    output.append(api_client.account_info())
  File "/Users/x/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.0A1B5C13-ED4A-401B-ACB3-CDC92AE4DDFE/dropbox/client.py", line 149, in account_info
    return self.rest_client.GET(url, headers)
  File "/Users/x/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.0A1B5C13-ED4A-401B-ACB3-CDC92AE4DDFE/dropbox/rest.py", line 311, in GET
    return cls.IMPL.GET(*n, **kw)
  File "/Users/x/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.0A1B5C13-ED4A-401B-ACB3-CDC92AE4DDFE/dropbox/rest.py", line 246, in GET
    return self.request("GET", url, headers=headers, raw_response=raw_response)
  File "/Users/x/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.0A1B5C13-ED4A-401B-ACB3-CDC92AE4DDFE/dropbox/rest.py", line 227, in request
    raise ErrorResponse(r, r.read())
ErrorResponse: [400] u'v1_retired'
11:24:21 workflow.py:2269 INFO     for assistance, see: https://github.com/fniephaus/alfred-dropbox/issues
11:24:21 workflow.py:2290 DEBUG    workflow finished in 0.229 seconds

No module named AppKit

When no auth token is set:

screen shot 2017-04-23 at 6 12 08 pm

The workflow throws an exception:

Starting debug for 'Dropbox for Alfred'

[2017-04-23 18:07:14][STDERR: input.scriptfilter] Workflow version : 2.1.0
The debug log can be found in the log file:
/Users/Sepehr/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/com.fniephaus.dropbox/com.fniephaus.dropbox.log
Workflow finished in 0.044 seconds.
[2017-04-23 18:07:15][STDERR: input.scriptfilter] Workflow version : 2.1.0
The debug log can be found in the log file:
/Users/Sepehr/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/com.fniephaus.dropbox/com.fniephaus.dropbox.log
Workflow finished in 0.061 seconds.
[2017-04-23 18:07:21][ERROR: action.script] Traceback (most recent call last):
  File "dropbox_handler.py", line 5, in <module>
    from AppKit import NSPasteboard, NSArray
ImportError: No module named AppKit
[2017-04-23 18:08:18][STDERR: input.scriptfilter] Workflow version : 2.1.0
The debug log can be found in the log file:
/Users/Sepehr/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/com.fniephaus.dropbox/com.fniephaus.dropbox.log
Workflow finished in 0.078 seconds.
[2017-04-23 18:09:42][STDERR: input.scriptfilter] Workflow version : 2.1.0
The debug log can be found in the log file:
/Users/Sepehr/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/com.fniephaus.dropbox/com.fniephaus.dropbox.log
Workflow finished in 0.066 seconds.
[2017-04-23 18:09:44][STDERR: input.scriptfilter] Workflow version : 2.1.0
The debug log can be found in the log file:
/Users/Sepehr/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/com.fniephaus.dropbox/com.fniephaus.dropbox.log
Workflow finished in 0.062 seconds.
[2017-04-23 18:09:59][ERROR: action.script] Traceback (most recent call last):
  File "dropbox_handler.py", line 5, in <module>
    from AppKit import NSPasteboard, NSArray
ImportError: No module named AppKit

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.