Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install on OSX Broken #75

Open
friedmud opened this issue Sep 15, 2015 · 5 comments
Open

Install on OSX Broken #75

friedmud opened this issue Sep 15, 2015 · 5 comments

Comments

@friedmud
Copy link

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
Copy link
Contributor

cjosey commented Sep 15, 2015

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 [email protected]
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
#75.

@wbinventor
Copy link
Member

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" [email protected] 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 [email protected]
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
#75.


Reply to this email directly or view it on GitHub
#75 (comment).

@friedmud
Copy link
Author

@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
Copy link
Member

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" [email protected] 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
#75 (comment).

@wbinventor
Copy link
Member

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, [email protected] 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" [email protected] 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
#75 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants