-
Notifications
You must be signed in to change notification settings - Fork 1
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
Dropbox raise exception when trying to upload a file #3
Comments
Thankyou for reporting. You have to check DROSH_SCREENSHOT_FOLDER exists inside your dropbox folders and you must have Dropbox installed and running. We discussed offline and its resolved. |
Following your advice @jcarizza 1- I installed Dropbox daemon on my computer When saving a screenshot to DROSH_SCREENSHOT_FOLDER (which points to DROSH_SCREENSHOT_FOLDER=/home/edvm/Pictures/Screenshots/) i got the following error:
Any hints? Thanks in advance, |
Just to make sure. The DROSH_SCREENSHOT_FOLDER is the full path in your computer where you save the screenshots. This folder must be one of the sub-folders where you have configured Dropbox. Let's say you configured dropbox in The DROSH_DROPBOX_FOLDER is the relative path in your dropbox folder in the cloud. I created the |
Hello @zamoroka You can use the same token you use in Drosh to explore paths with the Dropbox API Explorer. https://dropbox.github.io/dropbox-api-v2-explorer/#files_list_folder . I'm seeing that an item has two path names In my DROSH_DROPBOX_FOLDER i've configured the @edvm maybe the problem is that we should to set the |
@zamoroka did work? |
@jcarizza |
@jcarizza |
You can look your default display on the terminal printing the DISPLAY variable that is the X display name My DISPLAY output is:
This is my drosh.conf supervisor file:
|
@jcarizza |
@zamoroka what operative system and windows manager are using you? I will investigete too |
@jcarizza steps for supervisor:
script works, I have link in clipboard, just without any notification. |
@jcarizza
to |
I'm looking pyperclip source code, they also use de DISPLAY https://github.com/asweigart/pyperclip/blob/master/pyperclip/__init__.py#L60 |
@jcarizza |
When i save a file on DROSH_SCREENSHOT_FOLDER i got the following exception on console:
(drosh) @math:drosh(master) $ export DROSH_SCREENSHOT_FOLDER=/home/edvm/Pictures/Screenshots/ (drosh) @math:drosh(master) $ export DROSH_DROPBOX_TOKEN=xxx (drosh) @math:drosh(master) $ export DROSH_DROPBOX_FOLDER=Drosh (drosh) @math:drosh(master) $ python src/drosh.py 2017-07-24 12:05:05,137 - __main__ - DEBUG - WD=(1) MASK=(256) COOKIE=(0) LEN=(16) MASK->NAMES=['IN_CREATE'] WATCH-PATH=[/home/edvm/Pictures/Screenshots/] FILENAME=[foo2.png] 2017-07-24 12:05:05,138 - __main__ - INFO - Create shared link for: b'foo2.png' 2017-07-24 12:05:05,139 - __main__ - ERROR - Trying 0 time: Error to create shared link ValidationError("'Drosh/foo2.png' did not match pattern '(/(.|[\\r\\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)'") 2017-07-24 12:05:05,140 - __main__ - ERROR - Trying 1 time: Error to create shared link ValidationError("'Drosh/foo2.png' did not match pattern '(/(.|[\\r\\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)'")
The text was updated successfully, but these errors were encountered: