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

capnp KjException Duplicate ID failure macos jupyter 1.0.1 #3764

Open
ghost opened this issue Aug 19, 2017 · 10 comments
Open

capnp KjException Duplicate ID failure macos jupyter 1.0.1 #3764

ghost opened this issue Aug 19, 2017 · 10 comments

Comments

@ghost
Copy link

ghost commented Aug 19, 2017

hi all, after updating nupic and bindings to 1.0.1 it fails to run in jupyter notebooks. tested with both pycapnp 0.5.12 and 0.6.1.

KjException: 
/tmp/capnp-20170629-24134-1aqsm3s/capnproto-c++-0.6.1/src/capnp/compiler/node-translator.c++:2090: 
context: member.name = rng

/usr/local/lib/python2.7/site-packages/nupic/proto/RandomProto.capnp:0: failed: 
Duplicate ID @0x88eaee6db8e1f67c.
@rhyolight
Copy link
Member

@scottpurdy I don't know what is up with all these duplicate ID problems. What advice to we give folks running into this? I've been telling them to try uninstalling nupic and capnp, install capnp manually themselves, then re-install nupic.

@scottpurdy
Copy link
Contributor

I don't know! We spent a lot of time to create a setup that didn't have the platform-dependent builds and that solved all of the cases that we test. It would probably take a decent amount of work to reproduce and debug one of these other cases.

@rhyolight
Copy link
Member

If anyone else runs into this and figures out a fix, please post it here!

@jclevesque
Copy link

I have the same error with freshly updated packages (same happens with installation from nupic git repo). Tested with pycapnp 0.5.12 and 0.6.1.

python2.7.13
mac OS 10.12.6

Other packages updated with pip2.

@ghost
Copy link

ghost commented Dec 21, 2017

This is because different path names often point to the same file on Mac OS.

For example,
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nupic/proto/RandomProto.capnp
and
/usr/local/lib/python2.7/site-packages/nupic/proto/RandomProto.capnp.

Capnp considers them as different files, so the "Duplicate ID" error occurs.

@rhyolight
Copy link
Member

rhyolight commented Dec 21, 2017

@agilao That is a sound hypothesis. How would someone test it?

@ghost
Copy link

ghost commented Dec 21, 2017

@rhyolight I have almost confirmed it by debugging pycapnp. Probably you can reproduce this bug by using Homebrew Python.

@rhyolight
Copy link
Member

@agilao My system is set up so I can easily switch between Homebrew python and native python. What would I do to replicate this on my system? Would I need to completely uninstall NuPIC, switch to Homebrew, then reinstall right? Just checking before trying.

Anyone else using Homebrew Python seeing this error?

@rhyolight
Copy link
Member

rhyolight commented Dec 22, 2017

Also... is there a solution? Besides telling someone not to have multiple versions of python installed on OS X?

@ghost
Copy link

ghost commented Dec 22, 2017

@rhyolight You don't need to uninstall NuPIC. I propose the following procedure:

  1. brew update
  2. brew upgrade python
  3. vi ~/.bash_profile # and switch $PATH
  4. pip install --upgrade pip
  5. pip install --upgrade nupic
  6. py.test tests/unit # from the NuPIC folder

is there a solution?

If I was right, you could ask the capnp author for bugfixes, or just say "Homebrew Python is not supported" in README.

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