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

Mac M1 Connection Error and JSON Error #410

Open
Gohloum opened this issue Oct 4, 2024 · 2 comments
Open

Mac M1 Connection Error and JSON Error #410

Gohloum opened this issue Oct 4, 2024 · 2 comments

Comments

@Gohloum
Copy link

Gohloum commented Oct 4, 2024

I believe my issue is somewhat related to issue #376, however related to Mac M1 silicon systems and I am getting the same results on my 2022 Mac Studio running Sonoma 14.6, and 2021 Macbook Pro also running Sonoma 14.6. On both I am attempting to run in Pinokio, which is working as expected with other AI tools.

As similar to #376, If I click on an example image or video, I get the JSON error. If I click on the interface tabs to change from image to video, render, or any other UI controls, I get a "Connection Time Out" instantly upon clicking.

I attempted to follow the solution given in 376 listed at gradio-app/gradio#9277 (comment), but apparently the M1 systems have changed and pip will not install any packages globally. I was able to research and tried a virtual machine through venv and I could follow those steps, however, that did not resolve the issue.

I have included a log file from the pinokio terminal which shows the load of of LivePortrait, and 2 errors. These 2 errors are output on each click in the interface. The first one was an attempt to click on an example image. The second was a click on the Source Video tab.

I followed up with the pinokio support and they sent me to you to post this issue. I feel like this is a configuration issue on the newer silicon systems, but after a few hours searching, I have not found a solution.

LivePortrait_Errors.rtf.zip

@Gohloum
Copy link
Author

Gohloum commented Oct 4, 2024

I couldn't leave this one alone, so I decided to follow the main instructions for installing.

I was able to install everything and get it to run on my localhost, but again I got the connection time errors. Now that I have a LivePortrait env running, I ran the solutions at gradio-app/gradio#9277 (comment) and they were successful.

Everything seems to work fine up until writing out the result after animate and I am getting:
Unknown encoder 'libx264'. I will post this as a separate issue.

Although I was able to resolve running locally aside from the encoder error, running via pinokio still does not work. Therefore I am not sure how to move that issue forward. Therefore I will leave this open until someone responds.

@Hax0rgurl
Copy link

same issue on my side running M2 with both chrome and safari

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants