django wsgi error no module found named site name










0















When I run the command uwsgi --http :8081 --gevent 100 --module websocket --gevent-monkey-patch --master -H env/ I get error No python application found and when I specify the path to the wsgi.py file, uwsgi --http :8081 --gevent 100 --module websocket --gevent-monkey-patch --master -H env/ --wsgi-file /Users/ishansrivastava/Desktop/ChatApp/Chatire/chatire/wsgi.py`, I get



ModuleNotFoundError: No module named 'chatire'
DAMN ! worker 1 (pid: 77847) died :( trying respawn ...
Respawned uWSGI worker 1 (new pid: 77851)
*** running gevent loop engine [addr:0x104312c00] ***
Traceback (most recent call last):
File "/Users/ishansrivastava/Desktop/ChatApp/env/lib/python3.6/site-packages/gevent/monkey.py", line 611, in patch_all
patch_thread(Event=Event, _warnings=_warnings)
File "/Users/ishansrivastava/Desktop/ChatApp/env/lib/python3.6/site-packages/gevent/monkey.py", line 348, in patch_thread
_patch_existing_locks(threading_mod)
File "/Users/ishansrivastava/Desktop/ChatApp/env/lib/python3.6/site-packages/gevent/monkey.py", line 263, in _patch_existing_locks
if isinstance(o, rlock_type):
File "/Users/ishansrivastava/Desktop/ChatApp/env/lib/python3.6/site-packages/django/utils/functional.py", line 215, in inner
self._setup()
File "/Users/ishansrivastava/Desktop/ChatApp/env/lib/python3.6/site-packages/django/conf/__init__.py", line 43, in _setup
self._wrapped = Settings(settings_module)
File "/Users/ishansrivastava/Desktop/ChatApp/env/lib/python3.6/site-packages/django/conf/__init__.py", line 106, in __init__
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/Users/ishansrivastava/Desktop/ChatApp/env/lib/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 978, in _gcd_import
File "<frozen importlib._bootstrap>", line 961, in _find_and_load
File "<frozen importlib._bootstrap>", line 936, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 205, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 978, in _gcd_import
File "<frozen importlib._bootstrap>", line 961, in _find_and_load
File "<frozen importlib._bootstrap>", line 948, in _find_and_load_unlocked


When I cd into the directory chatire and run the same command again I get



OSError: unable to complete websocket handshake
[pid: 79930|app: 0|req: 1/1] 127.0.0.1 () 46 vars in 789 bytes [Wed Nov 14 16:13:37 2018] GET /475ae83b85db4d0 => generated 0 bytes in 67 msecs (HTTP/1.1 500) 0 headers in 0 bytes (1 switches on core 99)
you need to build uWSGI with SSL support to use the websocket handshake api function !!!
Traceback (most recent call last):
File "./websocket.py", line 30, in application
env.get('HTTP_ORIGIN', '')
OSError: unable to complete websocket handshake
[pid: 79930|app: 0|req: 2/2] 127.0.0.1 () 46 vars in 789 bytes [Wed Nov 14 16:13:46 2018] GET /475ae83b85db4d0 => generated 0 bytes in 19 msecs (HTTP/1.1 500) 0 headers in 0 bytes (1 switches on core 99)
you need to build uWSGI with SSL support to use the websocket handshake api function !!!
Traceback (most recent call last):
File "./websocket.py", line 30, in application
env.get('HTTP_ORIGIN', '')
OSError: unable to complete websocket handshake
[pid: 79930|app: 0|req: 3/3] 127.0.0.1 () 46 vars in 789 bytes [Wed Nov 14 16:13:54 2018] GET /475ae83b85db4d0 => generated 0 bytes in 25 msecs (HTTP/1.1 500) 0 headers in 0 bytes (1 switches on core 99)
^CSIGINT/SIGQUIT received...killing workers...
Brutally killing worker 1 (pid: 79930)...
Wed Nov 14 16:14:00 2018 - stopping gevent signals watchers for worker 1 (pid: 79930)...
gateway "uWSGI http 1" has been buried (pid: 79932)
Wed Nov 14 16:14:00 2018 - stopping gevent sockets watchers for worker 1 (pid: 79930)...
Wed Nov 14 16:14:00 2018 - main gevent watchers stopped for worker 1 (pid: 79930)...









share|improve this question


























    0















    When I run the command uwsgi --http :8081 --gevent 100 --module websocket --gevent-monkey-patch --master -H env/ I get error No python application found and when I specify the path to the wsgi.py file, uwsgi --http :8081 --gevent 100 --module websocket --gevent-monkey-patch --master -H env/ --wsgi-file /Users/ishansrivastava/Desktop/ChatApp/Chatire/chatire/wsgi.py`, I get



    ModuleNotFoundError: No module named 'chatire'
    DAMN ! worker 1 (pid: 77847) died :( trying respawn ...
    Respawned uWSGI worker 1 (new pid: 77851)
    *** running gevent loop engine [addr:0x104312c00] ***
    Traceback (most recent call last):
    File "/Users/ishansrivastava/Desktop/ChatApp/env/lib/python3.6/site-packages/gevent/monkey.py", line 611, in patch_all
    patch_thread(Event=Event, _warnings=_warnings)
    File "/Users/ishansrivastava/Desktop/ChatApp/env/lib/python3.6/site-packages/gevent/monkey.py", line 348, in patch_thread
    _patch_existing_locks(threading_mod)
    File "/Users/ishansrivastava/Desktop/ChatApp/env/lib/python3.6/site-packages/gevent/monkey.py", line 263, in _patch_existing_locks
    if isinstance(o, rlock_type):
    File "/Users/ishansrivastava/Desktop/ChatApp/env/lib/python3.6/site-packages/django/utils/functional.py", line 215, in inner
    self._setup()
    File "/Users/ishansrivastava/Desktop/ChatApp/env/lib/python3.6/site-packages/django/conf/__init__.py", line 43, in _setup
    self._wrapped = Settings(settings_module)
    File "/Users/ishansrivastava/Desktop/ChatApp/env/lib/python3.6/site-packages/django/conf/__init__.py", line 106, in __init__
    mod = importlib.import_module(self.SETTINGS_MODULE)
    File "/Users/ishansrivastava/Desktop/ChatApp/env/lib/python3.6/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
    File "<frozen importlib._bootstrap>", line 978, in _gcd_import
    File "<frozen importlib._bootstrap>", line 961, in _find_and_load
    File "<frozen importlib._bootstrap>", line 936, in _find_and_load_unlocked
    File "<frozen importlib._bootstrap>", line 205, in _call_with_frames_removed
    File "<frozen importlib._bootstrap>", line 978, in _gcd_import
    File "<frozen importlib._bootstrap>", line 961, in _find_and_load
    File "<frozen importlib._bootstrap>", line 948, in _find_and_load_unlocked


    When I cd into the directory chatire and run the same command again I get



    OSError: unable to complete websocket handshake
    [pid: 79930|app: 0|req: 1/1] 127.0.0.1 () 46 vars in 789 bytes [Wed Nov 14 16:13:37 2018] GET /475ae83b85db4d0 => generated 0 bytes in 67 msecs (HTTP/1.1 500) 0 headers in 0 bytes (1 switches on core 99)
    you need to build uWSGI with SSL support to use the websocket handshake api function !!!
    Traceback (most recent call last):
    File "./websocket.py", line 30, in application
    env.get('HTTP_ORIGIN', '')
    OSError: unable to complete websocket handshake
    [pid: 79930|app: 0|req: 2/2] 127.0.0.1 () 46 vars in 789 bytes [Wed Nov 14 16:13:46 2018] GET /475ae83b85db4d0 => generated 0 bytes in 19 msecs (HTTP/1.1 500) 0 headers in 0 bytes (1 switches on core 99)
    you need to build uWSGI with SSL support to use the websocket handshake api function !!!
    Traceback (most recent call last):
    File "./websocket.py", line 30, in application
    env.get('HTTP_ORIGIN', '')
    OSError: unable to complete websocket handshake
    [pid: 79930|app: 0|req: 3/3] 127.0.0.1 () 46 vars in 789 bytes [Wed Nov 14 16:13:54 2018] GET /475ae83b85db4d0 => generated 0 bytes in 25 msecs (HTTP/1.1 500) 0 headers in 0 bytes (1 switches on core 99)
    ^CSIGINT/SIGQUIT received...killing workers...
    Brutally killing worker 1 (pid: 79930)...
    Wed Nov 14 16:14:00 2018 - stopping gevent signals watchers for worker 1 (pid: 79930)...
    gateway "uWSGI http 1" has been buried (pid: 79932)
    Wed Nov 14 16:14:00 2018 - stopping gevent sockets watchers for worker 1 (pid: 79930)...
    Wed Nov 14 16:14:00 2018 - main gevent watchers stopped for worker 1 (pid: 79930)...









    share|improve this question
























      0












      0








      0








      When I run the command uwsgi --http :8081 --gevent 100 --module websocket --gevent-monkey-patch --master -H env/ I get error No python application found and when I specify the path to the wsgi.py file, uwsgi --http :8081 --gevent 100 --module websocket --gevent-monkey-patch --master -H env/ --wsgi-file /Users/ishansrivastava/Desktop/ChatApp/Chatire/chatire/wsgi.py`, I get



      ModuleNotFoundError: No module named 'chatire'
      DAMN ! worker 1 (pid: 77847) died :( trying respawn ...
      Respawned uWSGI worker 1 (new pid: 77851)
      *** running gevent loop engine [addr:0x104312c00] ***
      Traceback (most recent call last):
      File "/Users/ishansrivastava/Desktop/ChatApp/env/lib/python3.6/site-packages/gevent/monkey.py", line 611, in patch_all
      patch_thread(Event=Event, _warnings=_warnings)
      File "/Users/ishansrivastava/Desktop/ChatApp/env/lib/python3.6/site-packages/gevent/monkey.py", line 348, in patch_thread
      _patch_existing_locks(threading_mod)
      File "/Users/ishansrivastava/Desktop/ChatApp/env/lib/python3.6/site-packages/gevent/monkey.py", line 263, in _patch_existing_locks
      if isinstance(o, rlock_type):
      File "/Users/ishansrivastava/Desktop/ChatApp/env/lib/python3.6/site-packages/django/utils/functional.py", line 215, in inner
      self._setup()
      File "/Users/ishansrivastava/Desktop/ChatApp/env/lib/python3.6/site-packages/django/conf/__init__.py", line 43, in _setup
      self._wrapped = Settings(settings_module)
      File "/Users/ishansrivastava/Desktop/ChatApp/env/lib/python3.6/site-packages/django/conf/__init__.py", line 106, in __init__
      mod = importlib.import_module(self.SETTINGS_MODULE)
      File "/Users/ishansrivastava/Desktop/ChatApp/env/lib/python3.6/importlib/__init__.py", line 126, in import_module
      return _bootstrap._gcd_import(name[level:], package, level)
      File "<frozen importlib._bootstrap>", line 978, in _gcd_import
      File "<frozen importlib._bootstrap>", line 961, in _find_and_load
      File "<frozen importlib._bootstrap>", line 936, in _find_and_load_unlocked
      File "<frozen importlib._bootstrap>", line 205, in _call_with_frames_removed
      File "<frozen importlib._bootstrap>", line 978, in _gcd_import
      File "<frozen importlib._bootstrap>", line 961, in _find_and_load
      File "<frozen importlib._bootstrap>", line 948, in _find_and_load_unlocked


      When I cd into the directory chatire and run the same command again I get



      OSError: unable to complete websocket handshake
      [pid: 79930|app: 0|req: 1/1] 127.0.0.1 () 46 vars in 789 bytes [Wed Nov 14 16:13:37 2018] GET /475ae83b85db4d0 => generated 0 bytes in 67 msecs (HTTP/1.1 500) 0 headers in 0 bytes (1 switches on core 99)
      you need to build uWSGI with SSL support to use the websocket handshake api function !!!
      Traceback (most recent call last):
      File "./websocket.py", line 30, in application
      env.get('HTTP_ORIGIN', '')
      OSError: unable to complete websocket handshake
      [pid: 79930|app: 0|req: 2/2] 127.0.0.1 () 46 vars in 789 bytes [Wed Nov 14 16:13:46 2018] GET /475ae83b85db4d0 => generated 0 bytes in 19 msecs (HTTP/1.1 500) 0 headers in 0 bytes (1 switches on core 99)
      you need to build uWSGI with SSL support to use the websocket handshake api function !!!
      Traceback (most recent call last):
      File "./websocket.py", line 30, in application
      env.get('HTTP_ORIGIN', '')
      OSError: unable to complete websocket handshake
      [pid: 79930|app: 0|req: 3/3] 127.0.0.1 () 46 vars in 789 bytes [Wed Nov 14 16:13:54 2018] GET /475ae83b85db4d0 => generated 0 bytes in 25 msecs (HTTP/1.1 500) 0 headers in 0 bytes (1 switches on core 99)
      ^CSIGINT/SIGQUIT received...killing workers...
      Brutally killing worker 1 (pid: 79930)...
      Wed Nov 14 16:14:00 2018 - stopping gevent signals watchers for worker 1 (pid: 79930)...
      gateway "uWSGI http 1" has been buried (pid: 79932)
      Wed Nov 14 16:14:00 2018 - stopping gevent sockets watchers for worker 1 (pid: 79930)...
      Wed Nov 14 16:14:00 2018 - main gevent watchers stopped for worker 1 (pid: 79930)...









      share|improve this question














      When I run the command uwsgi --http :8081 --gevent 100 --module websocket --gevent-monkey-patch --master -H env/ I get error No python application found and when I specify the path to the wsgi.py file, uwsgi --http :8081 --gevent 100 --module websocket --gevent-monkey-patch --master -H env/ --wsgi-file /Users/ishansrivastava/Desktop/ChatApp/Chatire/chatire/wsgi.py`, I get



      ModuleNotFoundError: No module named 'chatire'
      DAMN ! worker 1 (pid: 77847) died :( trying respawn ...
      Respawned uWSGI worker 1 (new pid: 77851)
      *** running gevent loop engine [addr:0x104312c00] ***
      Traceback (most recent call last):
      File "/Users/ishansrivastava/Desktop/ChatApp/env/lib/python3.6/site-packages/gevent/monkey.py", line 611, in patch_all
      patch_thread(Event=Event, _warnings=_warnings)
      File "/Users/ishansrivastava/Desktop/ChatApp/env/lib/python3.6/site-packages/gevent/monkey.py", line 348, in patch_thread
      _patch_existing_locks(threading_mod)
      File "/Users/ishansrivastava/Desktop/ChatApp/env/lib/python3.6/site-packages/gevent/monkey.py", line 263, in _patch_existing_locks
      if isinstance(o, rlock_type):
      File "/Users/ishansrivastava/Desktop/ChatApp/env/lib/python3.6/site-packages/django/utils/functional.py", line 215, in inner
      self._setup()
      File "/Users/ishansrivastava/Desktop/ChatApp/env/lib/python3.6/site-packages/django/conf/__init__.py", line 43, in _setup
      self._wrapped = Settings(settings_module)
      File "/Users/ishansrivastava/Desktop/ChatApp/env/lib/python3.6/site-packages/django/conf/__init__.py", line 106, in __init__
      mod = importlib.import_module(self.SETTINGS_MODULE)
      File "/Users/ishansrivastava/Desktop/ChatApp/env/lib/python3.6/importlib/__init__.py", line 126, in import_module
      return _bootstrap._gcd_import(name[level:], package, level)
      File "<frozen importlib._bootstrap>", line 978, in _gcd_import
      File "<frozen importlib._bootstrap>", line 961, in _find_and_load
      File "<frozen importlib._bootstrap>", line 936, in _find_and_load_unlocked
      File "<frozen importlib._bootstrap>", line 205, in _call_with_frames_removed
      File "<frozen importlib._bootstrap>", line 978, in _gcd_import
      File "<frozen importlib._bootstrap>", line 961, in _find_and_load
      File "<frozen importlib._bootstrap>", line 948, in _find_and_load_unlocked


      When I cd into the directory chatire and run the same command again I get



      OSError: unable to complete websocket handshake
      [pid: 79930|app: 0|req: 1/1] 127.0.0.1 () 46 vars in 789 bytes [Wed Nov 14 16:13:37 2018] GET /475ae83b85db4d0 => generated 0 bytes in 67 msecs (HTTP/1.1 500) 0 headers in 0 bytes (1 switches on core 99)
      you need to build uWSGI with SSL support to use the websocket handshake api function !!!
      Traceback (most recent call last):
      File "./websocket.py", line 30, in application
      env.get('HTTP_ORIGIN', '')
      OSError: unable to complete websocket handshake
      [pid: 79930|app: 0|req: 2/2] 127.0.0.1 () 46 vars in 789 bytes [Wed Nov 14 16:13:46 2018] GET /475ae83b85db4d0 => generated 0 bytes in 19 msecs (HTTP/1.1 500) 0 headers in 0 bytes (1 switches on core 99)
      you need to build uWSGI with SSL support to use the websocket handshake api function !!!
      Traceback (most recent call last):
      File "./websocket.py", line 30, in application
      env.get('HTTP_ORIGIN', '')
      OSError: unable to complete websocket handshake
      [pid: 79930|app: 0|req: 3/3] 127.0.0.1 () 46 vars in 789 bytes [Wed Nov 14 16:13:54 2018] GET /475ae83b85db4d0 => generated 0 bytes in 25 msecs (HTTP/1.1 500) 0 headers in 0 bytes (1 switches on core 99)
      ^CSIGINT/SIGQUIT received...killing workers...
      Brutally killing worker 1 (pid: 79930)...
      Wed Nov 14 16:14:00 2018 - stopping gevent signals watchers for worker 1 (pid: 79930)...
      gateway "uWSGI http 1" has been buried (pid: 79932)
      Wed Nov 14 16:14:00 2018 - stopping gevent sockets watchers for worker 1 (pid: 79930)...
      Wed Nov 14 16:14:00 2018 - main gevent watchers stopped for worker 1 (pid: 79930)...






      python django ssl websocket wsgi






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 14 '18 at 10:49









      J. DoeJ. Doe

      1




      1






















          1 Answer
          1






          active

          oldest

          votes


















          0














          try this command in root folder:



          uwsgi --http :8081 --gevent 100 --module websocket --gevent-monkey-patch --master


          In the root folder must have a module called websocket.py.



          If you are using a virtualenv make sure it is activated and all dependences installed.






          share|improve this answer






















            Your Answer






            StackExchange.ifUsing("editor", function ()
            StackExchange.using("externalEditor", function ()
            StackExchange.using("snippets", function ()
            StackExchange.snippets.init();
            );
            );
            , "code-snippets");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "1"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53298431%2fdjango-wsgi-error-no-module-found-named-site-name%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            try this command in root folder:



            uwsgi --http :8081 --gevent 100 --module websocket --gevent-monkey-patch --master


            In the root folder must have a module called websocket.py.



            If you are using a virtualenv make sure it is activated and all dependences installed.






            share|improve this answer



























              0














              try this command in root folder:



              uwsgi --http :8081 --gevent 100 --module websocket --gevent-monkey-patch --master


              In the root folder must have a module called websocket.py.



              If you are using a virtualenv make sure it is activated and all dependences installed.






              share|improve this answer

























                0












                0








                0







                try this command in root folder:



                uwsgi --http :8081 --gevent 100 --module websocket --gevent-monkey-patch --master


                In the root folder must have a module called websocket.py.



                If you are using a virtualenv make sure it is activated and all dependences installed.






                share|improve this answer













                try this command in root folder:



                uwsgi --http :8081 --gevent 100 --module websocket --gevent-monkey-patch --master


                In the root folder must have a module called websocket.py.



                If you are using a virtualenv make sure it is activated and all dependences installed.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 14 '18 at 17:19









                silvio leitesilvio leite

                593




                593





























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53298431%2fdjango-wsgi-error-no-module-found-named-site-name%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Kleinkühnau

                    Makov (Slowakei)

                    Deutsches Schauspielhaus