Visitar URL original
TypeError can't concat memoryview to bytearray · Issue #303 · msgpack/msgpack-python · GitHub
Skip to content

TypeError can't concat memoryview to bytearray #303

Description

@jaraco

Attempting to run pip on Jython 2.7.1, I run into the error reported in pypa/pip#5296.

Traceback points at msgpack as the culprit. Here's the tail of it:

  File "/usr/local/Cellar/jython/2.7.1/libexec/Lib/site-packages/pip/_vendor/requests/sessions.py", line 618, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/Cellar/jython/2.7.1/libexec/Lib/site-packages/pip/_vendor/cachecontrol/adapter.py", line 42, in send
    cached_response = self.controller.cached_request(request)
  File "/usr/local/Cellar/jython/2.7.1/libexec/Lib/site-packages/pip/_vendor/cachecontrol/adapter.py", line 42, in send
    cached_response = self.controller.cached_request(request)
  File "/usr/local/Cellar/jython/2.7.1/libexec/Lib/site-packages/pip/_vendor/cachecontrol/controller.py", line 137, in cached_request
    resp = self.serializer.loads(request, cache_data)
  File "/usr/local/Cellar/jython/2.7.1/libexec/Lib/site-packages/pip/_vendor/cachecontrol/serialize.py", line 98, in loads
    return getattr(self, "_loads_v{0}".format(ver))(request, data)
  File "/usr/local/Cellar/jython/2.7.1/libexec/Lib/site-packages/pip/_vendor/cachecontrol/serialize.py", line 98, in loads
    return getattr(self, "_loads_v{0}".format(ver))(request, data)
  File "/usr/local/Cellar/jython/2.7.1/libexec/Lib/site-packages/pip/_vendor/cachecontrol/serialize.py", line 190, in _loads_v4
    cached = msgpack.loads(data, encoding='utf-8')
  File "/usr/local/Cellar/jython/2.7.1/libexec/Lib/site-packages/pip/_vendor/cachecontrol/serialize.py", line 190, in _loads_v4
    cached = msgpack.loads(data, encoding='utf-8')
  File "/usr/local/Cellar/jython/2.7.1/libexec/Lib/site-packages/pip/_vendor/msgpack/fallback.py", line 119, in unpackb
    unpacker.feed(packed)
  File "/usr/local/Cellar/jython/2.7.1/libexec/Lib/site-packages/pip/_vendor/msgpack/fallback.py", line 298, in feed
    self._buffer += view
TypeError: can't concat memoryview to bytearray

It would be nice to see this fixed, as jython is hobbled without a working pip.

Activity

  1. methane commented on Jun 26, 2018

    @methane
    Member

    I don't use Java and Jython.
    Would you make a pull request to add Jython environment to Travis-CI?

  2. jfolz commented on Jun 26, 2018

    @jfolz
    Contributor

    Seems like Jython is quite dead TBH, the official page was last updated 3 years ago: http://www.jython.org/

  3. methane commented on Jun 26, 2018

    @methane
    Member

    I don't want support Jython officially. Actually speaking, I want to drop Python 2 support in next few years.
    But if #304 help you, I'll merge it at now.

  4. homecoder commented on Jul 5, 2018

    @homecoder

    @methane

    I agree with you on both points, but I suggest allowing the community who use jython (by choice, or by requirement) to setup patches and merge them?

    Python 2 will see its EOL soon enough, then support for Python 2 can stop. It might be nice to maintain a hotfix branch - again for community members who use it professionally and can't change yet.

    Personally, I use java based products which allow for a Jython interface, and there is just more staff out there who can do sufficient python - but not so much groovy/java.

    That's my $0.02, but in truth I am speaking 100% selfishly and personally that is.

  5. added a commit that references this issue on Jul 6, 2018
    aa41e2f
  6. added a commit that references this issue on Apr 19, 2019
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