<div dir="ltr"><div>nothing...</div><div>
<pre>2020-02-04 09:12:32,178: ***************************************************
2020-02-04 09:12:32,923: Error running WSGI application
2020-02-04 09:12:32,923: ModuleNotFoundError: No module named 'wsgi'
2020-02-04 09:12:32,924:   File "/var/www/rp20_pythonanywhere_com_wsgi.py", line 4, in <module>
2020-02-04 09:12:32,924:     from wsgi import application  # noqa
2020-02-04 09:12:32,924: ***************************************************
2020-02-04 09:12:32,924: If you're seeing an import error and don't know why,
2020-02-04 09:12:32,924: we have a dedicated help page to help you debug: 
2020-02-04 09:12:32,924: <a href="https://help.pythonanywhere.com/pages/DebuggingImportError/%0D2020-02-04" target="_blank">https://help.pythonanywhere.com/pages/DebuggingImportError/
2020-02-04</a> 09:12:32,924: ***************************************************<br><br></pre><pre>I've created a brand new /var/www/rp20_pythonanywhere_com_wsgi.py that is just 4 lines, this:<br><br># Copy the contents of this file to the pythonanywhere<br># WSGI configuration file: Â /var/www/<account-name>_pythonanywhere_com_wsgi.py<br><br>from wsgi import application Â # noqa<br></pre><pre>I've reloaded it, but it does not work<br><br></pre><pre>Renato<br></pre><pre><br></pre>

</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno lun 3 feb 2020 alle ore 20:34 Roger Haase <<a href="mailto:crosseyedpenguin@yahoo.com" target="_blank">crosseyedpenguin@yahoo.com</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div style="font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:13px"><div></div>
        <div dir="ltr"><div><div dir="ltr"><div><div>On the "Manual Configuration" popup, click "Next" near lower right. That</div><div>should bring you here:</div><div><br></div><div>  Â  <a href="https://www.pythonanywhere.com/user/rp20/webapps/#tab_id_rp20_pythonanywhere_com" target="_blank">https://www.pythonanywhere.com/user/rp20/webapps/#tab_id_rp20_pythonanywhere_com</a></div></div> </div><div>Scroll down to about the middle of the page to the section labeled "Code"</div><div dir="ltr">and edit the section so it looks similar to this (MOINMOIN2 replaced by rp20)</div><div><br></div><div>  Â  Code:</div><div><br></div><div>  Â  What your site is running.</div><div>  Â  Source code:  Â  Â  Â  Â  Â  Â  Â  Â  /home/rp20/moin/src/moin</div><div><br></div><div>  Â  Working directory:  Â  Â  Â  Â  Â  /home/rp20/moin</div><div><br></div><div>  Â  WSGI configuration file:  Â  Â  /var/www/rp20_pythonanywhere_com_wsgi.py</div><div><br></div><div>  Â  Python version:  Â  Â  Â  Â  Â  Â  Â 3.7</div><div><br></div><div><br></div><div>  Â  Virtualenv:</div><div><br></div><div>  Â  -- snip 3 lines --</div><div><br></div><div>  Â  /home/rp20/moin-venv-python3.7/</div></div><div><br></div><div>----------</div><br></div><div dir="ltr">This file: <span><span style="color:rgb(0,0,0);font-family:Helvetica Neue,Helvetica,Arial,sans-serif">/var/www/rp20_pythonanywhere_com_wsgi.py should contain only a few lines"</span></span></div><div dir="ltr"><span><span style="color:rgb(0,0,0);font-family:Helvetica Neue,Helvetica,Arial,sans-serif"><br></span></span></div><div dir="ltr"><span><span style="color:rgb(0,0,0);font-family:Helvetica Neue,Helvetica,Arial,sans-serif">"""</span></span></div><div dir="ltr"><span><div><div># Copy the contents of this file to the pythonanywhere</div><div># WSGI configuration file:  /var/www/<account-name>_pythonanywhere_com_wsgi.py</div><div><br></div><div>from wsgi import application  # noqa</div></div></span></div><div dir="ltr"><span><span style="color:rgb(0,0,0);font-family:Helvetica Neue,Helvetica,Arial,sans-serif">"""</span></span></div><div dir="ltr"><span><span style="color:rgb(0,0,0);font-family:Helvetica Neue,Helvetica,Arial,sans-serif"><br></span></span></div><div dir="ltr"><span><span style="color:rgb(0,0,0);font-family:Helvetica Neue,Helvetica,Arial,sans-serif">You should have replaced it per the instructions:</span></span></div><div dir="ltr"><span><span style="color:rgb(0,0,0);font-family:Helvetica Neue,Helvetica,Arial,sans-serif">"</span></span></div><div dir="ltr"><span><div><div>Next, click the WSGI configuration file link:</div><div>"/var/www/MOINMOIN2_pythonanywhere_com_wsgi.cpy"</div><div><br></div><div>You will see the file contents. Keep the browser window open. Switch to your</div><div>favorite file editor that has the file named _pythonanywhere_com_wsgi.py</div><div>loaded. Copy and paste the contents of that file into the browser window</div><div>replacing everything. Click the Save button near the upper right.</div></div><div>"</div></span></div>
        
        </div><div id="gmail-m_3001308657043929531gmail-m_5205679695164906825yahoo_quoted_1113111519">
            <div style="font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:13px;color:rgb(38,40,42)">
                
                <div>
                    On Monday, February 3, 2020, 09:57:19 AM MST, Renato Pontefice <<a href="mailto:renato.pontefice@gmail.com" target="_blank">renato.pontefice@gmail.com</a>> wrote:
                </div>
                <div><br></div>
                <div><br></div>
                <div><div id="gmail-m_3001308657043929531gmail-m_5205679695164906825yiv8285860021"><div>
    <p><br clear="none">
    </p>
    <div id="gmail-m_3001308657043929531gmail-m_5205679695164906825yiv8285860021yqt16064"><div><br clear="none">
      <br clear="none">
      -------- Messaggio Inoltrato --------
      <table cellspacing="0" cellpadding="0" border="0"><tbody><tr><th colspan="1" rowspan="1" valign="BASELINE" nowrap align="RIGHT">Oggetto:
            </th><td colspan="1" rowspan="1">Re: [moin-user] MoinMoin2 on pythonanywhere</td></tr><tr><th colspan="1" rowspan="1" valign="BASELINE" nowrap align="RIGHT">Data: </th><td colspan="1" rowspan="1">Mon, 3 Feb 2020 17:55:51 +0100</td></tr><tr><th colspan="1" rowspan="1" valign="BASELINE" nowrap align="RIGHT">Mittente:
            </th><td colspan="1" rowspan="1">Renato Pontefice <a rel="nofollow" shape="rect" href="mailto:renato.pontefice@gmail.com" target="_blank"><renato.pontefice@gmail.com></a></td></tr><tr><th colspan="1" rowspan="1" valign="BASELINE" nowrap align="RIGHT">A: </th><td colspan="1" rowspan="1">Roger Haase <a rel="nofollow" shape="rect" href="mailto:crosseyedpenguin@yahoo.com" target="_blank"><crosseyedpenguin@yahoo.com></a></td></tr></tbody></table>
      <br clear="none">
      <br clear="none">
      </div></div></div><div id="gmail-m_3001308657043929531gmail-m_5205679695164906825yiv8285860021yqt17128"><div><p>Hi,</p>
      <p>my virtualenv name is:/home/MOINMOIN2/moin-venv-python3/ python
        version is 3.7</p>
      <p>this is my rp20_pythonanywhere_com_wsgi.py:</p>
      <blockquote>
        <pre>from MoinMoin.app import create_app
application = create_app('/home/rp20/moin/wikiconfig.py')

# This file contains the WSGI configuration required to serve up your
# web application at <a rel="nofollow" shape="rect" href="http://rp20.pythonanywhere.com/" target="_blank">http://rp20.pythonanywhere.com/</a>
# It works by setting the variable 'application' to a WSGI handler of some
# description.
#

# +++++++++++ GENERAL DEBUGGING TIPS +++++++++++
# getting imports and sys.path right can be fiddly!
# We've tried to collect some general tips here:
# <a rel="nofollow" shape="rect" href="https://help.pythonanywhere.com/pages/DebuggingImportError" target="_blank">https://help.pythonanywhere.com/pages/DebuggingImportError</a>


# +++++++++++ HELLO WORLD +++++++++++
# A little pure-wsgi hello world we've cooked up, just
# to prove everything works.  You should delete this
# code to get your own working.


HELLO_WORLD = """<html>
<head>
    <title>PythonAnywhere hosted web application</title>
</head>
<body>
<h1>Hello, World!</h1>
<p>
    This is the default welcome page for a
    <a href=<a rel="nofollow" shape="rect" href="https://www.pythonanywhere.com/" target="_blank">"https://www.pythonanywhere.com/"</a>>PythonAnywhere</a>
    hosted web application.
</p>
<p>
    Find out more about how to configure your own web application
    by visiting the <a href=<a rel="nofollow" shape="rect" href="https://www.pythonanywhere.com/web_app_setup/" target="_blank">"https://www.pythonanywhere.com/web_app_setup/"</a>>web app setup</a> page
</p>
</body>
</html>"""


def application(environ, start_response):
    if environ.get('PATH_INFO') == '/':
        status = '200 OK'
        content = HELLO_WORLD
    else:
        status = '404 NOT FOUND'
        content = 'Page not found.'
    response_headers = [('Content-Type', 'text/html'), ('Content-Length', str(len(content)))]
    start_response(status, response_headers)
    yield content.encode('utf8')


# Below are templates for Django and Flask.  You should update the file
# appropriately for the web framework you're using, and then
# click the 'Reload /<a href="http://yourdomain.com/" target="_blank">yourdomain.com/</a>' button on the 'Web' tab to make your site
# live.

# +++++++++++ VIRTUALENV +++++++++++
# If you want to use a virtualenv, set its path on the web app setup tab.
# Then come back here and import your application object as per the
# instructions below


# +++++++++++ CUSTOM WSGI +++++++++++
# If you have a WSGI file that you want to serve using PythonAnywhere, perhaps
# in your home directory under version control, then use something like this:
#
#import sys
#
#path = '/home/rp20/path/to/my/app
#if path not in sys.path:
#    sys.path.append(path)
#
#from my_wsgi_file import application  # noqa


# +++++++++++ DJANGO +++++++++++
# To use your own django app use code like this:
#import os
#import sys
#
## assuming your django settings file is at '/home/rp20/mysite/mysite/settings.py'
## and your manage.py is is at '/home/rp20/mysite/manage.py'
#path = '/home/rp20/mysite'
#if path not in sys.path:
#    sys.path.append(path)
#
#os.environ['DJANGO_SETTINGS_MODULE'] = 'mysite.settings'
#
## then:
#from django.core.wsgi import get_wsgi_application
#application = get_wsgi_application()



# +++++++++++ FLASK +++++++++++
# Flask works like any other WSGI-compatible framework, we just need
# to import the application.  Often Flask apps are called "app" so we
# may need to rename it during the import:
#
#
#import sys
#
## The "/home/rp20" below specifies your home
## directory -- the rest should be the directory you uploaded your Flask
## code to underneath the home directory.  So if you just ran
## "git clone <a rel="nofollow" shape="rect" href="mailto:git@github.com/myusername/myproject.git" target="_blank">git@github.com/myusername/myproject.git</a>"
## ...or uploaded files to the directory "myproject", then you should
## specify "/home/rp20/myproject"
#path = '/home/rp20/path/to/flask_app_directory'
#if path not in sys.path:
#    sys.path.append(path)
#
#from main_flask_app_file import app as application  # noqa
#
# NB -- many Flask guides suggest you use a file called run.py; that's
# not necessary on PythonAnywhere.  And you should make sure your code
# does *not* invoke the flask development server with app.run(), as it
# will prevent your wsgi file from working.
</pre>
      </blockquote>
      <div>Il 03/02/20 15:49, Roger Haase ha
        scritto:<br clear="none">
      </div>
      <blockquote type="cite">
        </blockquote></div><div><div style="font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:13px">
          <div dir="ltr">A guess is you failed to
            follow the instructions. A second guess is the instructions
            are wrong. A third guess is you loaded moin 1.9;
            instructions are only for moinmoin2.</div>
          <div dir="ltr"><br clear="none">
          </div>
          <div dir="ltr"><br clear="none">
          </div>
          <div dir="ltr">Go to (replacing MOINMOIN2
            with your account name):</div>
          <div dir="ltr"><br clear="none">
            <div>
              <div>  Â 
                <a rel="nofollow" shape="rect" href="https://www.pythonanywhere.com/user/MOINMOIN2/webapps/#tab_id_MOINMOIN2_pythonanywhere_com" target="_blank">https://www.pythonanywhere.com/user/MOINMOIN2/webapps/#tab_id_MOINMOIN2_pythonanywhere_com</a></div>
              <div><br clear="none">
              </div>
              <div>Scroll down to about the middle of the page to the
                section labeled "Code"</div>
              <div dir="ltr">and copy and paste the
                contents of the code section to your reply email.</div>
              <div dir="ltr"><br clear="none">
              </div>
              <div dir="ltr">----------------</div>
              <div><br clear="none">
              </div>
              <div>  Â  Code:</div>
              <div><br clear="none">
              </div>
              <div>  Â  What your site is running.</div>
              <div>  Â  Source code:  Â  Â  Â  Â  Â  Â  Â  Â 
                /home/MOINMOIN2/moin/src/moin</div>
              <div><br clear="none">
              </div>
              <div>  Â  Working directory:  Â  Â  Â  Â  Â 
                /home/MOINMOIN2/moin</div>
              <div><br clear="none">
              </div>
              <div>  Â  WSGI configuration file:  Â  Â 
                /var/www/MOINMOIN2_pythonanywhere_com_wsgi.py</div>
              <div><br clear="none">
              </div>
              <div>  Â  Python version:  Â  Â  Â  Â  Â  Â  Â 3.7</div>
              <div><br clear="none">
              </div>
              <div><br clear="none">
              </div>
              <div>  Â  Virtualenv:</div>
              <div><br clear="none">
              </div>
              <div>  Â  -- snip 3 lines --</div>
              <div><br clear="none">
              </div>
              <div>  Â  /home/MOINMOIN2/moin-venv-python3.7/</div>
            </div>
            <div><br clear="none">
            </div>
            <div>-------------------</div>
            <div><br clear="none">
            </div>
            <div dir="ltr">Also copy and paste the
              contents of the <span><span style="color:rgb(0,0,0);font-family:Helvetica Neue,Helvetica,Arial,sans-serif"> /var/www/MOINMOIN2_pythonanywhere_com_wsgi.py
                  file.</span></span></div>
            <div dir="ltr"><span><span style="color:rgb(0,0,0);font-family:Helvetica Neue,Helvetica,Arial,sans-serif"><br clear="none">
                </span></span></div>
            <div dir="ltr"><span><span style="color:rgb(0,0,0);font-family:Helvetica Neue,Helvetica,Arial,sans-serif"><br clear="none">
                </span></span></div>
          </div>
        </div>
        <div id="gmail-m_3001308657043929531gmail-m_5205679695164906825yiv8285860021yahoo_quoted_1680220963">
          <div style="font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:13px;color:rgb(38,40,42)">
            <div> On Monday, February 3, 2020, 05:08:17 AM MST, Renato
              Pontefice <a rel="nofollow" shape="rect" href="mailto:renato.pontefice@gmail.com" target="_blank"><renato.pontefice@gmail.com></a>
              wrote: </div>
            <div><br clear="none">
            </div>
            <div><br clear="none">
            </div>
            <div>
              <div id="gmail-m_3001308657043929531gmail-m_5205679695164906825yiv8285860021">
                <div dir="ltr">
                  <div>Hi,</div>
                  <div>it still dont work</div>
                  <div>and on log errorm I found:this:</div>
                  <div><br clear="none">
                  </div>
                  <div> >
                    ***************************************************<br clear="none">
                    2020-02-03 11:55:44,235: Error running WSGI
                    application<br clear="none">
                    2020-02-03 11:55:44,271: ModuleNotFoundError: No
                    module named 'MoinMoin'<br clear="none">
                    2020-02-03 11:55:44,271: Â  File
                    "/var/www/rp20_pythonanywhere_com_wsgi.py", line 1,
                    in <module><br clear="none">
                    2020-02-03 11:55:44,272: Â  Â  from MoinMoin.app
                    import create_app<br clear="none">
                    2020-02-03 11:55:44,272:
                    ***************************************************</div>
                  <div><br clear="none">
                  </div>
                  <div>who has to put MoinMoin module on that directory?</div>
                  <div>Why it is not there?</div>
                  <div><br clear="none">
                  </div>
                  <div>TIA</div>
                  <div>Renato<br clear="none">
                  </div>
                </div>
              </div>
              _______________________________________________<br clear="none">
              moin-user mailing list<br clear="none">
              <a rel="nofollow" shape="rect" href="mailto:moin-user@python.org" target="_blank">moin-user@python.org</a><br clear="none">
              <a rel="nofollow" shape="rect" href="https://mail.python.org/mailman/listinfo/moin-user" target="_blank">https://mail.python.org/mailman/listinfo/moin-user</a><br clear="none">
            </div>
          </div>
        </div>
      
    
  </div></div></div><div id="gmail-m_3001308657043929531gmail-m_5205679695164906825yqt84986">_______________________________________________<br clear="none">moin-user mailing list<br clear="none"><a shape="rect" href="mailto:moin-user@python.org" target="_blank">moin-user@python.org</a><br clear="none"><a shape="rect" href="https://mail.python.org/mailman/listinfo/moin-user" target="_blank">https://mail.python.org/mailman/listinfo/moin-user</a><br clear="none"></div></div>
            </div>
        </div></div></blockquote></div>