OHDSI / ETL-CMS

Workproducts to ETL CMS datasets into OMOP Common Data Model
Apache License 2.0
94 stars 52 forks source link

Error on Step 5 of Python ETL process #43

Closed danielforsyth closed 7 years ago

danielforsyth commented 7 years ago

When I run python CMS_SynPuf_ETL_CDM_v5.py 0 on step 5 "Test ETL with DE_0 CMS test data" I get the following traceback

  File "CMS_SynPuf_ETL_CDM_v5.py", line 7, in <module>
    from constants import OMOP_CONSTANTS, OMOP_MAPPING_RECORD, BENEFICIARY_SUMMARY_RECORD, OMOP_CONCEPT_RECORD, OMOP_CONCEPT_RELATIONSHIP_RECORD
ImportError: cannot import name OMOP_CONSTANTS

Is this a problem with the env file?

ChristopheLambert commented 7 years ago

It could be the case. The .env file needs to be customized to the paths where your files are stored. Did you do that?

danielforsyth commented 7 years ago

Yep - All the paths are correct in the .env. Not sure whats causing this.

EDIT: Resolved it was a mistake on my end.