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

nanomsgxx can't find nanomsg on Arch #12

Open
Sinity opened this issue Dec 3, 2016 · 3 comments
Open

nanomsgxx can't find nanomsg on Arch #12

Sinity opened this issue Dec 3, 2016 · 3 comments

Comments

@Sinity
Copy link

Sinity commented Dec 3, 2016

Hi. I've installed nanomsg via Pacman, and it works fine. But then I cloned this project, ran ./waf configure, and I've got this:


Setting top to                           : /mnt/data/DEV/libs/nanomsgxx 
Setting out to                           : /mnt/data/DEV/libs/nanomsgxx/build 
Checking for 'gcc' (c compiler)          : /usr/bin/gcc 
Checking for 'g++' (c++ compiler)        : /usr/bin/g++ 
Checking for library nanomsg             : Traceback (most recent call last):
  File "/mnt/data/DEV/libs/nanomsgxx/.waf3-1.7.11-edc6ccb516c5e3f9b892efc9f53a610f/waflib/Scripting.py", line 97, in waf_entry_point
    run_commands()
  File "/mnt/data/DEV/libs/nanomsgxx/.waf3-1.7.11-edc6ccb516c5e3f9b892efc9f53a610f/waflib/Scripting.py", line 153, in run_commands
    ctx=run_command(cmd_name)
  File "/mnt/data/DEV/libs/nanomsgxx/.waf3-1.7.11-edc6ccb516c5e3f9b892efc9f53a610f/waflib/Scripting.py", line 146, in run_command
    ctx.execute()
  File "/mnt/data/DEV/libs/nanomsgxx/.waf3-1.7.11-edc6ccb516c5e3f9b892efc9f53a610f/waflib/Configure.py", line 128, in execute
    super(ConfigurationContext,self).execute()
  File "/mnt/data/DEV/libs/nanomsgxx/.waf3-1.7.11-edc6ccb516c5e3f9b892efc9f53a610f/waflib/Context.py", line 87, in execute
    self.recurse([os.path.dirname(g_module.root_path)])
  File "/mnt/data/DEV/libs/nanomsgxx/.waf3-1.7.11-edc6ccb516c5e3f9b892efc9f53a610f/waflib/Context.py", line 128, in recurse
    user_function(self)
  File "/mnt/data/DEV/libs/nanomsgxx/wscript", line 51, in configure
    waf.recurse('src/nnxx')
  File "/mnt/data/DEV/libs/nanomsgxx/.waf3-1.7.11-edc6ccb516c5e3f9b892efc9f53a610f/waflib/Context.py", line 128, in recurse
    user_function(self)
  File "/mnt/data/DEV/libs/nanomsgxx/src/nnxx/wscript", line 16, in configure
    waf.check_cxx(lib='nanomsg')
  File "/mnt/data/DEV/libs/nanomsgxx/.waf3-1.7.11-edc6ccb516c5e3f9b892efc9f53a610f/waflib/Configure.py", line 224, in fun
    return f(*k,**kw)
  File "/mnt/data/DEV/libs/nanomsgxx/.waf3-1.7.11-edc6ccb516c5e3f9b892efc9f53a610f/waflib/Tools/c_config.py", line 473, in check_cxx
    return self.check(*k,**kw)
  File "/mnt/data/DEV/libs/nanomsgxx/.waf3-1.7.11-edc6ccb516c5e3f9b892efc9f53a610f/waflib/Configure.py", line 224, in fun
    return f(*k,**kw)
  File "/mnt/data/DEV/libs/nanomsgxx/.waf3-1.7.11-edc6ccb516c5e3f9b892efc9f53a610f/waflib/Tools/c_config.py", line 375, in check
    ret=self.run_c_code(*k,**kw)
  File "/mnt/data/DEV/libs/nanomsgxx/.waf3-1.7.11-edc6ccb516c5e3f9b892efc9f53a610f/waflib/Configure.py", line 224, in fun
    return f(*k,**kw)
  File "/mnt/data/DEV/libs/nanomsgxx/.waf3-1.7.11-edc6ccb516c5e3f9b892efc9f53a610f/waflib/Tools/c_config.py", line 459, in run_c_code
    bld.compile()
  File "/mnt/data/DEV/libs/nanomsgxx/.waf3-1.7.11-edc6ccb516c5e3f9b892efc9f53a610f/waflib/Build.py", line 186, in compile
    self.store()
  File "/mnt/data/DEV/libs/nanomsgxx/.waf3-1.7.11-edc6ccb516c5e3f9b892efc9f53a610f/waflib/Utils.py", line 386, in f
    ret=fun(*k,**kw)
  File "/mnt/data/DEV/libs/nanomsgxx/.waf3-1.7.11-edc6ccb516c5e3f9b892efc9f53a610f/waflib/Build.py", line 162, in store
    x=cPickle.dumps(data,-1)
AttributeError: Can't pickle local object 'Context.__init__.<locals>.node_class'

Any idea how to make it work?

@achille-roussel
Copy link
Owner

Seems like it's a crash in the internals of waf, what python version do you run this with?

@Sinity
Copy link
Author

Sinity commented Dec 11, 2016

python yields python 3.5.2 interpreter. I also have python 2.7.12

@BenjaminNavarro
Copy link

Same problem here, solved by running python2 waf configure instead of ./waf configure

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