#253: obesity survey REDCap tracker and tools
--------------------------+---------------------------------
 Reporter:  bokov         |       Owner:  huhickman
     Type:  enhancement   |      Status:  assigned
 Priority:  major         |   Milestone:  obesity-survey-def
Component:  data-sharing  |  Resolution:
 Keywords:                |  Blocked By:
 Blocking:  254           |
--------------------------+---------------------------------

Comment (by lv):

 MCRF effort to try to get the python scripts to work:

 Ran into a few catches right away that were resolved:
 • Lines that had ‘except KeyError, e:’ had to be switch to ‘except
 KeyError as e:’.  This seemed to be related to changes in the version of
 python.
 • It couldn’t find ‘ConfigParser’.  Apparently in the new version of
 Python this was switched to ‘configparser’.
 • There are a few dependent packages that are not part of the vanilla
 python that I had to install.  They were docopt and fuzzywuzzy.
 • I get a warning about installing python-Levenshtein, which I have, but
 the warning still comes up.  I think this can be ignored because it’s just
 a warning.

 Then ran into this error:

 Traceback (most recent call last):
   File "tracker_load.py", line 38, in <module>
     import address_util.usps as usps
   File "C:\Users\larosee\Desktop\i2b2\bos_uthscsa-survey_tracker-
 9f11111d6c95\bo
 s_uthscsa-survey_tracker-9f11111d6c95\address_util\usps.py", line 81, in
 <module
 >
     input, long, short = f.strip().split('|')
 ValueError: need more than 1 value to unpack

 Got past the error by hardcoding the filepath for the file it was trying
 to process for that line.  What was happening was instead of parsing the
 abbreviations.txt it was starting to parse the python script in that
 directory.

 Now we're stuck on the following error:

 Traceback (most recent call last):
   File "tracker_load.py", line 1588, in <module>
     _trusted_main(arguments)
   File "tracker_load.py", line 1553, in _trusted_main
     from __builtin__ import open as openrd
 ImportError: No module named '__builtin__'

 We're wondering:
 1. If this should be tracked on this ticket; not sure if any other sites
 will need to make similiar adjustment?
 2. If it would be most efficient for Eric from MCRF and Angela to work
 through some of these via email/screensharing?

--
Ticket URL: 
<http://informatics.gpcnetwork.org/trac/Project/ticket/253#comment:17>
gpc-informatics <http://informatics.gpcnetwork.org/>
Greater Plains Network - Informatics
_______________________________________________
Gpc-dev mailing list
[email protected]
http://listserv.kumc.edu/mailman/listinfo/gpc-dev

Reply via email to