Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR "PV file has incorrect format or belongs to a different platform" #1238

Closed
2 tasks done
AppleSeedExp opened this issue Feb 29, 2024 · 2 comments
Closed
2 tasks done
Assignees
Labels
question Further information is requested

Comments

@AppleSeedExp
Copy link

AppleSeedExp commented Feb 29, 2024

Have you checked the docs and existing issues?

  • I have read all of the relevant Picovoice Porcupine docs
  • I have searched the existing issues for Porcupine

SDK

React

Porcupine package version

2.0.0

Framework version

Node v20.11.0

Platform

Web (WASM)

OS/Browser version

Window 10

Describe the bug

The issue is the following:
LeopardInvalidArgumentError: Initialization failed: [0] Model (.pv) file has incorrect format or belongs to a different platform. [1] Picovoice Error (code 00000136

Steps To Reproduce

  1. Copy the "VideoWidget.tsx" file from "Demo".
  2. Download the leopard_params.pv file to the Lib directory.
  3. Create the model like the following:
    const leopardModel = {
    publicPath: "../Lib/leopard_params.pv",
    }

Expected Behavior

I can't expect about the future. I've clicked the init button with AccessKey but I have an error...

@AppleSeedExp AppleSeedExp added the bug Something isn't working label Feb 29, 2024
@mrrostam mrrostam added question Further information is requested and removed bug Something isn't working labels Feb 29, 2024
@mrrostam
Copy link
Member

I'm a bit confused. Is this issue related to Leopard or Porcupine? If it's about Leopard, could you please close this ticket and open a new one in the Leopard repository? Additionally, it seems there's no "VideoWidget.tsx" file in our demo folder. Could you try running our React demo without making any modifications to see if it works for you? Also, remember to set forceWrite=true in the Leopard model settings to overwrite any old model files.

@mrrostam mrrostam self-assigned this Feb 29, 2024
@mrrostam
Copy link
Member

mrrostam commented Mar 5, 2024

Closed due to inactivity

@mrrostam mrrostam closed this as completed Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants