Forums

Disk quota exceeded error messages when trying to upload app

I get this error when am uploading my app, 'ERROR: Could not install packages due to an OSError: [Errno 122] Disk quota exceeded'

I tried deleting tmp folder but gives me 'cannot remove '/tmp/': Permission denied'

when i check my dashboard i get CPu usage of 42% and file storage of 67%

please what can be the problem and how can you help me

thank you

You can't delete the /tmp folder, but you can delete its contents -- for example:

rm -rf /tmp/*

However, it looks like you do have a reasonable amount of free space, so I suspect that the problem is that the package is just too large to install into a free account. Which package are you installing?

Thanks for the response.

i have packages in the requirements.txt, i dont know which particular one is causing the problem

below is an output from the terminal

"Installing collected packages: pytz, sqlparse, pyjwt, numpy, backports.zoneinfo, asgiref, opencv-python, Django, djangorestframework, django-filter, django-cors-headers, djangorestframework-simplejwt ERROR: Could not install packages due to an OSError: [Errno 122] Disk quota exceeded "

thank you

Install them one by one, and see.

it is not even activating a virtual environment for me once it throws that error..and i dont know if installing it one by one globally is ok.....

Update...... So i installed one by one and discovered open-cv is the culprit..

Perhaps if you installed opencv-contrib-python-headless it would be smaller and would fit into your quota? It's a stripped-down version that only has the stuff that's required for servers without their own display.

Thank you so much...i installed it..and it works fine...thank alot for your support...

a quick question...can i buy a domain on pythonanywhere.

thank you

You can't buy it here, but you can use it on for your web app. See https://help.pythonanywhere.com/pages/CustomDomains

Thanks alot...

The problem is solved..

how can i close this ticket?

You don't need to. Thanks for letting us know that the problem is solved.