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

BTrees 4.4.1 manylinux wheels broken for Python 2.7 - no C extension #70

Closed
jamadden opened this issue Apr 22, 2017 · 12 comments
Closed

Comments

@jamadden
Copy link
Member

Installing the BTrees 4.4.1 manylinux wheels for Python 2.7 doesn't get you the C extension.

This shows up as a build failure by anything that needs the C extension. Notably, because of zopefoundation/zope.security#20, security checks on iter(tree.items()) fail.

These wheels should probably be deleted from PyPI.

(Unfortunately they can't be re-uploaded again.)

@jamadden
Copy link
Member Author

Hmm, so it looks like the problem may lie in persistent's wheels:

$ pip install --only-binary :all: BTrees
Collecting BTrees
  Downloading BTrees-4.4.1-cp27-cp27mu-manylinux1_x86_64.whl (1.3MB)
    100% |████████████████████████████████| 1.3MB 428kB/s
Collecting zope.interface (from BTrees)
  Downloading zope.interface-4.4.0-cp27-cp27mu-manylinux1_x86_64.whl (171kB)
    100% |████████████████████████████████| 174kB 516kB/s
Collecting persistent (from BTrees)
  Downloading persistent-4.2.4.1-cp27-cp27mu-manylinux1_x86_64.whl (180kB)
    100% |████████████████████████████████| 184kB 612kB/s
Requirement already satisfied: setuptools in ./lib/python2.7/site-packages (from zope.interface->BTrees)
Installing collected packages: zope.interface, persistent, BTrees
Successfully installed BTrees-4.4.1 persistent-4.2.4.1 zope.interface-4.4.0
(tmp-349cf9efe9ff94dd)adminuser@adminuser-VirtualBox:~/.virtualenvs/tmp-349cf9efe9ff94dd$ python
Python 2.7.12 (default, Nov 19 2016, 06:48:10)
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import BTrees._OOBTree
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: /home/adminuser/.virtualenvs/tmp-349cf9efe9ff94dd/local/lib/python2.7/site-packages/persistent/cPersistence.so: undefined symbol: PyUnicodeUCS2_AsEncodedString

I wonder if the build and dist directories aren't being cleaned out between builds in the docker image? That causes the wrong binaries to get included, since the build directories don't have the wideness flags. I ran into that in gevent. If that's the case then all the recent wheels are probably bad for Python 2.7 and should be removed.

cc @fgregg @tseaver

@fgregg
Copy link
Contributor

fgregg commented Apr 22, 2017

Argh! That sounds like likely cause. Do you find a fix for gevent?

@fgregg
Copy link
Contributor

fgregg commented Apr 22, 2017

@jamadden I think you are right that the problem is only in persistent

This successful build used the manylinux BTree, but built persistent and zope.interface from source
https://travis-ci.org/dedupeio/dedupe/jobs/224459476

@jamadden
Copy link
Member Author

gevent's manylinux script is not sophisticated (I don't run it on travis, just locally). I fixed this issue by having it simply delete those directories.

@fgregg
Copy link
Contributor

fgregg commented Apr 23, 2017

I built the wheels locally using the script amended by zopefoundation/persistent#64 and can confirm a fix.

@jamadden
Copy link
Member Author

The PRs all look good to me. I don't have PyPI rights to any of the projects to do a release or remove the broken persistent wheel, though.

@mgedmin
Copy link
Member

mgedmin commented Apr 23, 2017

Just FYI I don't have PyPI rights to persistent or BTrees either. Ping @tseaver or @jimfulton.

@jimfulton
Copy link
Member

@jamadden @mgedmin pls remind me what your pypi ids are and what projects you need rights to.

@jamadden
Copy link
Member Author

@jimfulton It's jamadden and mgedmin. Right now the projects that need releases are persistent, BTrees, and zope.interface. (zope.index doesn't yet have a manylinux release, but it will need one soon.)

@jimfulton
Copy link
Member

jimfulton commented Apr 23, 2017 via email

@jamadden
Copy link
Member Author

Thanks. I've removed the broken persistent 2.7 wheels from the existing release, and just released 4.2.4.5 so that new wheels get built with the fix.

@jamadden
Copy link
Member Author

This issue seems to be addressed with the new wheels so I'll close.

clrpackages pushed a commit to clearlinux-pkgs/persistent that referenced this issue Jul 23, 2018
Forest Gregg (5):
      CI setup for manylinux wheels on tagged commit
      Merge pull request #63 from zopefoundation/manylinux
      update zope.appveyor password
      remove build files, addresses zopefoundation/BTrees#70
      Merge pull request #64 from zopefoundation/manylinux27

Jason Madden (2):
      Change note for manylinux fix. Update MANIFEST.in per check-manifest
      Preparing release 4.2.4.2

Tres Seaver (4):
      svb
      Prep 4.2.4.1 release.
      Merge remote-tracking branch 'origin/master'
      svb
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

4 participants