Skip to content

Verify WPILib/OpenCV versions at runtime#1772

Merged
mcm001 merged 4 commits intoPhotonVision:mainfrom
mcm001:manifest
Feb 11, 2025
Merged

Verify WPILib/OpenCV versions at runtime#1772
mcm001 merged 4 commits intoPhotonVision:mainfrom
mcm001:manifest

Conversation

@mcm001
Copy link
Contributor

@mcm001 mcm001 commented Feb 10, 2025

Closes #1770

https://discordapp.com/channels/725836368059826228/725848198794706994/1330965087800004631

A user was depending on a version of Photon that needed OpenCV 4.10, but an old Monologue was on opencv 4.8

image

The easiest way to prevent this is a strict version pin, but this is perhaps overzealous

@mcm001 mcm001 requested a review from a team as a code owner February 10, 2025 21:02
@mcm001 mcm001 self-assigned this Feb 10, 2025
@mcm001
Copy link
Contributor Author

mcm001 commented Feb 10, 2025

CC @Gold856

Copy link
Member

@Gold856 Gold856 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM if CI passes.

@Gold856
Copy link
Member

Gold856 commented Feb 10, 2025

Oh, and link #1770 so it gets closed when the PR is merged.

Copy link
Member

@spacey-sooty spacey-sooty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mcm001 mcm001 merged commit 8f816cf into PhotonVision:main Feb 11, 2025
36 checks passed
TimeSyncSingleton.load();

// HACK - check if things are compatible
verifyDependencies();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to do this in C++ and Python as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ggezwp. Yeah. But this gets us 80% of the way there.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lol, I'll open a follow up for you

@mcm001 mcm001 deleted the manifest branch February 11, 2025 01:52
samdev-7 pushed a commit to Earl-Of-March-FRC/photonvision that referenced this pull request Feb 16, 2025
@Gold856 Gold856 added the photonlib Things related to the PhotonVision library label Jul 12, 2025
@Gold856 Gold856 mentioned this pull request Jan 25, 2026
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

photonlib Things related to the PhotonVision library

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Runtime Version Check of Vendor Dependencies

3 participants