Hi, I downloaded v1.0 beta 3 and build it. I tried to start the syncevo-phone-config script. But it fails:
u...@ubuntu:~$<mailto:u...@ubuntu:~$> syncevo-phone-config --bt-address 00:XX:XX:XX:XX:XX --advanced --create-template=SonyEricsson --create-config=T610 /usr/local/bin/syncevo-phone-config:24: DeprecationWarning: The popen2 module is deprecated. Use the subprocess module. import sys, optparse, os, time, popen2, tempfile Traceback (most recent call last): File "/usr/local/bin/syncevo-phone-config", line 707, in <module> main() File "/usr/local/bin/syncevo-phone-config", line 700, in main tempfile = tempfile.mkdtemp(prefix="syncevo-phone-config") UnboundLocalError: local variable 'tempfile' referenced before assignment I am not really familiar with python, but I made some changes to the script... And now it works for me: ################################## u...@ubuntu:~$<mailto:u...@ubuntu:~$> diff -Naur /home/user/Downloads/syncevolution-1.0beta3/src/syncevo-phone-config /usr/local/bin/syncevo-phone-config --- /home/user/Downloads/syncevolution-1.0beta3/src/syncevo-phone-config 2010-04-22 02:53:40.354935678 -0700 +++ /usr/local/bin/syncevo-phone-config 2010-04-22 06:55:31.950068119 -0700 @@ -673,6 +673,8 @@ pass def main(): + global testFolder + global testResult versions = [] sources = [] ctcaps = [] @@ -697,9 +699,9 @@ config = TestingConfiguration (versions, sources, uris, types, ctcaps, identifiers, options.btaddr) - tempfile = tempfile.mkdtemp(prefix="syncevo-phone-config") - testFolder = testfile+'/data' - testResult = testfile+'/cache' + testFile = tempfile.mkdtemp(prefix="syncevo-phone-config") + testFolder = testFile+'/data' + testResult = testFile+'/cache' print "Running test with test data inside %s and test results inside %s" %(testFolder, testResult) config.run() ################################## Just wanted you to know, Jens Bocklage
_______________________________________________ SyncEvolution mailing list [email protected] http://lists.syncevolution.org/listinfo/syncevolution
