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

pycapnp version 0.5.12 ships capnp 0.5.3.1 but clang 4 / capnp::Kind still error #152

Closed
breznak opened this issue May 17, 2017 · 8 comments

Comments

@breznak
Copy link

breznak commented May 17, 2017

I'm using the latest pycapnp release from pypi, which is 0.5.12. According to the changelog it ships capnp 0.5.3.1, which contains a fix for compilation with clang 4.x:
capnproto/capnproto#433

However, I'm still getting the same error that was supposed to be fixed. Is the problem in pycapnp, capnp, or somewhere else?

Thank you,

@jparyani
Copy link
Contributor

Can you attach the output of pip install -v or similar?

@breznak
Copy link
Author

breznak commented May 17, 2017

Output of pip install -v pycapnp==0.5.12 (after uninstall)

  Successfully uninstalled pycapnp-0.5.12
(pyenv) XXX:XXXX/build/scripts$ pip uninstall pycapnp
Cannot uninstall requirement pycapnp, not installed
(pyenv) XXX:XXXX/build/scripts$ pip install -v pycapnp==0.5.12
Collecting pycapnp==0.5.12
  1 location(s) to search for versions of pycapnp:
  * https://pypi.python.org/simple/pycapnp/
  Getting page https://pypi.python.org/simple/pycapnp/
  Looking up "https://pypi.python.org/simple/pycapnp/" in the cache
  Current age based on date: 27490
  Freshness lifetime from max-age: 600
  Freshness lifetime from request max-age: 600
  The cached response is "stale" with no etag, purging
  Starting new HTTPS connection (1): pypi.python.org
  "GET /simple/pycapnp/ HTTP/1.1" 200 2097
  Updating cache with response from "https://pypi.python.org/simple/pycapnp/"
  Caching b/c date exists and max-age > 0
  Analyzing links from page https://pypi.python.org/simple/pycapnp/
    Found link https://pypi.python.org/packages/02/5d/700f423e920f1f65c31591da73c19761d542e79cb91ec6ceae2b82fde625/pycapnp-0.5.0.tar.gz#md5=d4e4bd665226b1d9d459748b3804478f (from https://pypi.python.org/simple/pycapnp/), version: 0.5.0
    Found link https://pypi.python.org/packages/05/89/20e8bade091aedbbb8b5c7aaa32e6787c2a18117eb7eac82c5c0ad8dbb47/pycapnp-0.4.2.tar.gz#md5=1e276bf9a3f61f21ef4f790b510071ba (from https://pypi.python.org/simple/pycapnp/), version: 0.4.2
    Found link https://pypi.python.org/packages/0c/d2/2405c35bddd78f47852752d72875ee4b84eaa3424825d4d5a5c07d15a0ab/pycapnp-0.4.3.tar.gz#md5=adaec8c5f71903ac50c7f1fc2f42fc65 (from https://pypi.python.org/simple/pycapnp/), version: 0.4.3
    Found link https://pypi.python.org/packages/10/1b/e3af8e3c2757aa103ba4924ca5f91edf9ff927b888063e6cc14c7ed5da72/pycapnp-0.5.9.tar.gz#md5=4180c74f4a9adfcd8a5a605843399c83 (from https://pypi.python.org/simple/pycapnp/), version: 0.5.9
    Found link https://pypi.python.org/packages/27/d1/941c5779fd50bd93c15bdc33dac5e4ced1a83efbbde97107894bbc5cd4b2/pycapnp-0.3.13.tar.gz#md5=dbb1eb1fa5f69794633ec46f854ae926 (from https://pypi.python.org/simple/pycapnp/), version: 0.3.13
    Found link https://pypi.python.org/packages/34/37/132587483a086aba20b04a159a772d336fb53b7b24df7c369df867cbad6b/pycapnp-0.3.16.tar.gz#md5=aa17666a2a2668b7a982104e7a9650cf (from https://pypi.python.org/simple/pycapnp/), version: 0.3.16
    Found link https://pypi.python.org/packages/39/77/70e1caecabdb939bb13bbf9e7a1a3035fafab7bfd3f12b62df0f649b1f9e/pycapnp-0.5.8.tar.gz#md5=dc378f2513d74f1eaa7dcb7e8a2bd620 (from https://pypi.python.org/simple/pycapnp/), version: 0.5.8
    Found link https://pypi.python.org/packages/39/92/0241e2bd8498c74267cd2071d42fd53dc3a1f58994e785f113f1528d6179/pycapnp-0.5.3.tar.gz#md5=5c2b0c2615cd7c3a9cba6b95cfd3a017 (from https://pypi.python.org/simple/pycapnp/), version: 0.5.3
    Found link https://pypi.python.org/packages/3a/3e/ace33380da38b0d02420b0697feb5c521b9d5756e6b376d20cee145a6822/pycapnp-0.5.11.tar.gz#md5=68bca2c8c79e5843a11165e2ece3eebf (from https://pypi.python.org/simple/pycapnp/), version: 0.5.11
    Found link https://pypi.python.org/packages/3c/47/964ae1f9f27c059f9b99843ac95ece12bd0ff3d6eae5cfd80bcb18cea529/pycapnp-0.1.0.tar.gz#md5=a85f00e6e8a6b2822ff3f26602030341 (from https://pypi.python.org/simple/pycapnp/), version: 0.1.0
    Found link https://pypi.python.org/packages/4c/7b/a55dc0ec79c5901d0545335178e4990048237853c2a6fbab0648da316df4/pycapnp-0.5.4.tar.gz#md5=82fe1985a1420d539f5655f838b4bddc (from https://pypi.python.org/simple/pycapnp/), version: 0.5.4
    Found link https://pypi.python.org/packages/65/e7/1a8ed69452f0d4e429dba21513e8801b5b6910707f67a38a02f5571a7292/pycapnp-0.5.12.tar.gz#md5=ec408b2e017df4aca90f270e8e0398bf (from https://pypi.python.org/simple/pycapnp/), version: 0.5.12
    Found link https://pypi.python.org/packages/70/b3/5ca1fab6a5c4749499e55eda1b7f7a1fa77fcdf5ca8944b9edc652dda8aa/pycapnp-0.3.14.tar.gz#md5=475b7b42b1054811ca37c6539c876cb7 (from https://pypi.python.org/simple/pycapnp/), version: 0.3.14
    Found link https://pypi.python.org/packages/8e/46/0f79a627dc6583052dc8aab064315ecddb8e7462283f07c6d01edac3e7c6/pycapnp-0.4.1.tar.gz#md5=84440db0bed085e09fe862b04a3b1b13 (from https://pypi.python.org/simple/pycapnp/), version: 0.4.1
    Found link https://pypi.python.org/packages/8e/84/9a4ff3962d67b70d135027f40c8fdc8c9fee0ca661ad1eac01e77face9a3/pycapnp-0.3.12.tar.gz#md5=1e7a0e78a9d08dcade7b8de4778826d0 (from https://pypi.python.org/simple/pycapnp/), version: 0.3.12
    Found link https://pypi.python.org/packages/9e/77/82ead7f7d85397d68f934bfb84061e128b44443b59ff745676d306d4f658/pycapnp-0.5.1.tar.gz#md5=526534727701677b7552febdedfc0482 (from https://pypi.python.org/simple/pycapnp/), version: 0.5.1
    Found link https://pypi.python.org/packages/a2/f4/c115dbf48fe1d360cc80c0ef2ae2020a4c6d5db26a65f6807e5b557ead8f/pycapnp-0.5.5.tar.gz#md5=71570126bbec8b38f992b1e8feebaeab (from https://pypi.python.org/simple/pycapnp/), version: 0.5.5
    Found link https://pypi.python.org/packages/b5/3b/01506c0c66bd2dc7a227e0ea179d6743bc1dc3df0a2cc2979723bc096856/pycapnp-0.5.2.tar.gz#md5=9bec2edd35afce29bee5f7d2cf448835 (from https://pypi.python.org/simple/pycapnp/), version: 0.5.2
    Found link https://pypi.python.org/packages/bb/06/aa1671472c65b7119842517c820d0d0905488d25469145f4166eb5a6c042/pycapnp-0.3.15.tar.gz#md5=b6bbdbef3ee342cfdde9e377d286adf9 (from https://pypi.python.org/simple/pycapnp/), version: 0.3.15
    Found link https://pypi.python.org/packages/cc/64/efe87a376b643deb0a9a83d955ace133ea8c231f72408591d33e41515621/pycapnp-0.3.11.tar.gz#md5=a87b3fd84e5681b8d57aadca8b7ff608 (from https://pypi.python.org/simple/pycapnp/), version: 0.3.11
    Found link https://pypi.python.org/packages/d7/d9/c3ef8763784a619b5729b576c90d88d91bd64ca6d471e649a6b430bc9e3c/pycapnp-0.5.7.tar.gz#md5=d47396d6724593afcbb728b87ac6de07 (from https://pypi.python.org/simple/pycapnp/), version: 0.5.7
    Found link https://pypi.python.org/packages/d9/8e/b7c83f3a54a40268aee77f6ad809c62d88228727f094f57dc62f3d322df2/pycapnp-0.4.0.tar.gz#md5=11127d537f47bd4788c9c1f213e49990 (from https://pypi.python.org/simple/pycapnp/), version: 0.4.0
    Found link https://pypi.python.org/packages/e4/01/2a017fa4aaf89141d8d3c7d32177a278299a69d7ae233b58021f1e10a575/pycapnp-0.4.4.tar.gz#md5=1fe73a4ede329117d94a91e0c60a68e6 (from https://pypi.python.org/simple/pycapnp/), version: 0.4.4
    Found link https://pypi.python.org/packages/ec/fc/856cc558cde809ab49519e022cf13762b3fde15ad1585b9d977c37e1b386/pycapnp-0.5.10.tar.gz#md5=8da18d99be6c9edaa880a1527849eac6 (from https://pypi.python.org/simple/pycapnp/), version: 0.5.10
    Found link https://pypi.python.org/packages/ed/29/60887c473bcec627deba6a86c5dd3ab6883a12e07ac16f6c3a2f40c6ae5e/pycapnp-0.3.18.tar.gz#md5=8ac45b9b955fc5fc98a8bf711a21c915 (from https://pypi.python.org/simple/pycapnp/), version: 0.3.18
    Found link https://pypi.python.org/packages/f3/e4/8a82ea91cfbedae1d61957ec3ff9926b047d83934ee2d693cab34cae2f02/pycapnp-0.4.6.tar.gz#md5=91e0f632c409825cc8735cf94a9a645a (from https://pypi.python.org/simple/pycapnp/), version: 0.4.6
    Found link https://pypi.python.org/packages/f4/73/6d2cd247462119931d35c3ab160f55ec70a0cc03f6c6dbd94a86e9b36258/pycapnp-0.4.5.tar.gz#md5=d88e6cf5c743eed99178dcda819e38c6 (from https://pypi.python.org/simple/pycapnp/), version: 0.4.5
    Found link https://pypi.python.org/packages/fa/58/f1717d6c669054a4631cdd6ccd48dc2eb9686199d2f9c6a62a5e73925ac1/pycapnp-0.5.6.tar.gz#md5=6f636c91e0291bd0b410c3f7b8076b76 (from https://pypi.python.org/simple/pycapnp/), version: 0.5.6
  Using version 0.5.12 (newest of versions: 0.5.12)
  Using cached wheel link: file:///XXX/.cache/pip/wheels/32/e4/fa/d142c33c810b9c1920361f457877273bd245b1a00d6f7019f8/pycapnp-0.5.12-cp27-cp27mu-linux_x86_64.whl
Installing collected packages: pycapnp

  changing mode of XXX/pyenv/bin/capnpc-cython to 775
Successfully installed pycapnp-0.5.12
Cleaning up...

This is on Ubuntu, in virtualenv, otherwise capnp is and has been working fine

@jparyani
Copy link
Contributor

That looks like a successful install. What is the error you're seeing?

@breznak
Copy link
Author

breznak commented May 18, 2017

Scanning dependencies of target nupic_core_solo
[ 29%] Building CXX object src/CMakeFiles/nupic_core_solo.dir/nupic/proto/ArrayProto.capnp.c++.o
In file included from /mnt/store/devel/HTM/nupic.core/build/scripts/src/nupic/proto/ArrayProto.capnp.c++:4:
In file included from /mnt/store/devel/HTM/nupic.core/build/scripts/src/nupic/proto/ArrayProto.capnp.h:7:
In file included from /mnt/store/devel/HTM/nupic.core/build/scripts/ThirdParty/Install/include/capnp/generated-header-support.h:31:
/mnt/store/devel/HTM/nupic.core/build/scripts/ThirdParty/Install/include/capnp/layout.h:129:65: error: value of type 'bool' is not implicitly convertible to
      'capnp::Kind'
template <typename T, bool b> struct ElementSizeForType<List<T, b>> {
                                                                ^

@jparyani
Copy link
Contributor

It looks like you may be picking up an older version of pycapnp than you think? pip install pycapnp does seem to work for you, so it doesn't seem to be a problem there.

Can you get the nupic install to do a verbose build and check versions in the output?

@breznak
Copy link
Author

breznak commented May 23, 2017

It looks like you may be picking up an older version of pycapnp than you think?

Thank you! You're correct, for some reason we ship the tarball and it was at the 0.5.3(not .1) version.

Should pycapnp enforce (check for) the exact capnp version it's supposed to run with? To avoid problems like this.

@chaoflow
Copy link
Contributor

chaoflow commented May 8, 2019

It feels like this issue could be closed.

@breznak
Copy link
Author

breznak commented May 8, 2019

Thank you for leading me through the debug process! 👍

@breznak breznak closed this as completed May 8, 2019
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