NITDgpOS / UIP

A library, to customize your desktop wallpapers.
https://nitdgpos.github.io/projects/UIP
GNU Affero General Public License v3.0
19 stars 45 forks source link

Error: When adding wallpaper as favourite #346

Closed sethiyash closed 7 years ago

sethiyash commented 7 years ago
Exception in Tkinter callback
Traceback (most recent call last):
  File "/usr/lib/python3.5/tkinter/__init__.py", line 1553, in __call__
    return self.func(*args)
  File "/usr/local/lib/python3.5/dist-packages/UIP-0.0.3-py3.5.egg/uiplib/gui/mainGui.py", line 133, in favourite
    copy(self.images[self.index], self.settings['fav-pics-folder'])
  File "/usr/lib/python3.5/shutil.py", line 234, in copy
    dst = os.path.join(dst, os.path.basename(src))
  File "/usr/lib/python3.5/posixpath.py", line 139, in basename
    i = p.rfind(sep) + 1
AttributeError: 'UipImage' object has no attribute 'rfind'
sethiyash commented 7 years ago

no file is showing named shutil.py and posixpath.py in python3.5 directory,how this is possible where i am going wrong? @abhsag24

abhay-raizada commented 7 years ago

these are standard libraries in python , the thing is shutil needs image_path while images is a list of uipImages just do copy(self.images[self.index],image_path, self.settings['fav-pics-folder']) instead of the earlier line in favorite function

SACHIN-13 commented 7 years ago

Added a PR #349 . plz check!