Having trouble linking Pixy2 to Visual Studio Code

Hi! My name is Javier and my team is planning on using the pixy cam this year and have assigned me the task of getting the programming of the pixy working. We use Java through the WPIlib on Visual Studio Code and I found this github page to help. The only problem is when I modify the build.gradle file to how the doc says, it throws me an error. I’ve looked at other methods with out success and currently I am stumped. Any help is appreciated!

Can you post the error you are receiving?

Here is the error in the console

BlockquoteFAILURE: Build failed with an exception.

Where:
Build file ‘C:\Users\FRC5242\2022 MAIN CODE\Main_Robot_code_2022\build.gradle’ line: 87

What went wrong:
Could not determine the dependencies of task ‘:jar’.
Could not resolve all files for configuration ‘:runtimeClasspath’.
Could not resolve pw.otake.pseudoresonance:pixy2-java-api:1.4.1.
Required by:
project :
Could not resolve pw.otake.pseudoresonance:pixy2-java-api:1.4.1.
Could not get resource ‘h ttps://nexus.otake.pw/repository/maven-public/pw/otake/pseudoresonance/pixy2-java-api/1.4.1/pixy2-java-api-1.4.1.pom’.
Could not GET ’ h ttps://nexus.otake.pw/repository/maven-public/pw/otake/pseudoresonance/pixy2-java-api/1.4.1/pixy2-java-api-1.4.1.pom’.
The server may not support the client’s requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. See: h ttps://docs.gradle.org/7.3.3/userguide/build_environment.html#gradle_system_properties
PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

Try:
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.

Get more help at h ttps://help.gradle.org

BUILD FAILED in 3s
The terminal process “cmd.exe /d /c gradlew build -Dorg.gradle.java.home=“C:\Users\Public\wpilib\2022\jdk”” terminated with exit code: 1.

and then after it fails to compile it shows an error in the code with the build.gradle that reads

Unresolved dependency: pw.otake.pseudoresonance:pixy2-java-api:1.4.1Java(0)

Seems like your HTTPS connection back to their repo isn’t connecting while you build. Are you connected to the Internet?

Their repo is there, and browseable to that URL.

Yes I am connected to the internet when I compile

I have found the problem :slight_smile: , I was on my school districts wifi and for some reason it was blocking the access. I swapped to my phones hotspot and It compiled. Thank you!

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.