Forums

Full Version: VDrift Data manager
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
The first version of the data manager is committed

It is licensed under GPL v3

The svn version is at: http://svn.vdrift.net/repos/vdrift-datamanager/trunk

You need python, pygtk, pyglade and pysvn

Things that needs to be done
  • Import/export repositories
    Automatic detection of repositories types
    Add more repository types (http)
    See how we could implement versions
    See more information about the cars/tracks
    Download cars/tracs
    ...
I get the following error:
Code:
Traceback (most recent call last):
  File "./main.py", line 257, in ?
    gui = vdriftDataManager()
  File "./main.py", line 203, in __init__
    self.downloadData()
  File "./main.py", line 228, in downloadData
    for name, cars in sorted(self.repoManager.getAllCars().iteritems()):
  File "/home/joe/code/VDrift-datamanager/repositories.py", line 48, in getAllCars
    for car in repository.getCars():
  File "/home/joe/code/VDrift-datamanager/svnrepo.py", line 42, in getCars
    carListing = self._Client.list(self.URL+"/cars",
AttributeError: list
I dont know how it comes (I don't have this problem)

What version of pysvn dou you have?
1.5.1
The same as mine.

And what version of Python?

Please try to put line 42 and 43 on the same line
My python version is 2.4.4. If I put lines 42 and 43 into one line, I get the same error:

Code:
Traceback (most recent call last):
  File "./main.py", line 257, in ?
    gui = vdriftDataManager()
  File "./main.py", line 203, in __init__
    self.downloadData()
  File "./main.py", line 228, in downloadData
    for name, cars in sorted(self.repoManager.getAllCars().iteritems()):
  File "/home/joe/code/VDrift-datamanager/repositories.py", line 48, in getAllCars
    for car in repository.getCars():
  File "/home/joe/code/VDrift-datamanager/svnrepo.py", line 42, in getCars
    carListing = self._Client.list(self.URL+"/cars", pysvn.Revision(pysvn.opt_revision_kind.head), pysvn.Revision(pysvn.opt_revision_kind.head), False)
AttributeError: list
your python version is older (I have python 2.5.1)

When I try with python 2.4.4 I don't get this error.

Please try this:
Open a python console (python) and run this code:
Code:
import pysvn
dir(pysvn.Client())

Paste the output here
Code:
Python 2.4.4 (#1, Jun  4 2007, 07:08:15)
[GCC 3.4.6 (Gentoo 3.4.6-r2, ssp-3.4.6-1.0, pie-8.7.10)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pysvn
>>> dir(pysvn.Client())
['add', 'annotate', 'callback_cancel', 'callback_get_log_message', 'callback_get_login', 'callback_notify', 'callback_ssl_client_cert_password_prompt', 'callback_ssl_client_cert_prompt', 'callback_ssl_server_prompt', 'callback_ssl_server_trust_prompt', 'cat', 'checkin', 'checkout', 'cleanup', 'copy', 'diff', 'diff_peg', 'exception_style', 'export', 'get_adm_dir', 'get_auth_cache', 'get_auto_props', 'get_default_password', 'get_default_username', 'get_interactive', 'get_store_passwords', 'import_', 'info', 'info2', 'is_adm_dir', 'is_url', 'lock', 'log', 'ls', 'merge', 'mkdir', 'move', 'propdel', 'propget', 'proplist', 'propset', 'relocate', 'remove', 'resolved', 'revert', 'revpropdel', 'revpropget', 'revproplist', 'revpropset', 'set_adm_dir', 'set_auth_cache', 'set_auto_props', 'set_default_password', 'set_default_username', 'set_interactive', 'set_store_passwords', 'status', 'switch', 'unlock', 'update']
joevenzon Wrote:
Code:
Python 2.4.4 (#1, Jun  4 2007, 07:08:15)
[GCC 3.4.6 (Gentoo 3.4.6-r2, ssp-3.4.6-1.0, pie-8.7.10)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pysvn
>>> dir(pysvn.Client())
['add', 'annotate', 'callback_cancel', 'callback_get_log_message', 'callback_get_login', 'callback_notify', 'callback_ssl_client_cert_password_prompt', 'callback_ssl_client_cert_prompt', 'callback_ssl_server_prompt', 'callback_ssl_server_trust_prompt', 'cat', 'checkin', 'checkout', 'cleanup', 'copy', 'diff', 'diff_peg', 'exception_style', 'export', 'get_adm_dir', 'get_auth_cache', 'get_auto_props', 'get_default_password', 'get_default_username', 'get_interactive', 'get_store_passwords', 'import_', 'info', 'info2', 'is_adm_dir', 'is_url', 'lock', 'log', 'ls', 'merge', 'mkdir', 'move', 'propdel', 'propget', 'proplist', 'propset', 'relocate', 'remove', 'resolved', 'revert', 'revpropdel', 'revpropget', 'revproplist', 'revpropset', 'set_adm_dir', 'set_auth_cache', 'set_auto_props', 'set_default_password', 'set_default_username', 'set_interactive', 'set_store_passwords', 'status', 'switch', 'unlock', 'update']

For some reason list isn't in showed. It seems that for some reason that function doesn't work on your machine.

Maybe something with your libsvn version. I do have 1.4.3 what is yours?
Another point:
At the moment all data is loaded at the start of the program (before the main window popups) but this is an unwanted "feature"

I tried todo something with multiple threads, but this seems to be somewhat too diffult for me. (although I already did multithreaded programming with gtk+ in c#)
Can someone, with more python experience, take a look at this?
My SVN is version 1.3.2. I'll try upgrading to 1.4.3.

EDIT: Okay, I upgraded to 1.4.3 and now I get:

Code:
Python 2.4.4 (#1, Jun  4 2007, 07:08:15)
[GCC 3.4.6 (Gentoo 3.4.6-r2, ssp-3.4.6-1.0, pie-8.7.10)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pysvn
>>> dir(pysvn.Client())
['add', 'annotate', 'callback_cancel', 'callback_get_log_message', 'callback_get_login', 'callback_notify', 'callback_ssl_client_cert_password_prompt', 'callback_ssl_client_cert_prompt', 'callback_ssl_server_prompt', 'callback_ssl_server_trust_prompt', 'cat', 'checkin', 'checkout', 'cleanup', 'copy', 'diff', 'diff_peg', 'diff_summarize', 'diff_summarize_peg', 'exception_style', 'export', 'get_adm_dir', 'get_auth_cache', 'get_auto_props', 'get_default_password', 'get_default_username', 'get_interactive', 'get_store_passwords', 'import_', 'info', 'info2', 'is_adm_dir', 'is_url', 'list', 'lock', 'log', 'ls', 'merge', 'mkdir', 'move', 'propdel', 'propget', 'proplist', 'propset', 'relocate', 'remove', 'resolved', 'revert', 'revpropdel', 'revpropget', 'revproplist', 'revpropset', 'set_adm_dir', 'set_auth_cache', 'set_auto_props', 'set_default_password', 'set_default_username', 'set_interactive', 'set_store_passwords', 'status', 'switch', 'unlock', 'update']

And the program works fine now! I guess SVN >= 1.4.3 is a requirement.
joevenzon Wrote:My SVN is version 1.3.2. I'll try upgrading to 1.4.3.

EDIT: Okay, I upgraded to 1.4.3 and now I get:

And the program works fine now! I guess SVN >= 1.4.3 is a requirement.

I guess it is >= 1.4.0

And normally I can check if a feature is available (so a nice error message should be possible)
I'll take a look at this pretty soon. I have a few other little VDrift projects to take care of and finish up first, but this is definitely a priority.