From tw at waldmann-edv.de Sat Feb 1 13:57:15 2020 From: tw at waldmann-edv.de (Thomas Waldmann) Date: Sat, 1 Feb 2020 19:57:15 +0100 Subject: [moin-user] New coming on MoinMoin - in French In-Reply-To: <001801d5d61c$c9c7f1d0$5d57d570$@pydelens.be> References: <001801d5d61c$c9c7f1d0$5d57d570$@pydelens.be> Message-ID: <24a3057f-60af-6535-922b-babc0abd9698@waldmann-edv.de> > Right now, I?m just testing MoinMoin Desktop Edition, on Win 10 / Python 6. Should be python 2.7.latest and moin 1.9.latest. > 1. ?I fail to pass through the step of installing languages packages > (French only in this case). > > ????? I tuned? the config this way?: > > ????? ??????????language_default??? = 'fr' > > ? ??????????????page_category_regex = ur'(?PCat[?e]gorie(?P\S+))' > > ??? ????????????page_dict_regex = ur'(?PDict(?P\S+))' > > ??? ????????????page_group_regex = ur'(?PGroupe(?P\S+))' > > ??? ????????????page_template_regex = ur'(?PMod[e?]le(?P\S+))' > > ?? ????????????but I still don?t see where to get the packages If you do not set the home page in your wikiconfig, it should default to LanguageSetup and there are the language packages. > 2.? I didn?t define myself as a ?superuser?, as it is presented as > unneeded on Desktop Edition (any user is a superuser). Hmm, admittedly I do not remember. But if so, you'll notice. :-) Anyway, your user needs superuser capabilities so it will let you install packages. > ??? However I?m not yet registered at all as a ?user?, despite attempts > to. What did I miss?? There are no default user account(s), so you need to create a user account. For a normal moin setup (not sure about desktop edition), creation of user accounts is disabled since the most recent moin release (see changelog). You can either temporarily enable it (as mentioned in the recent changelog) or use the command line to add the first user. After that and if you are superuser, you (first, admin) user can also create user account via "change to user" in the settings web menue (see also changelog). -- GPG ID: 9F88FB52FAF7B393 GPG FP: 6D5B EF9A DD20 7580 5747 B70F 9F88 FB52 FAF7 B393 From renato.pontefice at gmail.com Mon Feb 3 07:07:58 2020 From: renato.pontefice at gmail.com (Renato Pontefice) Date: Mon, 3 Feb 2020 13:07:58 +0100 Subject: [moin-user] MoinMoin2 on pythonanywhere Message-ID: Hi, it still dont work and on log errorm I found:this: > *************************************************** 2020-02-03 11:55:44,235: Error running WSGI application 2020-02-03 11:55:44,271: ModuleNotFoundError: No module named 'MoinMoin' 2020-02-03 11:55:44,271: File "/var/www/rp20_pythonanywhere_com_wsgi.py", line 1, in 2020-02-03 11:55:44,272: from MoinMoin.app import create_app 2020-02-03 11:55:44,272: *************************************************** who has to put MoinMoin module on that directory? Why it is not there? TIA Renato -------------- next part -------------- An HTML attachment was scrubbed... URL: From crosseyedpenguin at yahoo.com Mon Feb 3 09:49:47 2020 From: crosseyedpenguin at yahoo.com (Roger Haase) Date: Mon, 3 Feb 2020 14:49:47 +0000 (UTC) Subject: [moin-user] MoinMoin2 on pythonanywhere In-Reply-To: References: Message-ID: <1497840399.925060.1580741387556@mail.yahoo.com> 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. Go to (replacing MOINMOIN2 with your account name): ? ? https://www.pythonanywhere.com/user/MOINMOIN2/webapps/#tab_id_MOINMOIN2_pythonanywhere_com Scroll down to about the middle of the page to the section labeled "Code"and copy and paste the contents of the code section to your reply email. ---------------- ? ? Code: ? ? What your site is running.? ? Source code:? ? ? ? ? ? ? ? ? /home/MOINMOIN2/moin/src/moin ? ? Working directory:? ? ? ? ? ? /home/MOINMOIN2/moin ? ? WSGI configuration file:? ? ? /var/www/MOINMOIN2_pythonanywhere_com_wsgi.py ? ? Python version:? ? ? ? ? ? ? ?3.7 ? ? Virtualenv: ? ? -- snip 3 lines -- ? ? /home/MOINMOIN2/moin-venv-python3.7/ ------------------- Also copy and paste the contents of the??/var/www/MOINMOIN2_pythonanywhere_com_wsgi.py file. On Monday, February 3, 2020, 05:08:17 AM MST, Renato Pontefice wrote: Hi,it still dont workand on log errorm I found:this: > *************************************************** 2020-02-03 11:55:44,235: Error running WSGI application 2020-02-03 11:55:44,271: ModuleNotFoundError: No module named 'MoinMoin' 2020-02-03 11:55:44,271: ? File "/var/www/rp20_pythonanywhere_com_wsgi.py", line 1, in 2020-02-03 11:55:44,272: ? ? from MoinMoin.app import create_app 2020-02-03 11:55:44,272: *************************************************** who has to put MoinMoin module on that directory?Why it is not there? TIARenato _______________________________________________ moin-user mailing list moin-user at python.org https://mail.python.org/mailman/listinfo/moin-user -------------- next part -------------- An HTML attachment was scrubbed... URL: From renato.pontefice at gmail.com Mon Feb 3 11:57:11 2020 From: renato.pontefice at gmail.com (Renato Pontefice) Date: Mon, 3 Feb 2020 17:57:11 +0100 Subject: [moin-user] Fwd: Re: MoinMoin2 on pythonanywhere In-Reply-To: <40898075-97ee-43a5-3088-083445dd6eae@gmail.com> References: <40898075-97ee-43a5-3088-083445dd6eae@gmail.com> Message-ID: <9428f43d-16a4-0f58-160c-b53fb33d9c2d@gmail.com> -------- Messaggio Inoltrato -------- Oggetto: Re: [moin-user] MoinMoin2 on pythonanywhere Data: Mon, 3 Feb 2020 17:55:51 +0100 Mittente: Renato Pontefice A: Roger Haase Hi, my virtualenv name is:/home/MOINMOIN2/moin-venv-python3/ python version is 3.7 this is my rp20_pythonanywhere_com_wsgi.py: 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 athttp://rp20.pythonanywhere.com/ # 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: #https://help.pythonanywhere.com/pages/DebuggingImportError # +++++++++++ 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 = """ ??? PythonAnywhere hosted web application

Hello, World!

??? This is the default welcome page for a ??? PythonAnywhere ??? hosted web application.

??? Find out more about how to configure your own web application ??? by visiting the web app setup page

""" 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 /yourdomain.com/' 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 clonegit at github.com/myusername/myproject.git" ## ...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. Il 03/02/20 15:49, Roger Haase ha scritto: > 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. > > > Go to (replacing MOINMOIN2 with your account name): > > https://www.pythonanywhere.com/user/MOINMOIN2/webapps/#tab_id_MOINMOIN2_pythonanywhere_com > > Scroll down to about the middle of the page to the section labeled "Code" > and copy and paste the contents of the code section to your reply email. > > ---------------- > > ? ? Code: > > ? ? What your site is running. > ? ? Source code: /home/MOINMOIN2/moin/src/moin > > ? ? Working directory: /home/MOINMOIN2/moin > > ? ? WSGI configuration file: /var/www/MOINMOIN2_pythonanywhere_com_wsgi.py > > ? ? Python version:? ? ? ? ? ? ? ?3.7 > > > ? ? Virtualenv: > > ? ? -- snip 3 lines -- > > ? ? /home/MOINMOIN2/moin-venv-python3.7/ > > ------------------- > > Also copy and paste the contents of the > ?/var/www/MOINMOIN2_pythonanywhere_com_wsgi.py file. > > > On Monday, February 3, 2020, 05:08:17 AM MST, Renato Pontefice > wrote: > > > Hi, > it still dont work > and on log errorm I found:this: > > > *************************************************** > 2020-02-03 11:55:44,235: Error running WSGI application > 2020-02-03 11:55:44,271: ModuleNotFoundError: No module named 'MoinMoin' > 2020-02-03 11:55:44,271: ? File > "/var/www/rp20_pythonanywhere_com_wsgi.py", line 1, in > 2020-02-03 11:55:44,272: ? ? from MoinMoin.app import create_app > 2020-02-03 11:55:44,272: > *************************************************** > > who has to put MoinMoin module on that directory? > Why it is not there? > > TIA > Renato > _______________________________________________ > moin-user mailing list > moin-user at python.org > https://mail.python.org/mailman/listinfo/moin-user -------------- next part -------------- An HTML attachment was scrubbed... URL: From crosseyedpenguin at yahoo.com Mon Feb 3 14:34:28 2020 From: crosseyedpenguin at yahoo.com (Roger Haase) Date: Mon, 3 Feb 2020 19:34:28 +0000 (UTC) Subject: [moin-user] Fwd: Re: MoinMoin2 on pythonanywhere In-Reply-To: <9428f43d-16a4-0f58-160c-b53fb33d9c2d@gmail.com> References: <40898075-97ee-43a5-3088-083445dd6eae@gmail.com> <9428f43d-16a4-0f58-160c-b53fb33d9c2d@gmail.com> Message-ID: <1833333746.1116036.1580758468963@mail.yahoo.com> On the "Manual Configuration" popup, click "Next" near lower right. Thatshould bring you here: ? ? https://www.pythonanywhere.com/user/rp20/webapps/#tab_id_rp20_pythonanywhere_com?Scroll down to about the middle of the page to the section labeled "Code"and edit the section so it looks similar to this (MOINMOIN2 replaced by rp20) ? ? Code: ? ? What your site is running.? ? Source code:? ? ? ? ? ? ? ? ? /home/rp20/moin/src/moin ? ? Working directory:? ? ? ? ? ? /home/rp20/moin ? ? WSGI configuration file:? ? ? /var/www/rp20_pythonanywhere_com_wsgi.py ? ? Python version:? ? ? ? ? ? ? ?3.7 ? ? Virtualenv: ? ? -- snip 3 lines -- ? ? /home/rp20/moin-venv-python3.7/ ---------- This file:?/var/www/rp20_pythonanywhere_com_wsgi.py should contain only a few lines" """# Copy the contents of this file to the pythonanywhere# WSGI configuration file:? /var/www/_pythonanywhere_com_wsgi.py from wsgi import application? # noqa""" You should have replaced it per the instructions:"Next, click the WSGI configuration file link:"/var/www/MOINMOIN2_pythonanywhere_com_wsgi.cpy" You will see the file contents. Keep the browser window open. Switch to yourfavorite file editor that has the file named _pythonanywhere_com_wsgi.pyloaded. Copy and paste the contents of that file into the browser windowreplacing everything. Click the Save button near the upper right." On Monday, February 3, 2020, 09:57:19 AM MST, Renato Pontefice wrote: -------- Messaggio Inoltrato -------- | Oggetto: | Re: [moin-user] MoinMoin2 on pythonanywhere | | Data: | Mon, 3 Feb 2020 17:55:51 +0100 | | Mittente: | Renato Pontefice | | A: | Roger Haase | Hi, my virtualenv name is:/home/MOINMOIN2/moin-venv-python3/ python version is 3.7 this is my rp20_pythonanywhere_com_wsgi.py: 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 http://rp20.pythonanywhere.com/ # 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: # https://help.pythonanywhere.com/pages/DebuggingImportError # +++++++++++ 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 = """ ??? PythonAnywhere hosted web application

Hello, World!

??? This is the default welcome page for a ??? PythonAnywhere ??? hosted web application.

??? Find out more about how to configure your own web application ??? by visiting the web app setup page

""" 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 /yourdomain.com/' 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 git at github.com/myusername/myproject.git" ## ...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. Il 03/02/20 15:49, Roger Haase ha scritto: 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. Go to (replacing MOINMOIN2 with your account name): ? ? https://www.pythonanywhere.com/user/MOINMOIN2/webapps/#tab_id_MOINMOIN2_pythonanywhere_com Scroll down to about the middle of the page to the section labeled "Code" and copy and paste the contents of the code section to your reply email. ---------------- ? ? Code: ? ? What your site is running. ? ? Source code:? ? ? ? ? ? ? ? ? /home/MOINMOIN2/moin/src/moin ? ? Working directory:? ? ? ? ? ? /home/MOINMOIN2/moin ? ? WSGI configuration file:? ? ? /var/www/MOINMOIN2_pythonanywhere_com_wsgi.py ? ? Python version:? ? ? ? ? ? ? ?3.7 ? ? Virtualenv: ? ? -- snip 3 lines -- ? ? /home/MOINMOIN2/moin-venv-python3.7/ ------------------- Also copy and paste the contents of the??/var/www/MOINMOIN2_pythonanywhere_com_wsgi.py file. On Monday, February 3, 2020, 05:08:17 AM MST, Renato Pontefice wrote: Hi, it still dont work and on log errorm I found:this: > *************************************************** 2020-02-03 11:55:44,235: Error running WSGI application 2020-02-03 11:55:44,271: ModuleNotFoundError: No module named 'MoinMoin' 2020-02-03 11:55:44,271: ? File "/var/www/rp20_pythonanywhere_com_wsgi.py", line 1, in 2020-02-03 11:55:44,272: ? ? from MoinMoin.app import create_app 2020-02-03 11:55:44,272: *************************************************** who has to put MoinMoin module on that directory? Why it is not there? TIA Renato _______________________________________________ moin-user mailing list moin-user at python.org https://mail.python.org/mailman/listinfo/moin-user _______________________________________________ moin-user mailing list moin-user at python.org https://mail.python.org/mailman/listinfo/moin-user -------------- next part -------------- An HTML attachment was scrubbed... URL: From renato.pontefice at gmail.com Tue Feb 4 04:22:07 2020 From: renato.pontefice at gmail.com (Renato Pontefice) Date: Tue, 4 Feb 2020 10:22:07 +0100 Subject: [moin-user] Fwd: Re: MoinMoin2 on pythonanywhere In-Reply-To: <1833333746.1116036.1580758468963@mail.yahoo.com> References: <40898075-97ee-43a5-3088-083445dd6eae@gmail.com> <9428f43d-16a4-0f58-160c-b53fb33d9c2d@gmail.com> <1833333746.1116036.1580758468963@mail.yahoo.com> Message-ID: nothing... 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 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: https://help.pythonanywhere.com/pages/DebuggingImportError/ 2020-02-04 09:12:32,924: *************************************************** I've created a brand new /var/www/rp20_pythonanywhere_com_wsgi.py that is just 4 lines, this: # Copy the contents of this file to the pythonanywhere # WSGI configuration file: /var/www/_pythonanywhere_com_wsgi.py from wsgi import application # noqa I've reloaded it, but it does not work Renato Il giorno lun 3 feb 2020 alle ore 20:34 Roger Haase < crosseyedpenguin at yahoo.com> ha scritto: > On the "Manual Configuration" popup, click "Next" near lower right. That > should bring you here: > > > https://www.pythonanywhere.com/user/rp20/webapps/#tab_id_rp20_pythonanywhere_com > > Scroll down to about the middle of the page to the section labeled "Code" > and edit the section so it looks similar to this (MOINMOIN2 replaced by > rp20) > > Code: > > What your site is running. > Source code: /home/rp20/moin/src/moin > > Working directory: /home/rp20/moin > > WSGI configuration file: /var/www/rp20_pythonanywhere_com_wsgi.py > > Python version: 3.7 > > > Virtualenv: > > -- snip 3 lines -- > > /home/rp20/moin-venv-python3.7/ > > ---------- > > This file: /var/www/rp20_pythonanywhere_com_wsgi.py should contain only a > few lines" > > """ > # Copy the contents of this file to the pythonanywhere > # WSGI configuration file: > /var/www/_pythonanywhere_com_wsgi.py > > from wsgi import application # noqa > """ > > You should have replaced it per the instructions: > " > Next, click the WSGI configuration file link: > "/var/www/MOINMOIN2_pythonanywhere_com_wsgi.cpy" > > You will see the file contents. Keep the browser window open. Switch to > your > favorite file editor that has the file named _pythonanywhere_com_wsgi.py > loaded. Copy and paste the contents of that file into the browser window > replacing everything. Click the Save button near the upper right. > " > On Monday, February 3, 2020, 09:57:19 AM MST, Renato Pontefice < > renato.pontefice at gmail.com> wrote: > > > > > > -------- Messaggio Inoltrato -------- > Oggetto: Re: [moin-user] MoinMoin2 on pythonanywhere > Data: Mon, 3 Feb 2020 17:55:51 +0100 > Mittente: Renato Pontefice > > A: Roger Haase > > Hi, > > my virtualenv name is:/home/MOINMOIN2/moin-venv-python3/ python version is > 3.7 > > this is my rp20_pythonanywhere_com_wsgi.py: > > 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 http://rp20.pythonanywhere.com/ > # 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: > # https://help.pythonanywhere.com/pages/DebuggingImportError > > > # +++++++++++ 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 = """ > > PythonAnywhere hosted web application > > >

Hello, World!

>

> This is the default welcome page for a > >PythonAnywhere > hosted web application. >

>

> Find out more about how to configure your own web application > by visiting the >web app setup page >

> > """ > > > 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 /yourdomain.com/' 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 git at github.com/myusername/myproject.git" > ## ...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. > > Il 03/02/20 15:49, Roger Haase ha scritto: > > 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. > > > Go to (replacing MOINMOIN2 with your account name): > > > https://www.pythonanywhere.com/user/MOINMOIN2/webapps/#tab_id_MOINMOIN2_pythonanywhere_com > > Scroll down to about the middle of the page to the section labeled "Code" > and copy and paste the contents of the code section to your reply email. > > ---------------- > > Code: > > What your site is running. > Source code: /home/MOINMOIN2/moin/src/moin > > Working directory: /home/MOINMOIN2/moin > > WSGI configuration file: > /var/www/MOINMOIN2_pythonanywhere_com_wsgi.py > > Python version: 3.7 > > > Virtualenv: > > -- snip 3 lines -- > > /home/MOINMOIN2/moin-venv-python3.7/ > > ------------------- > > Also copy and paste the contents of the /var/www/MOINMOIN2_pythonanywhere_com_wsgi.py > file. > > > On Monday, February 3, 2020, 05:08:17 AM MST, Renato Pontefice > wrote: > > > Hi, > it still dont work > and on log errorm I found:this: > > > *************************************************** > 2020-02-03 11:55:44,235: Error running WSGI application > 2020-02-03 11:55:44,271: ModuleNotFoundError: No module named 'MoinMoin' > 2020-02-03 11:55:44,271: File > "/var/www/rp20_pythonanywhere_com_wsgi.py", line 1, in > 2020-02-03 11:55:44,272: from MoinMoin.app import create_app > 2020-02-03 11:55:44,272: > *************************************************** > > who has to put MoinMoin module on that directory? > Why it is not there? > > TIA > Renato > _______________________________________________ > moin-user mailing list > moin-user at python.org > https://mail.python.org/mailman/listinfo/moin-user > _______________________________________________ > moin-user mailing list > moin-user at python.org > https://mail.python.org/mailman/listinfo/moin-user > -------------- next part -------------- An HTML attachment was scrubbed... URL: From crosseyedpenguin at yahoo.com Tue Feb 4 09:03:02 2020 From: crosseyedpenguin at yahoo.com (Roger Haase) Date: Tue, 4 Feb 2020 14:03:02 +0000 (UTC) Subject: [moin-user] Fwd: Re: MoinMoin2 on pythonanywhere In-Reply-To: References: <40898075-97ee-43a5-3088-083445dd6eae@gmail.com> <9428f43d-16a4-0f58-160c-b53fb33d9c2d@gmail.com> <1833333746.1116036.1580758468963@mail.yahoo.com> Message-ID: <524928494.191170.1580824982448@mail.yahoo.com> Did you upload the wsgi.py file? On the bottom of the page, click the yellow button labeled "Upload a file".On the file dialog box, navigate to your local copy of the../moin/contrib/pythonanywhere/ directory and select the wsgi.py file,click the "Open" button. When the upload is complete you should see thewsgi.py file above the yellow "Upload a file" button. Near the top right of the web page, click the "Web" button. Click the green"Reload MOINMOIN2.pythonanywhere.com" button. When the reload is complete, click the link to MOINMOIN2.pythonanywhere.comthat is located just above the green button. On Tuesday, February 4, 2020, 02:22:26 AM MST, Renato Pontefice wrote: nothing...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 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: https://help.pythonanywhere.com/pages/DebuggingImportError/ 2020-02-04 09:12:32,924: *************************************************** I've created a brand new /var/www/rp20_pythonanywhere_com_wsgi.py that is just 4 lines, this: # Copy the contents of this file to the pythonanywhere # WSGI configuration file: ?/var/www/_pythonanywhere_com_wsgi.py from wsgi import application ?# noqa I've reloaded it, but it does not work Renato Il giorno lun 3 feb 2020 alle ore 20:34 Roger Haase ha scritto: On the "Manual Configuration" popup, click "Next" near lower right. Thatshould bring you here: ? ? https://www.pythonanywhere.com/user/rp20/webapps/#tab_id_rp20_pythonanywhere_com?Scroll down to about the middle of the page to the section labeled "Code"and edit the section so it looks similar to this (MOINMOIN2 replaced by rp20) ? ? Code: ? ? What your site is running.? ? Source code:? ? ? ? ? ? ? ? ? /home/rp20/moin/src/moin ? ? Working directory:? ? ? ? ? ? /home/rp20/moin ? ? WSGI configuration file:? ? ? /var/www/rp20_pythonanywhere_com_wsgi.py ? ? Python version:? ? ? ? ? ? ? ?3.7 ? ? Virtualenv: ? ? -- snip 3 lines -- ? ? /home/rp20/moin-venv-python3.7/ ---------- This file:?/var/www/rp20_pythonanywhere_com_wsgi.py should contain only a few lines" """# Copy the contents of this file to the pythonanywhere# WSGI configuration file:? /var/www/_pythonanywhere_com_wsgi.py from wsgi import application? # noqa""" You should have replaced it per the instructions:"Next, click the WSGI configuration file link:"/var/www/MOINMOIN2_pythonanywhere_com_wsgi.cpy" You will see the file contents. Keep the browser window open. Switch to yourfavorite file editor that has the file named _pythonanywhere_com_wsgi.pyloaded. Copy and paste the contents of that file into the browser windowreplacing everything. Click the Save button near the upper right." On Monday, February 3, 2020, 09:57:19 AM MST, Renato Pontefice wrote: -------- Messaggio Inoltrato -------- | Oggetto: | Re: [moin-user] MoinMoin2 on pythonanywhere | | Data: | Mon, 3 Feb 2020 17:55:51 +0100 | | Mittente: | Renato Pontefice | | A: | Roger Haase | Hi, my virtualenv name is:/home/MOINMOIN2/moin-venv-python3/ python version is 3.7 this is my rp20_pythonanywhere_com_wsgi.py: 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 http://rp20.pythonanywhere.com/ # 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: # https://help.pythonanywhere.com/pages/DebuggingImportError # +++++++++++ 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 = """ ??? PythonAnywhere hosted web application

Hello, World!

??? This is the default welcome page for a ??? PythonAnywhere ??? hosted web application.

??? Find out more about how to configure your own web application ??? by visiting the web app setup page

""" 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 /yourdomain.com/' 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 git at github.com/myusername/myproject.git" ## ...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. Il 03/02/20 15:49, Roger Haase ha scritto: 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. Go to (replacing MOINMOIN2 with your account name): ? ? https://www.pythonanywhere.com/user/MOINMOIN2/webapps/#tab_id_MOINMOIN2_pythonanywhere_com Scroll down to about the middle of the page to the section labeled "Code" and copy and paste the contents of the code section to your reply email. ---------------- ? ? Code: ? ? What your site is running. ? ? Source code:? ? ? ? ? ? ? ? ? /home/MOINMOIN2/moin/src/moin ? ? Working directory:? ? ? ? ? ? /home/MOINMOIN2/moin ? ? WSGI configuration file:? ? ? /var/www/MOINMOIN2_pythonanywhere_com_wsgi.py ? ? Python version:? ? ? ? ? ? ? ?3.7 ? ? Virtualenv: ? ? -- snip 3 lines -- ? ? /home/MOINMOIN2/moin-venv-python3.7/ ------------------- Also copy and paste the contents of the??/var/www/MOINMOIN2_pythonanywhere_com_wsgi.py file. On Monday, February 3, 2020, 05:08:17 AM MST, Renato Pontefice wrote: Hi, it still dont work and on log errorm I found:this: > *************************************************** 2020-02-03 11:55:44,235: Error running WSGI application 2020-02-03 11:55:44,271: ModuleNotFoundError: No module named 'MoinMoin' 2020-02-03 11:55:44,271: ? File "/var/www/rp20_pythonanywhere_com_wsgi.py", line 1, in 2020-02-03 11:55:44,272: ? ? from MoinMoin.app import create_app 2020-02-03 11:55:44,272: *************************************************** who has to put MoinMoin module on that directory? Why it is not there? TIA Renato _______________________________________________ moin-user mailing list moin-user at python.org https://mail.python.org/mailman/listinfo/moin-user _______________________________________________ moin-user mailing list moin-user at python.org https://mail.python.org/mailman/listinfo/moin-user _______________________________________________ moin-user mailing list moin-user at python.org https://mail.python.org/mailman/listinfo/moin-user -------------- next part -------------- An HTML attachment was scrubbed... URL: From pcolsen at gmail.com Wed Feb 5 14:08:56 2020 From: pcolsen at gmail.com (Peter Olsen) Date: Wed, 5 Feb 2020 14:08:56 -0500 Subject: [moin-user] Can I run two linked moin databases? Message-ID: Ladies and Gentlemen, I've just been appointed Treasurer of a local non-profit. I use moin as a personal PIM. I also want to keep notes for my Treasurer business accessible from the same login, but I want to keep those data in another directory, separate from the one I use for my personal data. Can I do this? Peter -- Peter Olsen olsen at sigmaxi.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From pcolsen at gmail.com Wed Feb 5 14:22:37 2020 From: pcolsen at gmail.com (Peter Olsen) Date: Wed, 5 Feb 2020 14:22:37 -0500 Subject: [moin-user] Command-line control of moin? Message-ID: Ladies and Gentlemen, Can I control moin from the command line? I've just been appointed Treasurer of a local non-profit corporation. Because I'm new to both bookkeeping and accounting, I plan to scan every document that crosses my desk. I'd like to automatically add these as attachments to my moin database. The quickest way would be to add them add them to a single "attachments" pages from the command line as I scan them. Can I do this? I have substantial (although dated) programming experience in C, Fortran, and APL and some (more recent) in Lisp and Scheme, but I have little experience in Python. -- Peter Olsen olsen at sigmaxi.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From tw at waldmann-edv.de Wed Feb 5 19:17:48 2020 From: tw at waldmann-edv.de (Thomas Waldmann) Date: Thu, 6 Feb 2020 01:17:48 +0100 Subject: [moin-user] Can I run two linked moin databases? In-Reply-To: References: Message-ID: <2d2b1eef-0a9a-8539-4691-01d1d7062636@waldmann-edv.de> > I've just been appointed Treasurer of a local non-profit.? I use moin as > a personal PIM.? I also want to keep notes for my Treasurer business > accessible from the same login, but I want to keep those data in another > directory, separate from the one I use for my personal?data.? Can I do this? You could setup 2 wikis (thus: have a separate data_dir). And then you could configure them to use the same user_dir and configure the cookie so that is is valid for both wiki urls (should share common base domain). -- GPG ID: 9F88FB52FAF7B393 GPG FP: 6D5B EF9A DD20 7580 5747 B70F 9F88 FB52 FAF7 B393 From paul at boddie.org.uk Thu Feb 6 14:35:57 2020 From: paul at boddie.org.uk (Paul Boddie) Date: Thu, 06 Feb 2020 20:35:57 +0100 Subject: [moin-user] MoinLight: converting and publishing Moin format documents Message-ID: <3895826.fvPMUOdITW@jeremy> Hello, I may have mentioned this project a while ago (on one of the mailing lists) in relation to the "moin export dump" functionality in MoinMoin, which I have needed to use occasionally. Certain aspects of Moin's export functionality are not ideal, however, and it isn't always clear how to produce exactly the results that are required [*]. Ultimately, I felt that I needed a more convenient way to export wiki pages and to publish them as static Web pages (either served or as local files). I also wanted to have some tools to work with the Moin format and to extend that format somewhat. The result of all of this is the MoinLight distribution: http://projects.boddie.org.uk/MoinLight/ The Web site itself is generated from the project's own documentation: https://hg.boddie.org.uk/MoinLight/file/rel-0-1/docs/wiki In principle, this software could be used to support editable Web sites, but the current emphasis is on static publishing. There are plenty of things that could be improved in this software, but I thought that it would be constructive to make it available in its current form. Since there may be other Moin users who, like me, are mostly (or often) using Moin to prepare and publish sites that will not be edited through the Web, I hope this is of interest to someone. Paul [*] I ended up adjusting Moin's export "script" and still had to use a simple server-side script to preserve the form of the URLs. From renato.pontefice at gmail.com Fri Feb 7 11:00:19 2020 From: renato.pontefice at gmail.com (Renato Pontefice) Date: Fri, 7 Feb 2020 17:00:19 +0100 Subject: [moin-user] moi2 doesn.t works Message-ID: <9369cfb0-e1ac-e22e-81c6-d27006dea3ff@gmail.com> Hi Roger, I send the screen shot this is the content of wsgi.py: ------------------------------------------ # Copyright: 2020 MoinMoin:RogerHaase # License: GNU GPL v2 (or any later version), see LICENSE.txt for details. # Upload this file to the pythonanywhere # Working directory: /home//moin import sys import os import site this_dir = os.path.dirname(os.path.abspath(__file__)) site.addsitedir(this_dir + '-venv-{0}/lib/{0}/site-packages'.format(sys.executable)) if not (this_dir in sys.path or this_dir.lower() in sys.path): ??? sys.path.insert(0, this_dir) wiki_config = this_dir + '/wikiconfig_local.py' if not os.path.exists(wiki_config): ??? wiki_config = this_dir + '/wikiconfig.py' # application is the Flask application from moin.app import create_app application = create_app(wiki_config) --------------------------------------------------- and this is the content of _pythonanywhere_com_wsgi.py ?# Copy the contents of this file to the pythonanywhere # WSGI configuration file: /var/www/_pythonanywhere_com_wsgi.py from wsgi import application? # noqa ____________________________________________________________ I've reload it but it still does not works... Renato -------------- next part -------------- A non-text attachment was scrubbed... Name: py.pdf Type: application/pdf Size: 28006 bytes Desc: not available URL: From renato.pontefice at gmail.com Sat Feb 8 11:18:47 2020 From: renato.pontefice at gmail.com (Renato Pontefice) Date: Sat, 8 Feb 2020 17:18:47 +0100 Subject: [moin-user] moin2:following new _README.txt Message-ID: Hi, I'm following step by step the sudgested _README.txt but I stop at this point: 5:50 ~/moin (master)$ ./m sample Creating a new wiki populated with sample data... Output messages redirected to m-new-wiki.txt. Important messages from m-new-wiki.txt are shown below: 1 Traceback (most recent call last): 10 ImportError: cannot import name 'cached_property' from 'werkzeug' (/home/rp20b/moin-venv-python3.7/lib/python3.7/site-packages/werkzeug/__init__.py) 11 Traceback (most recent call last): 20 ImportError: cannot import name 'cached_property' from 'werkzeug' (/home/rp20b/moin-venv-python3.7/lib/python3.7/site-packages/werkzeug/__init__.py) Error: attempt to create wiki failed. Do "./m log new-wiki" to see complete log. can someone drive me to a solution? Thank you Renato -------------- next part -------------- An HTML attachment was scrubbed... URL: From crosseyedpenguin at yahoo.com Sat Feb 8 14:34:19 2020 From: crosseyedpenguin at yahoo.com (Roger Haase) Date: Sat, 8 Feb 2020 19:34:19 +0000 (UTC) Subject: [moin-user] moin2:following new _README.txt In-Reply-To: References: Message-ID: <609804280.253710.1581190459795@mail.yahoo.com> https://github.com/moinwiki/moin/issues/951 On Saturday, February 8, 2020, 09:18:59 AM MST, Renato Pontefice wrote: Hi, I'm following step by step the sudgested _README.txt but I stop at this point: 5:50 ~/moin (master)$ ./m sample Creating a new wiki populated with sample data... Output messages redirected to m-new-wiki.txt. Important messages from m-new-wiki.txt are shown below: 1 Traceback (most recent call last): 10 ImportError: cannot import name 'cached_property' from 'werkzeug'(/home/rp20b/moin-venv-python3.7/lib/python3.7/site-packages/werkzeug/__init__.py) 11 Traceback (most recent call last): 20 ImportError: cannot import name 'cached_property' from 'werkzeug'(/home/rp20b/moin-venv-python3.7/lib/python3.7/site-packages/werkzeug/__init__.py) Error: attempt to create wiki failed. Do "./m log new-wiki" to see complete log. can someone drive me to a solution? Thank you Renato _______________________________________________ moin-user mailing list moin-user at python.org https://mail.python.org/mailman/listinfo/moin-user -------------- next part -------------- An HTML attachment was scrubbed... URL: From renato.pontefice at gmail.com Sun Feb 9 05:57:12 2020 From: renato.pontefice at gmail.com (Renato Pontefice) Date: Sun, 9 Feb 2020 11:57:12 +0100 Subject: [moin-user] moin2 on pythonanywhere Message-ID: for me, this is incomprehensible LICENSE.txt? README.rst activate? docs? m-docs.txt??? m-new-wiki.txt????? moin.spec requirements.d? setup.cfg? src????? wiki_local 10:42 ~/moin (master)$ pip install werkzeug==0.16.1 DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7 . More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support Looking in links: /usr/share/pip-wheels Collecting werkzeug==0.16.1 ? Downloading https://files.pythonhosted.org/packages/c2/e4/a859d2fe516f466642fa5c6054fd9646271f9da26b0cac0d2f37fc858c8f/Werkzeug-0.16.1-py2.py3-none-any.whl (327kB) ???? |????????????????????????????????| 327kB 53.5MB/s Installing collected packages: werkzeug ? Found existing installation: Werkzeug 0.16.0 ??? Uninstalling Werkzeug-0.16.0: ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/Werkzeug-0.16.0.dist-info/top_level.txt' Consider using the `--user` option or check the permissions. 10:43 ~/moin (master)$ su pip install werkzeug==0.16.1 No passwd entry for user 'pip' 10:43 ~/moin (master)$ sudo pip install werkzeug==0.16.1 bash: sudo: command not found 10:43 ~/moin (master)$ su pip install werkzeug==0.16.1 No passwd entry for user 'pip' 10:44 ~/moin (master)$ pip install werkzeug==0.16.1 DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7 . More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support Looking in links: /usr/share/pip-wheels Collecting werkzeug==0.16.1 ? Using cached https://files.pythonhosted.org/packages/c2/e4/a859d2fe516f466642fa5c6054fd9646271f9da26b0cac0d2f37fc858c8f/Werkzeug-0.16.1-py2.py3-none-any.whl Installing collected packages: werkzeug ? Found existing installation: Werkzeug 0.16.0 ??? Uninstalling Werkzeug-0.16.0: ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/Werkzeug-0.16.0.dist-info/top_level.txt' Consider using the `--user` option or check the permissions. 10:44 ~/moin (master)$ ./m sample Creating a new wiki populated with sample data... Output messages redirected to m-new-wiki.txt. Important messages from m-new-wiki.txt are shown below: 1 Traceback (most recent call last): 10 ImportError: cannot import name 'cached_property' from 'werkzeug' (/home/rp20b/moin-venv-python3.7/lib/python3.7/site-packages/werkzeug/__init__.py) 11 Traceback (most recent call last): 20 ImportError: cannot import name 'cached_property' from 'werkzeug' (/home/rp20b/moin-venv-python3.7/lib/python3.7/site-packages/werkzeug/__init__.py) Error: attempt to create wiki failed. Do "./m log new-wiki" to see complete log. Renato -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at sumpfralle.de Sun Feb 9 11:53:55 2020 From: lists at sumpfralle.de (Lars Kruse) Date: Sun, 9 Feb 2020 17:53:55 +0100 Subject: [moin-user] moin2 on pythonanywhere In-Reply-To: References: Message-ID: <20200209175355.695d5ebd@erker.lan> Hello Renato, Am Sun, 9 Feb 2020 11:57:12 +0100 schrieb Renato Pontefice : > for me, this is incomprehensible > > LICENSE.txt? README.rst activate? docs? m-docs.txt??? m-new-wiki.txt????? moin.spec requirements.d? setup.cfg? src????? wiki_local > 10:42 ~/moin (master)$ pip install werkzeug==0.16.1 are you sure, that a virtualenv is active in this shell session? The error message further below in your log indicates, that "pip" wants to install the new package into the system-wide directory (/usr/lib/....). Instead you probably want to create a virtualenv and install packages inside this separate environment (not system-wide). Besides this: your output looked like you are using python2 at this moment. Probably this is related to the missing virtualenv. The virtualenv should be created with python3. Then everything should work as expected. I do not know, which guide or documentation you are following - thus I cannot tell, were you went off the track ... Cheers, Lars From renato.pontefice at gmail.com Sun Feb 9 13:02:09 2020 From: renato.pontefice at gmail.com (Renato Pontefice) Date: Sun, 9 Feb 2020 19:02:09 +0100 Subject: [moin-user] I am moved Message-ID: ? it works... finaly it works... I want to thank Roger for the patience with which he guided me I've started a new pythonanywhere vm, redo the entire flow described on the guide... and all works well So, the guide can bring also an ignorant (like me) to the goal. And now I start to work! So you will hear me again!!! Thank you Renato -------------- next part -------------- An HTML attachment was scrubbed... URL: From crosseyedpenguin at yahoo.com Sun Feb 9 15:42:29 2020 From: crosseyedpenguin at yahoo.com (Roger Haase) Date: Sun, 9 Feb 2020 20:42:29 +0000 (UTC) Subject: [moin-user] I am moved In-Reply-To: References: Message-ID: <355717986.492137.1581280949705@mail.yahoo.com> You are welcome, glad you got it going. Don't forget to checkout /contrib/wikiconfig to prevent hackers from self registering and updating/creating items. On Sunday, February 9, 2020, 11:02:28 AM MST, Renato Pontefice wrote: ?it works...finaly it works...I want to thank Roger for the patience with which he guided meI've started a new pythonanywhere vm, redo the entire flow described on the guide... and all works wellSo, the guide can bring also an ignorant (like me) to the goal. And now I start to work!So you will hear me again!!! Thank you Renato _______________________________________________ moin-user mailing list moin-user at python.org https://mail.python.org/mailman/listinfo/moin-user -------------- next part -------------- An HTML attachment was scrubbed... URL: From renato.pontefice at gmail.com Mon Feb 10 13:12:58 2020 From: renato.pontefice at gmail.com (Renato Pontefice) Date: Mon, 10 Feb 2020 19:12:58 +0100 Subject: [moin-user] docs about moin + sphinx + readthedoc Message-ID: <13d351f5-e465-d0eb-aba1-c0b479518821@gmail.com> Hi, I would use MoinMoin2 to buid documentation for the swhouse where I work. I think the best way is the toolchain: Moin+sphinx+ReadTheDoc As many of you knows... I've installed moin2 on pythonanywhere now, I would connect it with sphinx and RTD so, I'm wondering if there is some documentation about it. Thank you Renato From crosseyedpenguin at yahoo.com Mon Feb 10 16:16:29 2020 From: crosseyedpenguin at yahoo.com (Roger Haase) Date: Mon, 10 Feb 2020 21:16:29 +0000 (UTC) Subject: [moin-user] docs about moin + sphinx + readthedoc In-Reply-To: <13d351f5-e465-d0eb-aba1-c0b479518821@gmail.com> References: <13d351f5-e465-d0eb-aba1-c0b479518821@gmail.com> Message-ID: <547469733.997455.1581369389545@mail.yahoo.com> Sorry, there is no way to do that, no work in progress, nor an open issue. One approach is to use ./m dump-html to create a static dump of your wiki and wait for readthedocs to fix ? ??https://github.com/readthedocs/readthedocs.org/issues/1083 The other approach is to write a function to extract the rest files from moin and place them in a directory that sphinx will accept. On Monday, February 10, 2020, 11:13:07 AM MST, Renato Pontefice wrote: Hi, I would use MoinMoin2 to buid documentation for the swhouse where I work. I think the best way is the toolchain: Moin+sphinx+ReadTheDoc As many of you knows... I've installed moin2 on pythonanywhere now, I would connect it with sphinx and RTD so, I'm wondering if there is some documentation about it. Thank you Renato _______________________________________________ moin-user mailing list moin-user at python.org https://mail.python.org/mailman/listinfo/moin-user -------------- next part -------------- An HTML attachment was scrubbed... URL: From renato.pontefice at gmail.com Sat Feb 15 10:52:30 2020 From: renato.pontefice at gmail.com (Renato Pontefice) Date: Sat, 15 Feb 2020 16:52:30 +0100 Subject: [moin-user] moin 1.9.10 problem with rst Message-ID: Hi, on my 1.9.10 installation, I'm trying to use restructuredtext. I wrote this: #format ReST ========== my heading =========== on a simple page and what I obtain is this: ========== my heading =========== I mean, not the text (my heading) in H1 format. I thin the prob could be the docbook not installed or not seen by moinmoin Can someone tel me the way to be sure that moinmoin knows that Docbook are installed? Thank you Renato -------------- next part -------------- An HTML attachment was scrubbed... URL: From crosseyedpenguin at yahoo.com Sat Feb 15 12:30:01 2020 From: crosseyedpenguin at yahoo.com (Roger Haase) Date: Sat, 15 Feb 2020 17:30:01 +0000 (UTC) Subject: [moin-user] moin 1.9.10 problem with rst In-Reply-To: References: Message-ID: <995472558.3483045.1581787801182@mail.yahoo.com> Use 2 # characters: ##format ReST========== my heading =========== On Saturday, February 15, 2020, 08:54:05 AM MST, Renato Pontefice wrote: Hi, on my 1.9.10 installation, I'm trying to use restructuredtext. I wrote this: #format ReST ========== my heading =========== on a simple page and what I obtain is this: ========== my heading =========== I mean, not the text (my heading) in H1 format. I thin the prob could be the docbook not installed or not seen by moinmoin Can someone tel me the way to be sure that moinmoin knows that Docbook are installed? Thank you Renato _______________________________________________ moin-user mailing list moin-user at python.org https://mail.python.org/mailman/listinfo/moin-user -------------- next part -------------- An HTML attachment was scrubbed... URL: From renato.pontefice at gmail.com Tue Feb 18 03:10:08 2020 From: renato.pontefice at gmail.com (Renato Pontefice) Date: Tue, 18 Feb 2020 09:10:08 +0100 Subject: [moin-user] Fwd: moin 1.9.10 problem with rst In-Reply-To: References: <995472558.3483045.1581787801182@mail.yahoo.com> Message-ID: Renato Pontefice lun 17 feb, 10:41 (22 ore fa) a Roger Il giorno lun 17 feb 2020 alle ore 10:41 Renato Pontefice < renato.pontefice at gmail.com> ha scritto: > it's the same > > ##format ReST >> >> ============ >> >> my heading >> >> ============ >> > thist, show this: > >> ============ >> >> my heading >> >> ============ >> > it looks like rest are not interpreted, > how can I be sure that docbook are present in the moin installation? > > Renato > > Il giorno sab 15 feb 2020 alle ore 18:30 Roger Haase < > crosseyedpenguin at yahoo.com> ha scritto: > >> Use 2 # characters: >> >> ##format ReST >> >> ========== >> >> my heading >> >> =========== >> >> >> >> On Saturday, February 15, 2020, 08:54:05 AM MST, Renato Pontefice < >> renato.pontefice at gmail.com> wrote: >> >> >> Hi, >> >> on my 1.9.10 installation, I'm trying to use restructuredtext. >> >> I wrote this: >> >> #format ReST >> ========== >> >> my heading >> >> =========== >> >> on a simple page >> >> and what I obtain is this: >> >> ==========my heading=========== >> >> I mean, not the text (my heading) in H1 format. >> >> I thin the prob could be the docbook not installed or not seen by moinmoin >> >> Can someone tel me the way to be sure that moinmoin knows that Docbook are installed? >> >> Thank you >> >> Renato >> >> _______________________________________________ >> moin-user mailing list >> moin-user at python.org >> https://mail.python.org/mailman/listinfo/moin-user >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mehmasarja at gmail.com Wed Feb 19 02:25:04 2020 From: mehmasarja at gmail.com (Mehma Sarja) Date: Tue, 18 Feb 2020 23:25:04 -0800 Subject: [moin-user] Up dog replaces python simplehttpserver Message-ID: <6A0C78FE-F614-4E96-BAB5-E829D0204C6F@gmail.com> ?Hi, Has anyone replaced moinmoin?s simplehttpserver with up dog - python 3?s replacement server? Yudhvir Singh Sidhu ??????? ???? ????? Cell 408 915 9709 From renato.pontefice at gmail.com Thu Feb 20 12:41:51 2020 From: renato.pontefice at gmail.com (Renato Pontefice) Date: Thu, 20 Feb 2020 18:41:51 +0100 Subject: [moin-user] still:How to use rst on moinmoin 1.9 Message-ID: Hi, I'm still wondering ho can I use ResTructuredTxt in moinmoin Do I have to configure some variable on wikiconfig? How can I be sure that moinmoin are connect with DoocBook? Thank you Renato From crosseyedpenguin at yahoo.com Thu Feb 20 15:54:03 2020 From: crosseyedpenguin at yahoo.com (Roger Haase) Date: Thu, 20 Feb 2020 20:54:03 +0000 (UTC) Subject: [moin-user] still:How to use rst on moinmoin 1.9 In-Reply-To: References: Message-ID: <1752037735.5900840.1582232043089@mail.yahoo.com> Try using this as first line {{{#!rst add your document here }}} use above as last line On Thursday, February 20, 2020, 10:41:59 AM MST, Renato Pontefice wrote: Hi, I'm still wondering ho can I use ResTructuredTxt in moinmoin Do I have to configure some variable on wikiconfig? How can I be sure that moinmoin are connect with DoocBook? Thank you Renato _______________________________________________ moin-user mailing list moin-user at python.org https://mail.python.org/mailman/listinfo/moin-user -------------- next part -------------- An HTML attachment was scrubbed... URL: From renato.pontefice at gmail.com Mon Feb 24 07:18:26 2020 From: renato.pontefice at gmail.com (Renato Pontefice) Date: Mon, 24 Feb 2020 13:18:26 +0100 Subject: [moin-user] how transfer moin data to sphinx-doc Message-ID: Hi. Using Moinmoin 1.9.10 I've created text in restructuredtext. Now I would transfer the page created to Sphinx-doc. Is it possible? Where are the file with rst (or whatever extensions) with the content? in data/ folder? TIA Renato -------------- next part -------------- An HTML attachment was scrubbed... URL: