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 2022/10/26 09:15:24 UTC

[GitHub] [pulsar-client-python] laurent-chriqui opened a new issue, #22: Conflict with other python wrapper for CPP Library in Python 3.9+

laurent-chriqui opened a new issue, #22:
URL: https://github.com/apache/pulsar-client-python/issues/22

   Hello,
   
   I have the same issue with the pyproj library using Python>=3.9. 
   
   When I import pyproj first, I have the exact same issue with Pulsar.
   If I import pulsar first, I have a bug in pyproj when I try to do this for example:
   ```python
   import pulsar
   import pyproj
   
   pyproj.Transformer.from_crs('epsg:4326', 'epsg:3035')
   ```
   ```Traceback (most recent call last):
     File "<stdin>", line 1, in <module>
     File "/usr/local/lib/python3.9/site-packages/pyproj/transformer.py", line 600, in from_crs
       cstrencode(CRS.from_user_input(crs_from).srs),
     File "/usr/local/lib/python3.9/site-packages/pyproj/crs/crs.py", line 501, in from_user_input
       return cls(value, **kwargs)
     File "/usr/local/lib/python3.9/site-packages/pyproj/crs/crs.py", line 348, in __init__
       self._local.crs = _CRS(self.srs)
     File "pyproj/_crs.pyx", line 2352, in pyproj._crs._CRS.__init__
   pyproj.exceptions.CRSError: Invalid projection: epsg:4326: (Internal Proj Error: proj_create: cannot build geodeticCRS 4326: cannot build unit of measure 9122: non double value)
   ```
   
   So there seems to be some kind of conflict between cpp libraries since pyproj is also a wrapper for the PROJ cpp library and python 3.9+
   I do not need to install any version of grpcio for this to happen though.
   
   Thank you for looking into this because we are stuck at python 3.8 for now...
   
   Also posted in pyproj [here](https://github.com/pyproj4/pyproj/issues/801)
   
   _Originally posted by @laurent-chriqui in https://github.com/apache/pulsar/issues/17596#issuecomment-1285500127_
         


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

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org.apache.org

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


[GitHub] [pulsar-client-python] laurent-chriqui commented on issue #22: Conflict with other python wrapper for CPP Library in Python 3.9+

Posted by "laurent-chriqui (via GitHub)" <gi...@apache.org>.
laurent-chriqui commented on issue #22:
URL: https://github.com/apache/pulsar-client-python/issues/22#issuecomment-1433091565

   Yes it appears to be working in python 3.10 with pulsar 3.0.0 🥳 


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

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

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


[GitHub] [pulsar-client-python] erichare commented on issue #22: Conflict with other python wrapper for CPP Library in Python 3.9+

Posted by "erichare (via GitHub)" <gi...@apache.org>.
erichare commented on issue #22:
URL: https://github.com/apache/pulsar-client-python/issues/22#issuecomment-1431711110

   @laurent-chriqui Are you still experiencing this issue? On Python 3.10 and 3.11 using the latest stable release, your example works as expected for me:
   
   ```
   In [3]: import pulsar
      ...: import pyproj
      ...: 
      ...: transformer = pyproj.Transformer.from_crs('epsg:4326', 'epsg:3035')
   
   In [4]: transformer.transform(50, -80)
   Out[4]: (6569461.941361759, -269393.776213645)
   ```


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

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

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


[GitHub] [pulsar-client-python] laurent-chriqui closed issue #22: Conflict with other python wrapper for CPP Library in Python 3.9+

Posted by "laurent-chriqui (via GitHub)" <gi...@apache.org>.
laurent-chriqui closed issue #22: Conflict with other python wrapper for CPP Library in Python 3.9+
URL: https://github.com/apache/pulsar-client-python/issues/22


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

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

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