Giter VIP home page Giter VIP logo

Comments (12)

jamadden avatar jamadden commented on June 19, 2024

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

from btrees.

fgregg avatar fgregg commented on June 19, 2024

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

from btrees.

fgregg avatar fgregg commented on June 19, 2024

@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

from btrees.

jamadden avatar jamadden commented on June 19, 2024

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.

from btrees.

fgregg avatar fgregg commented on June 19, 2024

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

from btrees.

jamadden avatar jamadden commented on June 19, 2024

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.

from btrees.

mgedmin avatar mgedmin commented on June 19, 2024

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

from btrees.

jimfulton avatar jimfulton commented on June 19, 2024

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

from btrees.

jamadden avatar jamadden commented on June 19, 2024

@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.)

from btrees.

jimfulton avatar jimfulton commented on June 19, 2024

from btrees.

jamadden avatar jamadden commented on June 19, 2024

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.

from btrees.

jamadden avatar jamadden commented on June 19, 2024

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

from btrees.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.