nprapps / leso

Processing scripts for Defense Logistics Agency LESO data
http://blog.apps.npr.org/2014/09/02/reusable-data-processing.html
MIT License
8 stars 2 forks source link

Error message for summarize.sh #20

Open springcoil opened 10 years ago

springcoil commented 10 years ago

Hi guys, I am trying to replicate this code - just to understand better a data workflow. ERROR: could not open file "/home/peadarcoyle/Code/leso/build/unit_distribution.csv" for writing: Permission denied Generate category distribution ERROR: could not open file "/home/peadarcoyle/Code/leso/build/category_distribution.csv" for writing: Permission denied Generate supercategory distirbution ERROR: could not open file "/home/peadarcoyle/Code/leso/build/supercategory_distribution.csv" for writing: Permission denied Create supercategory view CREATE VIEW Generate top 10 supercategory time series ERROR: could not open file "/home/peadarcoyle/Code/leso/build/supercategory_timeseries.csv" for writing: Permission denied Generate item name distribution with units ERROR: could not open file "/home/peadarcoyle/Code/leso/build/item_name_distribution_with_units.csv" for writing: Permission denied Generate item name distribution without units ERROR: could not open file "/home/peadarcoyle/Code/leso/build/item_name_distribution.csv" for writing: Permission denied Generate population table ERROR: could not open file "/home/peadarcoyle/Code/leso/build/cost_by_population.csv" for writing: Permission denied top 10 counties per capita ERROR: could not open file "/home/peadarcoyle/Code/leso/build/top_ten_per_capita.csv" for writing: Permission denied top 10 counties overall ERROR: could not open file "/home/peadarcoyle/Code/leso/build/top_ten_overall.csv" for writing: Permission denied Generate gun table per capita top ten ERROR: could not open file "/home/peadarcoyle/Code/leso/build/guns_by_county.csv" for writing: Permission denied Generate weapons table ERROR: could not open file "/home/peadarcoyle/Code/leso/build/guns_by_item.csv" for writing: Permission denied Generate weapons table ERROR: could not open file "/home/peadarcoyle/Code/leso/build/weapons_by_item.csv" for writing: Permission denied Generate VA table ERROR: could not open file "/home/peadarcoyle/Code/leso/build/arlington_page_tazewell.csv" for writing: Permission denied Generate musical instruments table ERROR: could not open file "/home/peadarcoyle/Code/leso/build/musical_instruments.csv" for writing: Permission denied Generate night vision table ERROR: could not open file "/home/peadarcoyle/Code/leso/build/night_vision_by_item.csv" for writing: Permission denied Is the error I got with the file. The first part worked and I have a table. Do I need to manually create all of these csvs?

eads commented 10 years ago

Whoops! That's weird. Is the build directory getting created with the correct permissions? There's a line at the top of that file, mkdir -p build that should do it, but maybe something is wonky there.

Also, what OS are you using?

springcoil commented 10 years ago

Hi David, Thanks for the reply. I am using Linux Mint - Cinnamon so effectively Ubuntu Trusty 14.04. I was executing the code from a virtualenv with sudo I believe. The build directory is being created and is empty.

On Mon, Sep 15, 2014 at 3:53 PM, David Eads notifications@github.com wrote:

Whoops! That's weird. Is the build directory getting created with the correct permissions? There's a line at the top of that file, mkdir -p build that should do it, but maybe something is wonky there.

Also, what OS are you using?

— Reply to this email directly or view it on GitHub https://github.com/nprapps/leso/issues/20#issuecomment-55592808.

Peadar Coyle Skype: springcoilarch Msn: springcoil@hotmail.com www.twitter.com/springcoil peadarcoyle.wordpress.com

eads commented 10 years ago

It's possibly the fact you're using sudo.

On Mon, Sep 15, 2014 at 10:11 AM, springcoil notifications@github.com wrote:

Hi David, Thanks for the reply. I am using Linux Mint - Cinnamon so effectively Ubuntu Trusty 14.04. I was executing the code from a virtualenv with sudo I believe. The build directory is being created and is empty.

On Mon, Sep 15, 2014 at 3:53 PM, David Eads notifications@github.com wrote:

Whoops! That's weird. Is the build directory getting created with the correct permissions? There's a line at the top of that file, mkdir -p build that should do it, but maybe something is wonky there.

Also, what OS are you using?

— Reply to this email directly or view it on GitHub https://github.com/nprapps/leso/issues/20#issuecomment-55592808.

Peadar Coyle Skype: springcoilarch Msn: springcoil@hotmail.com www.twitter.com/springcoil peadarcoyle.wordpress.com

— Reply to this email directly or view it on GitHub https://github.com/nprapps/leso/issues/20#issuecomment-55595331.

David Eads | http://recoveredfactory.net

"Medical statistics will be our standard of measurement: we will weigh life for life and see where the dead lie thicker, among the workers or among the privileged." -- Rudolf Virchow

eads commented 10 years ago

Did you get this working correctly? You might need to delete the build directory and start over. But don't use sudo

springcoil commented 10 years ago

Will have a look tomorrow.

On Wed, Sep 17, 2014 at 8:53 PM, David Eads notifications@github.com wrote:

Did you get this working correctly? You might need to delete the build directory and start over. But don't use sudo

— Reply to this email directly or view it on GitHub https://github.com/nprapps/leso/issues/20#issuecomment-55942043.

Peadar Coyle Skype: springcoilarch Msn: springcoil@hotmail.com www.twitter.com/springcoil peadarcoyle.wordpress.com