Report this

What is the reason for this report?

Unable to deploy django app on app platform due to scipy installation failure

Posted on May 10, 2021

I am trying to deploy a django app on app platform which has some data science functions that require scipy package. Build keeps failing with the error error: [Errno 38] Function not implemented Tried to fix the problem by following the solution given on SO by setting

sudo mount /dev/shm```

as BUILD COMMAND, but apparently this will only be executed after a successful build, which is pointless here. There is one issue on [github](https://github.com/scipy/scipy/issues/9481#issuecomment-510540522) that references a similar kind of error, but the solutions given there need shell access before build is triggered. At this point my only recourse seems to be to use a droplet but any help on this would be greatly appreciated.


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

This is probably the same issue as stated above. If anyone has any other way to get this working please help.

App Platform is designed to abstract away server-level configurations and is more focused on providing a simplified deployment experience. This means you don’t have direct access to the underlying server environment to make changes like mounting /dev/shm.

Here are a few potential steps you can take to address this issue:

  • Use a Different Environment: Consider using a different hosting environment where you have more control over the server, such as a Virtual Private Server (VPS) or a cloud-based virtual machine. This would allow you to set up and configure the environment as needed, including making changes to /dev/shm if necessary.

  • Pre-Built Images: Look for pre-built Docker images that include scipy and your other dependencies. You can then deploy your Django app using one of these images on a platform that supports Docker containers, like Heroku or a cloud-based Kubernetes cluster.

  • Alternative Libraries: If possible, consider using alternative libraries or approaches that don’t require scipy and don’t run into the /dev/shm issue.

Hope that this helps!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.