mk-fg / python-onedrive

Obsolete python/cli module for MS SkyDrive/OneDrive's old API, do not use for new projects
Do What The F*ck You Want To Public License
200 stars 32 forks source link

Not possible to set it up in KDE #21

Closed inputsh closed 10 years ago

inputsh commented 10 years ago

OS: Kubuntu DE: KDE 4.2

Problem: So I tried to configure your program. In the configuration menu, which loads perfectly btw, I am able to authenticate with OneDrive. Works great. But, I'm not able to select a local folder. Once I selected the folder, the whole application crashes. Same thing happens when I choose Other in the dropdown menu to select my own folder.

Logs: gtk.main() /usr/local/lib/python2.7/dist-packages/onedrive_d-0.85-py2.7.egg/onedrive_d/prefs.py:296: Warning: /build/buildd/glib2.0-2.40.0/./gobject/gtype.c:4210: type id '0' is invalid gtk.main() /usr/local/lib/python2.7/dist-packages/onedrive_d-0.85-py2.7.egg/onedrive_d/prefs.py:296: Warning: can't peek value table for type '' which is not currently referenced gtk.main() /usr/local/lib/python2.7/dist-packages/onedrive_d-0.85-py2.7.egg/onedrive_d/prefs.py:296: GtkWarning: gtk_tree_model_filter_get_value: assertion 'GTK_TREE_MODEL_FILTER (model)->priv->stamp == iter->stamp' failed gtk.main() /usr/local/lib/python2.7/dist-packages/onedrive_d-0.85-py2.7.egg/onedrive_d/prefs.py:296: Warning: /build/buildd/glib2.0-2.40.0/./gobject/gtype.c:4210: type id '0' is invalid gtk.main() /usr/local/lib/python2.7/dist-packages/onedrive_d-0.85-py2.7.egg/onedrive_d/prefs.py:296: Warning: can't peek value table for type '' which is not currently referenced gtk.main() OneDrive-d was not authenticated or properly configured. Exit. Exception ImportError: 'No module named onedrive' in <bound method PersistentOneDriveAPI.del of <onedrive.api_v5.PersistentOneDriveAPI object at 0x7fd0ff5e14d0>> ignored

mk-fg commented 10 years ago

Fairly sure you want to file that against @xybu92's onedrive-d, python-onedrive doesn't have any menus or DE integration (though there's example cli tool), it's a module for python developers.

Error in the log above seem to be "OneDrive-d was not authenticated or properly configured. Exit."

xybu commented 10 years ago

To read the error info, first the Gtk libraries on this platform seem to have some troubles.

Second, the cause of the final prompt is "ImportError: No module named onedrive", which is from python-onedrive package. I would suggest check if python-onedrive is correctly installed on the site and is visible in sys.path of py2.7.

mk-fg commented 10 years ago

Right. I've looked at the first error and failed to realize that next line probably shows why that one happened.

If it's a common thing, one way to avoid such issues might be to just bundle python-onedrive (or needed subset of it) under e.g. "onedrive_d/vendor/onedrive" and import it from there. Should also ensure that there's guaranteed-working version bundled, even if upstream goes bananas. Adds a bit more work of merging new commits there from time-to-time, of course.