You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datasketches.apache.org by GitBox <gi...@apache.org> on 2022/09/16 22:44:18 UTC

[GitHub] [datasketches-cpp] andrey-klochkov-liftoff opened a new issue, #304: The package for ARM MacOS has an x86_64 datasketches.so in it

andrey-klochkov-liftoff opened a new issue, #304:
URL: https://github.com/apache/datasketches-cpp/issues/304

   When I install datasketches 3.5.0 with pip and the try to use it, I get the following on an ARM based MacBook:
   ```
   >>> import datasketches
   Traceback (most recent call last):
     File "<stdin>", line 1, in <module>
   ImportError: dlopen(/Users/username/.venv/kirin/lib/python3.9/site-packages/datasketches.so, 0x0002): tried: '/Users/username/.venv/kirin/lib/python3.9/site-packages/datasketches.so' (mach-o file, but is an incompatible architecture (have (x86_64), need (arm64e)))
   ```
   
   I downloaded the file `datasketches-3.5.0-cp39-cp39-macosx_11_0_arm64.whl` from pypi.org, extracted `datasketches.so` from it and then checked the platform, and it's a wrong platform:
   ```
   ❯ file datasketches.so
   datasketches.so: Mach-O 64-bit bundle x86_64
   ```


-- 
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@datasketches.apache.org.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datasketches.apache.org
For additional commands, e-mail: commits-help@datasketches.apache.org


[GitHub] [datasketches-cpp] andrey-klochkov-liftoff commented on issue #304: The Python package for ARM MacOS has an x86_64 datasketches.so in it

Posted by GitBox <gi...@apache.org>.
andrey-klochkov-liftoff commented on issue #304:
URL: https://github.com/apache/datasketches-cpp/issues/304#issuecomment-1249935057

   We just built the wheel from sources on an arm macbook, installed it and it worked fine. Seems something's off with the way those pypi packages were built, not the library code.


-- 
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@datasketches.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datasketches.apache.org
For additional commands, e-mail: commits-help@datasketches.apache.org


[GitHub] [datasketches-cpp] jmalkin commented on issue #304: The Python package for ARM MacOS has an x86_64 datasketches.so in it

Posted by GitBox <gi...@apache.org>.
jmalkin commented on issue #304:
URL: https://github.com/apache/datasketches-cpp/issues/304#issuecomment-1249919093

   Well, that certainly seems broken. Ugh. Thanks for flagging it.
   
   I have an M1 Mac as of this week so I'll see if I can figure out what's happening -- and even be able to test it directly, finally!


-- 
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@datasketches.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datasketches.apache.org
For additional commands, e-mail: commits-help@datasketches.apache.org


[GitHub] [datasketches-cpp] jmalkin commented on issue #304: The Python package for ARM MacOS has an x86_64 datasketches.so in it

Posted by GitBox <gi...@apache.org>.
jmalkin commented on issue #304:
URL: https://github.com/apache/datasketches-cpp/issues/304#issuecomment-1255729308

   Finally had a chance to look into this. Found an explanation from the same issue on other projects. The wheels are built via GitHub Actions, which apparently uses only Intel Macs as the actual task runners. The environment is mostly set to cross-compile -- but cmake is unaware of that when it configures the underlying C++ library.
   
   That also explains why building a wheel locally works fine. Having a complete theory of the problem is good.
   
   I'll try to test a patch later tonight.


-- 
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@datasketches.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datasketches.apache.org
For additional commands, e-mail: commits-help@datasketches.apache.org


[GitHub] [datasketches-cpp] jmalkin closed issue #304: The Python package for ARM MacOS has an x86_64 datasketches.so in it

Posted by GitBox <gi...@apache.org>.
jmalkin closed issue #304: The Python package for ARM MacOS has an x86_64 datasketches.so in it
URL: https://github.com/apache/datasketches-cpp/issues/304


-- 
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@datasketches.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datasketches.apache.org
For additional commands, e-mail: commits-help@datasketches.apache.org


[GitHub] [datasketches-cpp] jmalkin commented on issue #304: The Python package for ARM MacOS has an x86_64 datasketches.so in it

Posted by GitBox <gi...@apache.org>.
jmalkin commented on issue #304:
URL: https://github.com/apache/datasketches-cpp/issues/304#issuecomment-1304608401

   At long last, this has been resolved. Pypi now has v3.5.1, which fixes this. At least it worked when I tested it just now.
   
   Apologies for the delay. The issue was very much not forgotten.


-- 
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@datasketches.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datasketches.apache.org
For additional commands, e-mail: commits-help@datasketches.apache.org