Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9143983
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T10:09:28+00:00 2026-06-17T10:09:28+00:00

I’m looking for a working uwsgi configuration for Django application on Heroku. Currently I

  • 0

I’m looking for a working uwsgi configuration for Django application on Heroku.

Currently I have

uWSGI==1.4.4

in requirements.txt and:

# this is in a single line:
web: uwsgi --http-socket=$PORT --home=$HOME 
           --module="myapp.wsgi:application"
           --master --vacuum --processes=1 --plugins=python 
           --virtualenv="/app/.heroku/python/"

in Procfile. But this fails with:

2013-01-15T11:48:17+00:00 app[web.1]: open("./python_plugin.so"): No such file or directory [core/utils.c line 4733]
2013-01-15T11:48:17+00:00 app[web.1]: machine: x86_64
2013-01-15T11:48:17+00:00 app[web.1]: !!! UNABLE to load uWSGI plugin: ./python_plugin.so: cannot open shared object file: No such file or directory !!!
2013-01-15T11:48:17+00:00 app[web.1]: nodename: 71650ed5-006c-4395-8be5-276408f42efb
2013-01-15T11:48:17+00:00 app[web.1]: os: Linux-2.6.32-350-ec2 #57-Ubuntu SMP Thu Nov 15 15:59:03 UTC 2012
2013-01-15T11:48:17+00:00 app[web.1]: *** Starting uWSGI 1.4.4 (64bit) on [Tue Jan 15 11:48:17 2013] ***
2013-01-15T11:48:17+00:00 app[web.1]:
lock engine: pthread robust mutexes
2013-01-15T11:48:17+00:00 app[web.1]: detected max file descriptor number: 10000
2013-01-15T11:48:17+00:00 app[web.1]: current working directory: /app
2013-01-15T11:48:17+00:00 app[web.1]: detected binary path: /app/.heroku/python/bin/uwsgi
2013-01-15T11:48:17+00:00 app[web.1]: your processes number limit is 256
2013-01-15T11:48:17+00:00 app[web.1]: detected number of CPU cores: 4
2013-01-15T11:48:17+00:00 app[web.1]: uwsgi socket 0 bound to UNIX address 25699 fd 3
2013-01-15T11:48:17+00:00 app[web.1]: clock source: unix
2013-01-15T11:48:17+00:00 app[web.1]: *** Operational MODE: single process ***
2013-01-15T11:48:17+00:00 app[web.1]: compiled with version: 4.4.3 on 15 January 2013 11:11:38
2013-01-15T11:48:17+00:00 app[web.1]: Python version: 2.7.2 (default, Oct 31 2011, 16:22:04)  [GCC 4.4.3]
2013-01-15T11:48:17+00:00 app[web.1]: Set PythonHome to /app/.heroku/python/
2013-01-15T11:48:17+00:00 app[web.1]: your memory page size is 4096 bytes
2013-01-15T11:48:17+00:00 app[web.1]: Python main interpreter initialized at 0x123dd80
2013-01-15T11:48:17+00:00 app[web.1]: *** Python threads support is disabled. You can enable it with --enable-threads ***
2013-01-15T11:48:17+00:00 app[web.1]: your server socket listen backlog is limited to 100 connections
2013-01-15T11:48:17+00:00 app[web.1]: mapped 144784 bytes (141 KB) for 1 cores
2013-01-15T11:48:17+00:00 app[web.1]: Traceback (most recent call last):
2013-01-15T11:48:17+00:00 app[web.1]:   File "./myapp/wsgi.py", line 23, in <module>
2013-01-15T11:48:17+00:00 app[web.1]:   File "/app/.heroku/python/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 8, in <module>
2013-01-15T11:48:17+00:00 app[web.1]:     from django.core.wsgi import get_wsgi_application
2013-01-15T11:48:17+00:00 app[web.1]:   File "/app/.heroku/python/lib/python2.7/site-packages/django/core/wsgi.py", line 1, in <module>
2013-01-15T11:48:17+00:00 app[web.1]:     from django import http
2013-01-15T11:48:17+00:00 app[web.1]:     from django.core.handlers.wsgi import WSGIHandler
2013-01-15T11:48:17+00:00 app[web.1]:   File "/app/.heroku/python/lib/python2.7/site-packages/django/http/__init__.py", line 116, in <module>
2013-01-15T11:48:17+00:00 app[web.1]:     from django.utils.crypto import constant_time_compare, salted_hmac
2013-01-15T11:48:17+00:00 app[web.1]:     from django.core import signing
2013-01-15T11:48:17+00:00 app[web.1]:   File "/app/.heroku/python/lib/python2.7/site-packages/django/utils/crypto.py", line 13, in <module>
2013-01-15T11:48:17+00:00 app[web.1]:   File "/app/.heroku/python/lib/python2.7/site-packages/django/core/signing.py", line 42, in <module>
2013-01-15T11:48:17+00:00 app[web.1]:     from os import urandom as _urandom
2013-01-15T11:48:17+00:00 app[web.1]: ImportError: cannot import name urandom
2013-01-15T11:48:17+00:00 app[web.1]:     import random
2013-01-15T11:48:17+00:00 app[web.1]:   File "/app/.heroku/python/lib/python2.7/random.py", line 47, in <module>
2013-01-15T11:48:17+00:00 app[web.1]: *** no app loaded. going in full dynamic mode ***
2013-01-15T11:48:17+00:00 app[web.1]: unable to load app 0 (mountpoint='') (callable not found or import error)
2013-01-15T11:48:17+00:00 app[web.1]: spawned uWSGI master process (pid: 2)
2013-01-15T11:48:17+00:00 app[web.1]: *** uWSGI is running in multiple interpreter mode ***
2013-01-15T11:48:17+00:00 app[web.1]: spawned uWSGI worker 1 (pid: 3, cores: 1)
2013-01-15T11:49:17+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
2013-01-15T11:49:17+00:00 heroku[web.1]: Stopping process with SIGKILL
2013-01-15T11:49:18+00:00 heroku[web.1]: Process exited with status 137
2013-01-15T11:49:18+00:00 heroku[web.1]: State changed from starting to crashed

I guess the second error (ImportError: cannot import name urandom) is likely a result of the first error (open("./python_plugin.so"): No such file or directory)

The application works fine with default Django devel HTTP server.

Any ideas how to fix this? Pointers to working configs are very welcome.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T10:09:29+00:00Added an answer on June 17, 2026 at 10:09 am

    when you install uwsgi with pip the python (and the gevent) plugin is built in by default, so you can remove the –plugin option. –vacuum is needed only for unix sockets (you use tcp sockets on heroku). –home and –virtualenv are synonims (i suggest you to use –virtualenv as it is more meaningful). Finally regarding the urandom problem, check here: https://bugs.launchpad.net/ubuntu/+source/python-defaults/+bug/989856

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I have a jquery bug and I've been looking for hours now, I can't
this is what i have right now Drawing an RSS feed into the php,
I have this code to decode numeric html entities to the UTF8 equivalent character.
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
This could be a duplicate question, but I have no idea what search terms
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.