arfc / predicting-the-past

The predicting the past project.
BSD 3-Clause "New" or "Revised" License
1 stars 3 forks source link

Error Running Simulations #39

Closed eriewski closed 6 years ago

eriewski commented 6 years ago

@gyutaepark

When following the new README instructions to run a particular simulation, using the command...

python import_pris.py [region] [sim_start_year]

leads to the following error on my end...

riewski@riewski-VirtualBox:~/cyclus/predicting-the-past$ python import_pris.py US 1960 /home/riewski/cyclus/predicting-the-past/import_fleetcomp.py:4: VnVWarning: pyne.nucname is not yet V&V compliant. from pyne import nucname as nn Usage: python import_pris.py [region] [sim_start_yr] Traceback (most recent call last): File "import_pris.py", line 344, in obtain_reactors(pris_file, sys.argv[1], reactors_tmpl) File "import_pris.py", line 257, in obtain_reactors in_data = idata.import_csv(in_csv, ',') File "/home/riewski/cyclus/predicting-the-past/import_fleetcomp.py", line 25, in import_csv with open(in_csv, encoding='utf-8') as source: TypeError: 'encoding' is an invalid keyword argument for this function

I was wondering if you had any idea what the issue is, and could possibly figure out what is stopping the simulation from being run.

Eric

gyutaepark commented 6 years ago

Which version of python are you running?

2017년 12월 7일 (목) 16:27, eriewski notifications@github.com님이 작성:

@gyutaepark https://github.com/gyutaepark

When following the new README instructions to run a particular simulation, using the command...

python import_pris.py [region] [sim_start_year]

leads to the following error on my end...

riewski@riewski-VirtualBox:~/cyclus/predicting-the-past$ python import_pris.py US 1960 /home/riewski/cyclus/predicting-the-past/import_fleetcomp.py:4: VnVWarning: pyne.nucname is not yet V&V compliant. from pyne import nucname as nn Usage: python import_pris.py [region] [sim_start_yr] Traceback (most recent call last): File "import_pris.py", line 344, in obtain_reactors(pris_file, sys.argv[1], reactors_tmpl) File "import_pris.py", line 257, in obtain_reactors in_data = idata.import_csv(in_csv, ',') File "/home/riewski/cyclus/predicting-the-past/import_fleetcomp.py", line 25, in import_csv with open(in_csv, encoding='utf-8') as source: TypeError: 'encoding' is an invalid keyword argument for this function

I was wondering if you had any idea what the issue is, and could possibly figure out what is stopping the simulation from being run.

Eric

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/arfc/predicting-the-past/issues/39, or mute the thread https://github.com/notifications/unsubscribe-auth/AUsKDbeUJ0bGJ67T2f5CT-pUVBd713kOks5s-GZigaJpZM4Q6SwJ .

-- Gyu Tae Park (gpark29) University of Illinois Urbana-Champagne Department of Nuclear Plasma Radiological Engineering

eriewski commented 6 years ago

@gyutaepark I am running python version 2.7.12

gyutaepark commented 6 years ago

Could you try running it on python 3? That might be the issue.

2017년 12월 7일 (목) 17:20, eriewski notifications@github.com님이 작성:

I am running python version 2.7.12

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/arfc/predicting-the-past/issues/39#issuecomment-350125103, or mute the thread https://github.com/notifications/unsubscribe-auth/AUsKDTj71vm1_vn9z6FS1cqcAwajd8PWks5s-HLWgaJpZM4Q6SwJ .

-- Gyu Tae Park (gpark29) University of Illinois Urbana-Champagne Department of Nuclear Plasma Radiological Engineering

eriewski commented 6 years ago

@gyutaepark

Switching to Python3 fixed the issue. Thank you very much.

On another note, is there a list of regions I can use in [region] when running import_pris.py

gyutaepark commented 6 years ago

These should be available in the import pris file.

2017년 12월 8일 (금) 18:23, eriewski notifications@github.com님이 작성:

@gyutaepark https://github.com/gyutaepark

Switching to Python3 fixed the issue. Thank you very much.

On another note, is there a list of regions I can use in [region] when running import_pris.py

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/arfc/predicting-the-past/issues/39#issuecomment-350405712, or mute the thread https://github.com/notifications/unsubscribe-auth/AUsKDcAOOluLyTfy1pfW2CABaunE4w1Bks5s-dL6gaJpZM4Q6SwJ .

-- Gyu Tae Park (gpark29) University of Illinois Urbana-Champagne Department of Nuclear Plasma Radiological Engineering