Beta - Install any python package - Image size limit

Hi there,

I am trying out the new beta option of installing any python package but I am getting an error: Image size limit exceeded

I know that the package I have created depends on some annoying stuff like pandas and polars (same functionality,different devs but other packages require them) so it probably is quite large (300+ Mb on Windows) but before I start to try and downsize the deps… what is the limit and is allowing larger images something to be considered?

Thanks in advance,
Rob

complete output

Installing custom packages…
Looking in indexes: https://gitlab-ci-token:<SOMETHING>@gitlab.com/api/v4/projects//packages/pypi/simple
Collecting leveelogic
Downloading https://gitlab.com/api/v4/projects//packages/pypi/files//leveelogic-0.1.9-py3-none-any.whl (115 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 115.7/115.7 kB 5.3 MB/s eta 0:00:00
Collecting Shapely<2.0.0,>=1.8.1
Downloading Shapely-1.8.2-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (2.0 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.0/2.0 MB 27.5 MB/s eta 0:00:00
Collecting haversine<3.0.0,>=2.5.1
Downloading haversine-2.5.1-py2.py3-none-any.whl (6.1 kB)
Collecting simplejson<4.0.0,>=3.17.6
Downloading simplejson-3.17.6-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (137 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 137.1/137.1 kB 24.4 MB/s eta 0:00:00
Collecting numpy<2.0.0,>=1.22.2
Downloading numpy-1.23.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (17.0 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 17.0/17.0 MB 41.9 MB/s eta 0:00:00
Collecting pygef<0.8.0,>=0.7.2
Downloading pygef-0.7.3-py3-none-any.whl (39 kB)
Collecting anvil-uplink<0.4.0,>=0.3.42
Downloading anvil_uplink-0.3.42-py2.py3-none-any.whl (64 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 64.7/64.7 kB 47.1 MB/s eta 0:00:00
Collecting pyproj<4.0.0,>=3.3.0
Downloading pyproj-3.3.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.6 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.6/7.6 MB 55.2 MB/s eta 0:00:00
Collecting zipp<4.0.0,>=3.8.0
Downloading zipp-3.8.0-py3-none-any.whl (5.4 kB)
Collecting pytest<8.0.0,>=7.1.2
Downloading pytest-7.1.2-py3-none-any.whl (297 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 297.0/297.0 kB 39.5 MB/s eta 0:00:00
Collecting Sphinx<5.0.0,>=4.4.0
Downloading Sphinx-4.5.0-py3-none-any.whl (3.1 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.1/3.1 MB 42.4 MB/s eta 0:00:00
Collecting pandas<2.0.0,>=1.4.1
Downloading pandas-1.4.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.6 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 11.6/11.6 MB 52.2 MB/s eta 0:00:00
Collecting pydantic<2.0.0,>=1.9.0
Downloading pydantic-1.9.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.0 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 12.0/12.0 MB 56.8 MB/s eta 0:00:00
Requirement already satisfied: future in ./.env/lib/python3.10/site-packages (from anvil-uplink<0.4.0,>=0.3.42->leveelogic->-r /home/anvil/custom-requirements.txt (line 3)) (0.17.1)
Collecting argparse
Downloading argparse-1.4.0-py2.py3-none-any.whl (23 kB)
Requirement already satisfied: six in ./.env/lib/python3.10/site-packages (from anvil-uplink<0.4.0,>=0.3.42->leveelogic->-r /home/anvil/custom-requirements.txt (line 3)) (1.14.0)
Requirement already satisfied: ws4py in ./.env/lib/python3.10/site-packages (from anvil-uplink<0.4.0,>=0.3.42->leveelogic->-r /home/anvil/custom-requirements.txt (line 3)) (0.5.1)
Collecting python-dateutil>=2.8.1
Downloading python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 247.7/247.7 kB 62.7 MB/s eta 0:00:00
Collecting pytz>=2020.1
Downloading pytz-2022.1-py2.py3-none-any.whl (503 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 503.5/503.5 kB 72.4 MB/s eta 0:00:00
Collecting typing-extensions>=3.7.4.3
Downloading typing_extensions-4.2.0-py3-none-any.whl (24 kB)
Collecting matplotlib>=3.4.2
Downloading matplotlib-3.5.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.9 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 11.9/11.9 MB 59.9 MB/s eta 0:00:00
Collecting polars>=0.9.5
Downloading polars-0.13.51-cp37-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (12.6 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 12.6/12.6 MB 57.6 MB/s eta 0:00:00
Collecting lxml==4.8.0
Downloading lxml-4.8.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl (7.0 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.0/7.0 MB 14.3 MB/s eta 0:00:00
Requirement already satisfied: certifi in ./.env/lib/python3.10/site-packages (from pyproj<4.0.0,>=3.3.0->leveelogic->-r /home/anvil/custom-requirements.txt (line 3)) (2022.6.15)
Collecting iniconfig
Downloading iniconfig-1.1.1-py2.py3-none-any.whl (5.0 kB)
Collecting py>=1.8.2
Downloading py-1.11.0-py2.py3-none-any.whl (98 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 98.7/98.7 kB 69.4 MB/s eta 0:00:00
Collecting pluggy<2.0,>=0.12
Downloading pluggy-1.0.0-py2.py3-none-any.whl (13 kB)
Collecting attrs>=19.2.0
Downloading attrs-21.4.0-py2.py3-none-any.whl (60 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 60.6/60.6 kB 3.4 MB/s eta 0:00:00
Requirement already satisfied: packaging in ./.env/lib/python3.10/site-packages (from pytest<8.0.0,>=7.1.2->leveelogic->-r /home/anvil/custom-requirements.txt (line 3)) (21.3)
Collecting tomli>=1.0.0
Downloading tomli-2.0.1-py3-none-any.whl (12 kB)
Collecting sphinxcontrib-serializinghtml>=1.1.5
Downloading sphinxcontrib_serializinghtml-1.1.5-py2.py3-none-any.whl (94 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 94.0/94.0 kB 65.8 MB/s eta 0:00:00
Collecting snowballstemmer>=1.1
Downloading snowballstemmer-2.2.0-py2.py3-none-any.whl (93 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 93.0/93.0 kB 62.0 MB/s eta 0:00:00
Collecting sphinxcontrib-devhelp
Downloading sphinxcontrib_devhelp-1.0.2-py2.py3-none-any.whl (84 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 84.7/84.7 kB 54.4 MB/s eta 0:00:00
Collecting Jinja2>=2.3
Downloading Jinja2-3.1.2-py3-none-any.whl (133 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 133.1/133.1 kB 85.6 MB/s eta 0:00:00
Collecting alabaster<0.8,>=0.7
Downloading alabaster-0.7.12-py2.py3-none-any.whl (14 kB)
Collecting sphinxcontrib-applehelp
Downloading sphinxcontrib_applehelp-1.0.2-py2.py3-none-any.whl (121 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 121.2/121.2 kB 67.1 MB/s eta 0:00:00
Collecting sphinxcontrib-jsmath
Downloading sphinxcontrib_jsmath-1.0.1-py2.py3-none-any.whl (5.1 kB)
Collecting Pygments>=2.0
Downloading Pygments-2.12.0-py3-none-any.whl (1.1 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.1/1.1 MB 67.0 MB/s eta 0:00:00
Collecting docutils<0.18,>=0.14
Downloading docutils-0.17.1-py2.py3-none-any.whl (575 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 575.5/575.5 kB 70.9 MB/s eta 0:00:00
Collecting babel>=1.3
Downloading Babel-2.10.3-py3-none-any.whl (9.5 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 9.5/9.5 MB 58.2 MB/s eta 0:00:00
Collecting imagesize
Downloading imagesize-1.3.0-py2.py3-none-any.whl (5.2 kB)
Collecting sphinxcontrib-htmlhelp>=2.0.0
Downloading sphinxcontrib_htmlhelp-2.0.0-py2.py3-none-any.whl (100 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100.5/100.5 kB 66.9 MB/s eta 0:00:00
Requirement already satisfied: requests>=2.5.0 in ./.env/lib/python3.10/site-packages (from Sphinx<5.0.0,>=4.4.0->leveelogic->-r /home/anvil/custom-requirements.txt (line 3)) (2.28.0)
Collecting sphinxcontrib-qthelp
Downloading sphinxcontrib_qthelp-1.0.3-py2.py3-none-any.whl (90 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 90.6/90.6 kB 49.9 MB/s eta 0:00:00
Collecting MarkupSafe>=2.0
Downloading MarkupSafe-2.1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (25 kB)
Collecting pillow>=6.2.0
Downloading Pillow-9.1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.1 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.1/3.1 MB 61.6 MB/s eta 0:00:00
Requirement already satisfied: pyparsing>=2.2.1 in ./.env/lib/python3.10/site-packages (from matplotlib>=3.4.2->pygef<0.8.0,>=0.7.2->leveelogic->-r /home/anvil/custom-requirements.txt (line 3)) (3.0.9)
Collecting cycler>=0.10
Downloading cycler-0.11.0-py3-none-any.whl (6.4 kB)
Collecting fonttools>=4.22.0
Downloading fonttools-4.33.3-py3-none-any.whl (930 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 930.9/930.9 kB 85.7 MB/s eta 0:00:00
Collecting kiwisolver>=1.0.1
Downloading kiwisolver-1.4.3-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (1.6 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.6/1.6 MB 81.8 MB/s eta 0:00:00
Requirement already satisfied: idna<4,>=2.5 in ./.env/lib/python3.10/site-packages (from requests>=2.5.0->Sphinx<5.0.0,>=4.4.0->leveelogic->-r /home/anvil/custom-requirements.txt (line 3)) (3.3)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in ./.env/lib/python3.10/site-packages (from requests>=2.5.0->Sphinx<5.0.0,>=4.4.0->leveelogic->-r /home/anvil/custom-requirements.txt (line 3)) (1.26.9)
Requirement already satisfied: charset-normalizer~=2.0.0 in ./.env/lib/python3.10/site-packages (from requests>=2.5.0->Sphinx<5.0.0,>=4.4.0->leveelogic->-r /home/anvil/custom-requirements.txt (line 3)) (2.0.12)
Installing collected packages: snowballstemmer, pytz, iniconfig, argparse, alabaster, zipp, typing-extensions, tomli, sphinxcontrib-serializinghtml, sphinxcontrib-qthelp, sphinxcontrib-jsmath, sphinxcontrib-htmlhelp, sphinxcontrib-devhelp, sphinxcontrib-applehelp, simplejson, Shapely, python-dateutil, pyproj, Pygments, py, pluggy, pillow, numpy, MarkupSafe, lxml, kiwisolver, imagesize, haversine, fonttools, docutils, cycler, babel, attrs, anvil-uplink, pytest, pydantic, polars, pandas, matplotlib, Jinja2, Sphinx, pygef, leveelogic
Successfully installed Jinja2-3.1.2 MarkupSafe-2.1.1 Pygments-2.12.0 Shapely-1.8.2 Sphinx-4.5.0 alabaster-0.7.12 anvil-uplink-0.3.42 argparse-1.4.0 attrs-21.4.0 babel-2.10.3 cycler-0.11.0 docutils-0.17.1 fonttools-4.33.3 haversine-2.5.1 imagesize-1.3.0 iniconfig-1.1.1 kiwisolver-1.4.3 leveelogic-0.1.9 lxml-4.8.0 matplotlib-3.5.2 numpy-1.23.0 pandas-1.4.3 pillow-9.1.1 pluggy-1.0.0 polars-0.13.51 py-1.11.0 pydantic-1.9.1 pygef-0.7.3 pyproj-3.3.1 pytest-7.1.2 python-dateutil-2.8.2 pytz-2022.1 simplejson-3.17.6 snowballstemmer-2.2.0 sphinxcontrib-applehelp-1.0.2 sphinxcontrib-devhelp-1.0.2 sphinxcontrib-htmlhelp-2.0.0 sphinxcontrib-jsmath-1.0.1 sphinxcontrib-qthelp-1.0.3 sphinxcontrib-serializinghtml-1.1.5 tomli-2.0.1 typing-extensions-4.2.0 zipp-3.8.0
Error: Image size limit exceeded

2 Likes

I wonder if it isn’t the size of the packages, but the limitation of the size of the python VM image that runs in the server module? (These are kind of the same thing, but the limit is in the size container, not the size of contents allowed to be installed at any one time)

It is in beta, so I guess we will find out!

I wonder if VM server instance size will become something that changes with pricing tiers :thinking:

I could be completely on the wrong track though so who knows.

1 Like

Ok, so I found a solution… I downsized my package which was not a bad idea but that still did not work. However, I worked on the minimal base packages and switching to standard solved the issue. I guess Anvil creates larger VMs for those environments?

Anyway, I am really happy because now I can port all anvil code on Digital Ocean to the Anvil VM!

Looking forward to implement this new feature and thanks Anvil devs!

01

4 Likes

I’m also getting the error: Image size limit exceeded.

I’ve tried with both the β€œStandard” and β€œData Science” base packages. The only additional packages I install are:
β€œsktime”
β€œpmdarima”
β€œXlsxWriter”

Previously it was working fine using β€œData Science” base and only β€œpmdarima” and β€œXlsxWriter”.

However, no matter which base I use, I can’t get it to build with β€œsktime”.