Skip to content

pyarrow 0.9.0 not cross-platform compatible on projects with pinned dependencies #1992

Closed

Description

@danpalmer

We run a Python project with pinned dependencies for security and production-stability.

We recently added 0.9.0, and found that it broke on macOS development machines (as cython is not a declared dependency), but when upgrading to 0.9.0.post1, we found that our build broke because that is not available for Linux.

We can't use different versions on different OSes, and in fact don't want to specifically because this usually leads to instability of production builds.

For this reason, we are currently unable to use 0.9.0. Our suggested remediation is a 0.9.1 release for macOS and Linux with wheels. Note: we would advise against a 0.9.0.post2 release for this as it goes against our interpretation of PEP440.

Activity

  1. danpalmer commented on May 8, 2018

    @danpalmer
    Author

    Ping on this. The package is currently broken for projects that pin dependencies (which is Python best practice, as well as being very common for repeatable builds and security purposes).

  2. xhochy commented on May 8, 2018

    @xhochy
    Member

    We will fix this on the next release but it is quite a lot of work to make releases for Arrow due to its broad range of packages. If you want this fixed sooner, please help us to streamline the release process.

  3. xhochy commented on May 8, 2018

    @xhochy
    Member

    To help us to get out a new release, it would be helpful when someone could assist in the review of #1869 This PR gives us tooling to avoid such situations in the future again.

  4. danpalmer commented on May 8, 2018

    @danpalmer
    Author

    Hi, thanks for the update, but I think it would be best to leave the issue open so that the community can see when it is fixed, rather than when it is triaged. We'll be following this to see when we can start using arrow again.

  5. xhochy commented on May 8, 2018

    @xhochy
    Member

    We only use Github issues for simple communication, for tracking everything is logged in https://issues.apache.org/jira/projects/ARROW

  6. danpalmer commented on May 8, 2018

    @danpalmer
    Author

    @xhochy cool. Could you add a link here to the issue in Jira so that people who want to track it can do there?

  7. xhochy commented on May 8, 2018

    @xhochy
    Member

    Things to track in JIRA are:

  8. jstray commented on May 30, 2018

    @jstray

    +1 for leaving it open until the next release. The JIRA release link is not publicly viewable.

  9. tekumara commented on Jul 30, 2018

    @tekumara

    @peterclearmetal

    pipenv install "pyarrow>=0.9.0,<=0.9.0.post1"
    

    On Linux errors with

    An error occurred while installing futures==3.2.0! Will try again.
    An error occurred while installing pyarrow==0.9.0.post1! Will try again.
    

    Works on Mac.

  10. wesm commented on Jul 31, 2018

    @wesm
    Member

    What is the error?

  11. notpeter commented on Jul 31, 2018

    @notpeter

    @tekumara You've provided no mention of Linux distribution, python version or other environmental details so I'm not sure how you expect someone to help you.

    We use the pip/requirements line I mentioned above on Mac and Linux without issue.
    For example this works, so your issue is likely environment specific.

    docker run -it ubuntu:xenial
    
    apt-get update; apt-get install -y python3-dev python3-pip
    pip3 install "pyarrow>=0.9.0,<=0.9.0.post1"
    python3 -c "import pyarrow; print(pyarrow.__version__)"
    

    Similarly Python2/pip2 worked fine.

    PS @peterclearmetal is my work GitHub. Sorry for the confusion.

  12. tekumara commented on Aug 1, 2018

    @tekumara

    I was hoping your workaround for pip would work for pipenv but it uses 0.9.0.post1 regardless. Some more detail as requested:

    # python 3.5.2
    docker run -it ubuntu:xenial
    
    apt-get update; apt-get install -y python3-dev python3-pip
    cd /tmp
    pip3 install pipenv
    export LC_ALL=C.UTF-8;export LANG=C.UTF-8
    pipenv install -v "pyarrow>=0.9.0,<=0.9.0.post1"
    
    ....
                              ROUND 1
    Current constraints:
      pyarrow<=0.9.0.post1,>=0.9.0 (from -r /tmp/pipenv-awjcfzsn-requirements/pipenv-m19__3qv-constraints.txt (line 2))
    
    Finding the best candidates:
      found candidate pyarrow==0.9.0.post1 (constraint was >=0.9.0,<=0.9.0.post1)
    
    Finding secondary dependencies:
      pyarrow==0.9.0.post1 not in cache, need to check index
      pyarrow==0.9.0.post1; python_version != "3.2.*" and python_version >= "2.7" and python_version != "3.1.*" and python_version != "3.0.*" and python_version != "3.3.*" requires futures, numpy>=1.10, pyarrow==0.9.0.post1; python_version != "3.2.*" and python_version >= "2.7" and python_version != "3.1.*" and python_version != "3.0.*" and python_version != "3.3.*", six>=1.0.0
    
    New dependencies found in this round:
      adding ['futures', '', '[]']
      adding ['numpy', '>=1.10', '[]']
      adding ['pyarrow', '==0.9.0.post1', '[]']
      adding ['six', '>=1.0.0', '[]']
    ....
    Traceback (most recent call last):
      File "/root/.local/share/virtualenvs/tmp-XVr6zr33/lib/python3.5/site-packages/pip/_internal/basecommand.py", line 141, in main
        status = self.run(options, args)
      File "/root/.local/share/virtualenvs/tmp-XVr6zr33/lib/python3.5/site-packages/pip/_internal/commands/install.py", line 299, in run
        resolver.resolve(requirement_set)
      File "/root/.local/share/virtualenvs/tmp-XVr6zr33/lib/python3.5/site-packages/pip/_internal/resolve.py", line 102, in resolve
        self._resolve_one(requirement_set, req)
      File "/root/.local/share/virtualenvs/tmp-XVr6zr33/lib/python3.5/site-packages/pip/_internal/resolve.py", line 256, in _resolve_one
        abstract_dist = self._get_abstract_dist_for(req_to_install)
      File "/root/.local/share/virtualenvs/tmp-XVr6zr33/lib/python3.5/site-packages/pip/_internal/resolve.py", line 209, in _get_abstract_dist_for
        self.require_hashes
      File "/root/.local/share/virtualenvs/tmp-XVr6zr33/lib/python3.5/site-packages/pip/_internal/operations/prepare.py", line 218, in prepare_linked_requirement
        req.populate_link(finder, upgrade_allowed, require_hashes)
      File "/root/.local/share/virtualenvs/tmp-XVr6zr33/lib/python3.5/site-packages/pip/_internal/req/req_install.py", line 308, in populate_link
        self.link = finder.find_requirement(self, upgrade)
      File "/root/.local/share/virtualenvs/tmp-XVr6zr33/lib/python3.5/site-packages/pip/_internal/index.py", line 543, in find_requirement
        'No matching distribution found for %s' % req
    pip._internal.exceptions.DistributionNotFound: No matching distribution found for pyarrow==0.9.0.post1 (from -r /tmp/pipenv-ilifgedr-requirements/pipenv-esjq5xiw-requirement.txt (line 1))
    
    An error occurred while installing pyarrow==0.9.0.post1! Will try again.
    

    This has been discussed over here pypa/pipenv#2490

  13. wesm commented on Aug 1, 2018

    @wesm
    Member

    So it sounds like pipenv is just buggy:

    pypa/pipenv#2490 (comment)

    "This is a restriction of our resolver at the moment, but we expect each package to at least have an sdist for each version. Please help suggest pyarrow to publish it."

    We are working as quickly as we can to get the 0.10.0 release out. This will be resolved when that happens. You can help by getting involved with Arrow development

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions