You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2020/07/08 07:20:20 UTC

[GitHub] [pulsar] lbenc135 opened a new issue #7477: [python-client 2.6.0] ContextualVersionConflict grpcio dependency conflict

lbenc135 opened a new issue #7477:
URL: https://github.com/apache/pulsar/issues/7477


   **Describe the bug**
   When installing `pulsar-client==2.6.0` there's a dependency conflict with `grpcio` library.
   
   The dependency tree is (as I understand it):
   - pulsar-client
       - grpcio (any)
       - apache-bookkeeper-client
           - grpcio >=1.8.2,<1.26.0
   
   **To Reproduce**
   Steps to reproduce the behavior:
   1. `pip install pulsar-client==2.6.0`
   2. `grpcio==1.30.0` gets installed
   3. If I try to build my own pip package with `pulsar-client` as dependency, and try to build it, I get the `ContextualVersionConflict` error
   
   **Expected behavior**
   I expect the correct version to be installed and/or the dependency tree to be fixed.
   
   **Screenshots**
   ![Screenshot from 2020-07-08 09-17-09](https://user-images.githubusercontent.com/20871882/86889531-2e578280-c0fc-11ea-8031-d4759173f9fc.png)
   
   
   **Desktop (please complete the following information):**
    - OS: Ubuntu 20.04
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] sijie commented on issue #7477: [python-client 2.6.0] ContextualVersionConflict grpcio dependency conflict

Posted by GitBox <gi...@apache.org>.
sijie commented on issue #7477:
URL: https://github.com/apache/pulsar/issues/7477#issuecomment-655855101


   @lbenc135 Can you share your python code example so we can reproduce it?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] jbellis commented on issue #7477: [python-client 2.6.0] ContextualVersionConflict grpcio dependency conflict

Posted by GitBox <gi...@apache.org>.
jbellis commented on issue #7477:
URL: https://github.com/apache/pulsar/issues/7477#issuecomment-777016393


   I ran into this today.  
   
   It looks like BookKeeper revved its requirement to include up to 1.28, but in the meantime grpcio released even more versions which are not compatible (1.35 is the latest now).
   
   I think Pulsar client needs to specify a grpcio version that matches a version compatible with the appropriate BK release.
   
   Until then the Python client is effectively uninstallable for the majority of people trying to follow the docs.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] lbenc135 commented on issue #7477: [python-client 2.6.0] ContextualVersionConflict grpcio dependency conflict

Posted by GitBox <gi...@apache.org>.
lbenc135 commented on issue #7477:
URL: https://github.com/apache/pulsar/issues/7477#issuecomment-659460179


   @sijie It's a bit complicated because it involves having a python package which requires another python package.
   
   Basically it seems the problem is that in version 4.11.0 of `apache-bookkeeper-client` there was an explicit requirement added: `grpcio<1.26.0`, while in 4.10.0 this was only `>=1.8.2`. Since pulsar-client itself requires `grpcio`, but does not specify a version, pip installs the newest (maybe the solution is removing this dependency?).
   
   Setuptools verifies all the dependencies of my python package and throws this error.
   
   I temporarily solved it by explicitly adding `grpcio==1.25.0` in my requirements.txt.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] lbenc135 commented on issue #7477: [python-client 2.6.0] ContextualVersionConflict grpcio dependency conflict

Posted by GitBox <gi...@apache.org>.
lbenc135 commented on issue #7477:
URL: https://github.com/apache/pulsar/issues/7477#issuecomment-659920549


   Sure: https://github.com/apache/bookkeeper/issues/2377


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] sijie commented on issue #7477: [python-client 2.6.0] ContextualVersionConflict grpcio dependency conflict

Posted by GitBox <gi...@apache.org>.
sijie commented on issue #7477:
URL: https://github.com/apache/pulsar/issues/7477#issuecomment-659811336


   Gotcha. Can you also raise an issue at https://github.com/apache/bookkeeper? So we can relax the requirement in bookkeeper side.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] merlimat closed issue #7477: [python-client 2.6.0] ContextualVersionConflict grpcio dependency conflict

Posted by GitBox <gi...@apache.org>.
merlimat closed issue #7477:
URL: https://github.com/apache/pulsar/issues/7477


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org