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

Latest Update - Docker Build Issue #376

Closed
jwuliger opened this issue Jun 14, 2023 · 15 comments
Closed

Latest Update - Docker Build Issue #376

jwuliger opened this issue Jun 14, 2023 · 15 comments

Comments

@jwuliger
Copy link

Hello,

I am having trouble getting Docker to build the project. I am using Linux containers. It looks like it is having trouble with installing playwright and/or chromium.

Here is my console output:

=> [ 6/12] RUN apt-get update &&     apt-get install -y xvfb xauth x11vnc &&     apt-get clean                                                                                                                                                                                                                                                       50.1s 
 => ERROR [ 7/12] RUN apt-get update && playwright install --with-deps chromium                                                                                                                                                                                                                                                                        5.3s 
------
 > [ 7/12] RUN apt-get update && playwright install --with-deps chromium:
#0 0.873 Hit:1 http://deb.debian.org/debian bookworm InRelease
#0 0.937 Hit:2 http://deb.debian.org/debian bookworm-updates InRelease
#0 1.026 Hit:3 http://deb.debian.org/debian-security bookworm-security InRelease
#0 1.152 Reading package lists...
#0 2.576 BEWARE: your OS is not officially supported by Playwright; installing dependencies for Ubuntu as a fallback.
#0 2.576 Installing dependencies...
#0 2.721 Hit:1 http://deb.debian.org/debian bookworm InRelease
#0 2.797 Hit:2 http://deb.debian.org/debian bookworm-updates InRelease
#0 2.880 Hit:3 http://deb.debian.org/debian-security bookworm-security InRelease
#0 2.981 Reading package lists...
#0 3.816 Reading package lists...
#0 4.653 Building dependency tree...
#0 4.931 Reading state information...
#0 4.941 Package ttf-ubuntu-font-family is not available, but is referred to by another package.
#0 4.941 This may mean that the package is missing, has been obsoleted, or
#0 4.941 is only available from another source
#0 4.941
#0 4.941 Package ttf-unifont is not available, but is referred to by another package.
#0 4.941 This may mean that the package is missing, has been obsoleted, or
#0 4.941 is only available from another source
#0 4.941 However the following packages replace it:
#0 4.941   fonts-unifont
#0 4.941
#0 4.941 Package xfonts-cyrillic is not available, but is referred to by another package.
#0 4.941 This may mean that the package is missing, has been obsoleted, or
#0 4.941 is only available from another source
#0 4.941
#0 4.944 E: Package 'ttf-unifont' has no installation candidate
#0 4.944 E: Package 'xfonts-cyrillic' has no installation candidate
#0 4.944 E: Package 'ttf-ubuntu-font-family' has no installation candidate
#0 4.947 Failed to install browsers
#0 4.947 Error: Installation process exited with code: 100
------
failed to solve: process "/bin/sh -c apt-get update && playwright install --with-deps chromium" did not complete successfully: exit code: 1

I was able to run the last version without any issues. I am not sure if this is something I am not doing correctly or if this is a bug.

Thanks for your help!

@atxcowboy
Copy link

Similar error on Windows:

No module named 'playwright'

@SirToothless
Copy link

Same here, not really sure what to do with it :/

@prashantdwivedi
Copy link

prashantdwivedi commented Jun 14, 2023

Same Issue +1

@justquick
Copy link

ditto. might b related to the version of playwright in requirements not supporting the latest ubuntu 22.10. seems similar to microsoft/playwright#13530

@ConorParis32
Copy link

I got the same issue

@david-engelmann
Copy link

david-engelmann commented Jun 14, 2023

I'm currently seeing this issue as well, but while trying to install google-chrome, E: Package 'xfonts-cyrillic' has no installation candidate

@david-engelmann
Copy link

I removed the packages from my error ( "xfonts-cyrillic" ) and it gave me a series of new deps which I added, in my case it was libatk-bridge2.0-0 libatspi2.0-0 libgtk-4-1 libvulkan1 libxkbcommon0. Seems to solve the chrome building issue

@stefan-wiesner
Copy link

stefan-wiesner commented Jun 14, 2023

Hi.

You can change the file DockerfileCelery and comment the playwright stuff out. It is an end-to-end testing lib you will not need when not developing SuperAGI imo. As a quick fix I did it like that.

1

Then docker-compose up --build and superAGI is working again.

Maybe you can comment the whole line but I did not want to check all following files if the apt update is really needed. It's a workaround and no PR

@luciferlinx101
Copy link
Collaborator

Hey guys really sorry from our end seems there is some issue especially on windows with playright,chromium or web-interactor tool removing it as of now from main, would fix it soon and merge!

@ConorParis32
Copy link

Hey guys really sorry from our end seems there is some issue especially on windows with playright,chromium or web-interactor tool removing it as of now from main, would fix it soon and merge!

It was not working on Mac for me also

@ConorParis32
Copy link

Hey guys really sorry from our end seems there is some issue especially on windows with playright,chromium or web-interactor tool removing it as of now from main, would fix it soon and merge!

Thank You

@boktoday
Copy link

Yeah. I had the same issue. Looking forward to the fix. Thanks in advance.

@prashantdwivedi
Copy link

Hi.

You can change the file DockerfileCelery and comment the playwright stuff out. It is an end-to-end testing lib you will not need when not developing SuperAGI imo. As a quick fix I did it like that.

1

Then docker-compose up --build and superAGI is working again.

Maybe you can comment the whole line but I did not want to check all following files if the apt update is really needed. It's a workaround and no PR

somehow your trick worked but the server error was found to say as open localhost:3000. Now another issue.

@boktoday
Copy link

Yeah @stefan-wiesner Thanks for the tip. I worked but my install stalled again for some reason. Look forward to the fix.

@wilhelmbe
Copy link

Works if docker image is changed to python:3.9-bullseye

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