Error: Image size limit exceeded

Hey,

I’m trying to install the mediapipe and opencv (opencv-python-headless) packages, but I get Error: Image size limit exceeded

I tried different base packages but it didn’t make any difference.

Please advise.
Thanks!

Welcome to the forum.

Can you share more details, for example the code that raises the error?

Here are some tips about how to ask a good question: How to ask a good question

I’m just guessing here, but I remember someone asking the same thing before, I think the size of the package is too large for the anvil feature of installing your own packages using the beta python 3.10 runtime environment.

You might try finding some of the ancillary pip packages that opencv-python-headless is trying to install, and install them first, making the one-time installation smaller.

Or check into if the PyPI repository has information about using bracket flags to make your pip package install opencv-python-headless with less features (hopefully ones you will not be using).

That may also make the wheel size smaller, I am guessing that might be what the error means by “Image size limit”. The allowed size of the files it is able to install is not unlimited, since it is a beta feature, and a shared resource there had to be a cap of some kind.

Not sure I understand the question.
I’m trying to install packages and got the error. See attached image.

The subject talks about Image, the body talks about opencv, the error message sounds like you are trying to manage large images… so I thought you were talking about managing images with opencv and were reporting the error without mentioning the code that fails.

Perhaps something like “when I click this I see that error message” would have helped me better understand the context… but apparently your question was just fine for @ianb, so I guess it was just me :slight_smile:

Ah you just reminded me I had seen it before so I looked and I just found the thread, unfortunately they did not find a solution either, but did narrow it down to the size of the package being the problem:

1 Like

Is there an option I can pay for and get larger package size limit?

@ziv The 3.10 server modules and the ability to add your own packages is still in beta, but if you write to support@anvil.works and explain your use case (maybe find out and include the full package size), they probably can raise the limit on either your app or your account.

That’s just a guess, but I have seen it done before with things in beta.