[CalendarServer-dev] [Calendar and Contacts Server] #449: backup tool does not work with python 2.6 (AttributeError: 'module' object has no attribute 'check_output')

Calendar and Contacts Server trac at macosforge.org
Mon May 30 08:56:41 PDT 2011


#449: backup tool does not work with python 2.6 (AttributeError: 'module' object
has no attribute 'check_output')
----------------------------------+-----------------------------------------
 Reporter:  mail@…                |       Owner:  wsanchez@…        
     Type:  Defect                |      Status:  new               
 Priority:  5: Not set            |   Milestone:                    
Component:  Calendar Server       |    Severity:  Other             
 Keywords:                        |       Radar:                    
----------------------------------+-----------------------------------------
 Running the new export utility gives:

 {{{
 # ./tools/backup -f /etc/caldavd/caldavd.plist -v backup /root/back.up


 Dumping data to /tmp/tmpoKViuv.dbdump
 Executing: /usr/bin/pg_dump --username=caldav --clean --no-privileges
 --file=/tmp/tmpoKViuv.dbdump caldav
 Traceback (most recent call last):
   File "./tools/backup", line 230, in <module>
     main()
   File "./tools/backup", line 168, in main
     dumpData(tmpPath, verbose=verbose)
   File "./tools/backup", line 79, in dumpData
     out = subprocess.check_output(cmdArgs, stderr=subprocess.STDOUT)
 AttributeError: 'module' object has no attribute 'check_output'
 }}}

 According to https://github.com/rubik/pyg/issues/35 this was added with
 python 2.7.

-- 
Ticket URL: <http://trac.calendarserver.org/ticket/449>
Calendar and Contacts Server </>
HTTP/WebDAV/CalDAV Server


More information about the calendarserver-dev mailing list