Skip to content
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

Script failure when dropbox is not installed #29

Closed
dslul opened this issue Jun 11, 2015 · 7 comments
Closed

Script failure when dropbox is not installed #29

dslul opened this issue Jun 11, 2015 · 7 comments
Labels

Comments

@dslul
Copy link

dslul commented Jun 11, 2015

Here is the error:

Welcome to the tray icons hardcoder fixer!

Copying now..

Traceback (most recent call last):
File "script.py", line 160, in
copy_files()
File "script.py", line 106, in copy_files
apps = csv_to_dic()
File "script.py", line 94, in csv_to_dic
row[1] = dropbox_folder(row[1])
File "script.py", line 79, in dropbox_folder
sub_dirs = get_subdirs(dirs[0])
File "script.py", line 50, in get_subdirs
dirs = os.listdir(d)
FileNotFoundError: [Errno 2] File o directory non esistente: '/home/daniele/.dropbox-dist/'

I solved (just in my case) by removing lines 93 and 94, however i cannot send you a proper patch since a know nothing about python at the moment.

@bilelmoussaoui
Copy link
Owner

I pushed a new commit, can you try this now?

@dslul
Copy link
Author

dslul commented Jun 11, 2015

It doesn't work:

Welcome to the tray icons hardcoder fixer!

Copying now..

Traceback (most recent call last):
File "script.py", line 163, in
copy_files()
File "script.py", line 109, in copy_files
apps = csv_to_dic()
File "script.py", line 97, in csv_to_dic
row[1] = dropbox_folder(row[1])
File "script.py", line 83, in dropbox_folder
sub_dirs.sort()
AttributeError: 'NoneType' object has no attribute 'sort'

@bilelmoussaoui
Copy link
Owner

This should be fixed now

@dslul
Copy link
Author

dslul commented Jun 12, 2015

Still nothing:

Welcome to the tray icons hardcoder fixer!

Copying now..

Traceback (most recent call last):
File "script.py", line 166, in
copy_files()
File "script.py", line 112, in copy_files
apps = csv_to_dic()
File "script.py", line 101, in csv_to_dic
if is_dir(row[1]+"/"):#check if the folder exists
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'

@bilelmoussaoui
Copy link
Owner

Can you try again? :) This is not the best way to fix it, but i will update the script when i will finish my finals!

@dslul
Copy link
Author

dslul commented Jun 12, 2015

Ok, now it works!

@bilelmoussaoui
Copy link
Owner

Thank you for reporting this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants