UrbanInstitute / education-data-package-stata

MIT License
19 stars 4 forks source link

csv errors #46

Closed mchingos closed 6 years ago

mchingos commented 6 years ago

The csv option works for me in Stata 14, but not in Stata 15, which gives the following error:

. educationdata using "college ipeds directory", csv Please be patient - downloading data. Downloading file, please wait... unable to open temp_eddata_file_gen_012345.csv for writing stata(): 3598 Stata returned error copycsv(): - function returned error downloadcsv(): - function returned error getalldata(): - function returned error

: - function returned error
mchingos commented 6 years ago

Also, this command ran in Stata 14 but produced no records even though I think it should have: educationdata using "school ccd enrollment race", sub(year=2013 grade=99) csv clear

grahamimac commented 6 years ago

Hi Matt - thanks for the issue. I ran into the same issue testing this morning and it's a result of Stata15 setting the default working directory where it's installed, while Stata14 defaults to your home directory on the D drive.

In the next release, I've added language telling people to change their working directory using the "cd" command, in the program and in the documentation. Once you do that, you should be fine.

grahamimac commented 6 years ago

I am currently looking into the second issue (it takes a long time to download, load, and test...)

mchingos commented 6 years ago

Thanks. Glad it’s an easy fix. Another thought: maybe add some text after after time estimate (if csv option not specified) along the lines of “if data is taking too long to download, consider using csv option”

Sent from my iPhone

On Jun 26, 2018, at 9:39 AM, Graham MacDonald notifications@github.com<mailto:notifications@github.com> wrote:

Hi Matt - thanks for the issue. I ran into the same issue testing this morning and it's a result of Stata15 setting the default working directory where it's installed, while Stata14 defaults to your home directory on the D drive.

In the next release, I've added language telling people to change their working directory using the "cd" command, in the program and in the documentation. Once you do that, you should be fine.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/UrbanInstitute/education-data-package-stata/issues/46#issuecomment-400312054, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AiqN68sGwsk4WJPnvzGiq5W9Z9F-h0Ukks5uAjl9gaJpZM4U2P4E.

grahamimac commented 6 years ago

A step ahead of you. This language is already in the release 0.2.0 that you have (it's a lot of text, so you may have missed it).

If this time is too long for you to wait, try adding the "csv" option to the end of your command to download the full csv directly.
grahamimac commented 6 years ago

Ok, I found the problem with grade (it was only with grade) and resolved it in the next release.