Closed chrisoro closed 10 months ago
Interesting, I didn't expect any Apple users. Really no C++20 support? My companion project pya2ldb will soon get a comprehensive update which heavily relies on C++20 -- coroutines are really a killer feature, unfortunately there's currently no PyBind11 binding. XcpLogFileReader would than naturally map to a Python generator.
I've only run this on Windows because the entire tool chain based on Vector is exclusively available for that platform. However, I'm developing a Python project that uses pyxcp, and I work on a Mac. Consequently, when I tried to install pyxcp in my environment, it failed after the release of 0.21.1. This update should resolve the issue.
Do you have any plans to offer wheels for Mac? Specifically, wheels for macosx_13_0_arm64 (which would cover all Macs running on native Apple Silicon) would be fantastic.
Wait a minute! XcpLogFileReader::next_block IS used as an alternative to C++ coroutines... Could you please re-enable the code?
I don't understand what you mean.
I didn't make any changes to next_block, aside from removing the unused auto keyword. My modifications were solely related to the jthread components, which Apple's clang does not support. For reference, you can check: https://en.cppreference.com/w/cpp/20.
OK, just enabled GH action MacOS build from my mobile. I'm not an Apple User, so I won't be able to fix any build problems...
Instant fail, seems PyBind11 related.
Yes, you're right, next_block is still there.
Instant fail, seems PyBind11 related.
Yup, and this is what my change here fixes :) You started it on master which will naturally fail.
The build job is failing due to the runner employing an outdated version of macOS. For detailed reference, please click here. The embedded Xcode version lacks certain C++ features essential for the build.
Could you update the macOS version on the runner? As per GitHub's official documentation, specifying macos-13
instead of the default macos-latest
(which equates to version 12) should resolve the problem. While it's in beta, it appears to be a viable solution to explore.
Build environment switched from MacOS 12.6.8 to 13.5.1, the issue persists, but I think it's not a big deal to fix.
I see that you have fixed the issue and provided a macOS wheel with the newest 0.21.4 release. Thank you for the quick response! :)
One proactive note:
While working with Vector Examples, esp. DAQ related stuff, you will encounter ERR_ACCESS_LOCKED responses.
On Windows this could easily fixed by adding a Vector supplied seed-and-key .DLL to your configuration file, but
on MacOS (and Linux) you're obviously out of luck.
But I'm currently working on a completly new IPython style configuration system, which permits code objects, i.e. a .DLL
is not required if the algorithm is known.
Search your Vector examples directory, e.g. 'C:\Users\Public\Documents\Vector\CANape Examples 21.0\
, for
*.sks files, this is basically the seed-n-key algorithm used.
Yes, it works and will publish the new cfg. system as soon as possible.
Types of changes
The changes introduced in 0.21.0 broke the ability to build this on macOS (running 13.5.2 with newest xcode). This fixes these issues.
I only tested it on macOS but it worked fine.