mit-crpg / PINSPEC

A Monte Carlo code for simple spectral calculations in nuclear reactor applications.
9 stars 3 forks source link

Install on OSX Broken #75

Open friedmud opened 9 years ago

friedmud commented 9 years ago

Not quite sure what's up here. On OSX PINSPEC builds just fine (no obvious errors), but attempting to run any of the sample-input files just yields:

  File "doppler.py", line 2, in <module>
    from pinspec import *
  File "/Users/gastdr/.local/lib/python2.7/site-packages/pinspec/__init__.py", line 13, in <module>
    set_log_level('NORMAL')
NameError: name 'set_log_level' is not defined

I tried to go into init.py and comment that out... but then it just gets stuck on the next thing. It seems to me that something about swig isn't working... like the python interface files aren't getting created.

Any ideas?

cjosey commented 9 years ago

I used to have a similar issue and I think I remedied it by just running the install script twice in a row.

On Tue, Sep 15, 2015, 10:42 AM Derek Gaston notifications@github.com wrote:

Not quite sure what's up here. On OSX PINSPEC builds just fine (no obvious errors), but attempting to run any of the sample-input files just yields:

File "doppler.py", line 2, in from pinspec import * File "/Users/gastdr/.local/lib/python2.7/site-packages/pinspec/init.py", line 13, in set_log_level('NORMAL') NameError: name 'set_log_level' is not defined

I tried to go into init.py and comment that out... but then it just gets stuck on the next thing. It seems to me that something about swig isn't working... like the python interface files aren't getting created.

Any ideas?

— Reply to this email directly or view it on GitHub https://github.com/mit-crpg/PINSPEC/issues/75.

wbinventor commented 9 years ago

Yes, this is a common problem for swig-wrapped applications installed with distutils. Since PINSPEC is sort of an odd educational tool, I haven't spent time upgrading the build system so I apologize for the inconvenience. BTW, what are you using PINSPEC for? On Sep 15, 2015 11:00 AM, "Colin Josey" notifications@github.com wrote:

I used to have a similar issue and I think I remedied it by just running the install script twice in a row.

On Tue, Sep 15, 2015, 10:42 AM Derek Gaston notifications@github.com wrote:

Not quite sure what's up here. On OSX PINSPEC builds just fine (no obvious errors), but attempting to run any of the sample-input files just yields:

File "doppler.py", line 2, in from pinspec import * File "/Users/gastdr/.local/lib/python2.7/site-packages/pinspec/init.py", line 13, in set_log_level('NORMAL') NameError: name 'set_log_level' is not defined

I tried to go into init.py and comment that out... but then it just gets stuck on the next thing. It seems to me that something about swig isn't working... like the python interface files aren't getting created.

Any ideas?

— Reply to this email directly or view it on GitHub https://github.com/mit-crpg/PINSPEC/issues/75.

— Reply to this email directly or view it on GitHub https://github.com/mit-crpg/PINSPEC/issues/75#issuecomment-140421154.

friedmud commented 9 years ago

@cjosey running the install twice DID fix the problem! Awesome! Thanks!

@wbinventor Ben has us using it a bit for generating XS for 212

If you would like to close this issue - that's fine with me...

wbinventor commented 9 years ago

I don't plan to fix this so you can close it unless you care to submit a PR. On Sep 15, 2015 12:22 PM, "Derek Gaston" notifications@github.com wrote:

@cjosey https://github.com/cjosey running the install twice DID fix the problem! Awesome! Thanks!

@wbinventor https://github.com/wbinventor Ben has us using it a bit for generating XS for 212

If you would like to close this issue - that's fine with me...

— Reply to this email directly or view it on GitHub https://github.com/mit-crpg/PINSPEC/issues/75#issuecomment-140450273.

wbinventor commented 9 years ago

But I wouldn't worry about that since from what I recall after having looked at this before, it's not an easy problem to solve :-( On Sep 15, 2015 1:40 PM, wbinventor@gmail.com wrote:

I don't plan to fix this so you can close it unless you care to submit a PR. On Sep 15, 2015 12:22 PM, "Derek Gaston" notifications@github.com wrote:

@cjosey https://github.com/cjosey running the install twice DID fix the problem! Awesome! Thanks!

@wbinventor https://github.com/wbinventor Ben has us using it a bit for generating XS for 212

If you would like to close this issue - that's fine with me...

— Reply to this email directly or view it on GitHub https://github.com/mit-crpg/PINSPEC/issues/75#issuecomment-140450273.