peter.kober Posted December 15, 2015 Report Share Posted December 15, 2015 Hi, I am trying to run the provided example of the dropbox_accessor.py in the docs but getting error upon execution. All ftrack and dropbox module load fine. There is some problem with None in self.client of the dropbox_accessor.py When I try to run following: python interpreter: > access_token = u'6oxM_7NTdfMAAAAAAAAkadsfasdgfasgasdg...'> accessor = DropboxAccessor(access_token) I get Result: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "dropbox_accessor.py", line 52, in __init__ self.client.connect(access_token)AttributeError: 'NoneType' object has no attribute 'connect' In the dropbox_accessor.py we find self.client = None ...That seems to be the source for the error. Any ideas of how to exectute the example code in dropbox_accessor.py provided by ftrack without errors? What am I missing? Excerpt from the dropbox_accessor.py :...class DropboxAccessor(ftrack.Accessor): '''Provide Dropbox access to a location.''' def __init__(self, access_token, **kwargs): self.client = None self.client.connect(access_token) super(DropboxAccessor, self).__init__(**kwargs) thanks Peter Link to comment Share on other sites More sharing options...
peter.kober Posted December 15, 2015 Author Report Share Posted December 15, 2015 Never mind. I got it sorted. I adjusted your code by taking out self.client.connect(access_token) and putting new_client instead. from dropbox.client import DropboxClientnew_client = DropboxClient('6oxM_7NTdfMHJGjhgkjhfkjgfhg....')class DropboxAccessor(ftrack.Accessor): '''Provide Dropbox access to a location.''' def __init__(self, access_token, **kwargs): self.client = new_client # self.client.connect(access_token) super(DropboxAccessor, self).__init__(**kwargs)... Link to comment Share on other sites More sharing options...
Mattias Lagergren Posted December 15, 2015 Report Share Posted December 15, 2015 Hi Peter, I'm glad that you sorted it out. We're working on a new version of the dropbox accessor as a standalone open repository, with their new api. It shouldn't be too far away Link to comment Share on other sites More sharing options...
diogo Posted June 21, 2016 Report Share Posted June 21, 2016 On December 15, 2015 at 3:31 PM, Mattias Lagergren said: We're working on a new version of the dropbox accessor as a standalone open repository, with their new api. It shouldn't be too far away Hi Mattias, Any news on that accessor? Cheers, diogo Link to comment Share on other sites More sharing options...
Mattias Lagergren Posted June 22, 2016 Report Share Posted June 22, 2016 Hi Diogo, We've halted the development of the dropbox accessor, and I'm not sure on the plans to pick it up. For the project we intended it for it turned out that it was better to just use an ordirnary disk accessor and have the dropbox folder mounted. With Dropbox project infinite being in development there is even less need of a accessor using the Dropbox API, see https://blogs.dropbox.com/business/2016/04/announcing-project-infinite/ What do you think, would mounting dropbox and using a disk accessor be a viable option for you - or would you still need an accessor that utilises the API? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.