Page MenuHomePhabricator

Seppl2013 (Wolfgang Fahl)
User

Today

  • Clear sailing ahead.

Tomorrow

  • Clear sailing ahead.

Monday

  • Clear sailing ahead.

User Details

User Since
Dec 30 2014, 5:46 PM (316 w, 3 d)
Availability
Available
LDAP User
Unknown
MediaWiki User
Seppl2013 [ Global Accounts ]

Recent Activity

Wed, Jan 20

Seppl2013 added a comment to T261260: Strange secondary error "Class 'WebRequest' not found" in logs after errors like "extension.json is not a valid JSON file".

Happened e.g. today when trying to install extension HitCounters on MediaWiki 1.35.

Wed, Jan 20, 9:03 PM · MW-1.36-notes (1.36.0-wmf.20; 2020-12-01), MW-1.35-notes, MW-1.35-release, MediaWiki-General

Mon, Jan 18

Seppl2013 added a comment to T272206: Allow linking WikiSon and Forms for multiple object with different types on same page.

See https://cr.bitplan.com/index.php/Main_Page for the example data shown here.

Mon, Jan 18, 9:04 PM · MediaWiki-extensions-Page_Forms
Seppl2013 added a comment to T272206: Allow linking WikiSon and Forms for multiple object with different types on same page.

@Yaron_Koren - i'll certainly try the explanation and add more examples to make my point. As far as i understand the Form definition approach the only way to handle multiple instances is currently explained in https://www.mediawiki.org/wiki/Extension:Page_Forms/Defining_forms#Multiple-instance_templates. For this to work the context of these multiple instances need to be known in advanced. So if i have pages of type:

  • Open Source Project
  • Git Respository
  • Internal Project

...
and I'd love to use the "commit" section in all these i'd need to repeate the definition in the forms.

Mon, Jan 18, 9:03 PM · MediaWiki-extensions-Page_Forms
Seppl2013 added a comment to T272206: Allow linking WikiSon and Forms for multiple object with different types on same page.

Could partial forms be made working by putting the definition into a standalone context - e.g. defining a form page as partial and having the form definition be picked up automatically when a fitting macro/WikiSon notation is found?

Mon, Jan 18, 7:45 AM · MediaWiki-extensions-Page_Forms
Seppl2013 added a comment to T272206: Allow linking WikiSon and Forms for multiple object with different types on same page.

I have never tried https://www.mediawiki.org/wiki/Extension:Page_Forms/Defining_forms#Partial_forms - does this feature still work?

Mon, Jan 18, 7:43 AM · MediaWiki-extensions-Page_Forms
Seppl2013 added a comment to T272206: Allow linking WikiSon and Forms for multiple object with different types on same page.

Before getting rid of Page Forms all together I was thinking of we could have some improvements that would lead to a "workaround" for a start.

Mon, Jan 18, 6:55 AM · MediaWiki-extensions-Page_Forms

Sun, Jan 17

Seppl2013 added a comment to T272206: Allow linking WikiSon and Forms for multiple object with different types on same page.

Hi, @Yaron_Koren - thank you for looking into this.

Sun, Jan 17, 3:25 PM · MediaWiki-extensions-Page_Forms

Sat, Jan 16

Seppl2013 updated subscribers of T266935: Regression: Loginmanager does not make proper use of password parameter.

@Xqt - thanks for trying again. I still have some project based on pywikibot although I am trying to avoid it and use mwclient more these days due to this limited useability in intranet situations.

Sat, Jan 16, 4:39 PM · Regression, Pywikibot
Seppl2013 updated the task description for T272206: Allow linking WikiSon and Forms for multiple object with different types on same page.
Sat, Jan 16, 5:53 AM · MediaWiki-extensions-Page_Forms
Seppl2013 created T272206: Allow linking WikiSon and Forms for multiple object with different types on same page.
Sat, Jan 16, 5:53 AM · MediaWiki-extensions-Page_Forms

Tue, Jan 12

Seppl2013 added a comment to T271783: Document how to use MediaWiki 1.35 in security enforced server setup with path.

It's not clear for me how to open a "documentation" ticket from what https://www.mediawiki.org/wiki/How_to_report_a_bug has to offer. I searched for the keyword "documentation" in the page and couldn't find that keyword. What should i search for ? I never created a documentation ticket before and don't know what it looks like.

Tue, Jan 12, 10:43 AM · MediaWiki-Configuration, Documentation
Seppl2013 added a comment to T271783: Document how to use MediaWiki 1.35 in security enforced server setup with path.

I don't know whether this a documentation problem or a bug. It's clearly an unexpected change in behavior that makes the system unusable without any warning i'd know of e.g. in a migration guide. So there are two options:

  • fix the behavior
  • change the documentation
Tue, Jan 12, 10:41 AM · MediaWiki-Configuration, Documentation
Seppl2013 added a comment to T271783: Document how to use MediaWiki 1.35 in security enforced server setup with path.

IMHO it's a valid question and might be a bug if there is no proper documentation for answering the questions. I could't find the proper documentation that describe why the behavior changed and what the reason for this is.

Tue, Jan 12, 7:45 AM · MediaWiki-Configuration, Documentation
Seppl2013 added a comment to T271783: Document how to use MediaWiki 1.35 in security enforced server setup with path.

The workaround is

# make sure we don't use "pretty urls"
$wgUsePathInfo=false;
Tue, Jan 12, 7:20 AM · MediaWiki-Configuration, Documentation
Seppl2013 created T271783: Document how to use MediaWiki 1.35 in security enforced server setup with path.
Tue, Jan 12, 6:02 AM · MediaWiki-Configuration, Documentation

Dec 22 2020

Seppl2013 updated the task description for T270692: Mimetype check should be user rights dependent.
Dec 22 2020, 9:51 AM · MediaWiki-Uploading
Seppl2013 created T270692: Mimetype check should be user rights dependent.
Dec 22 2020, 9:50 AM · MediaWiki-Uploading

Dec 19 2020

Seppl2013 added a comment to T270474: Allow using pywikibot without user-config.py and PYWIKIBOT_NO_USER_CONFIG=1.

https://github.com/WolfgangFahl/py-3rdparty-mediawiki/issues/35 will have to wait for the release on pypi see https://pypi.org/project/pywikibot/

Dec 19 2020, 8:14 AM · Pywikibot

Dec 18 2020

Seppl2013 added a comment to T270474: Allow using pywikibot without user-config.py and PYWIKIBOT_NO_USER_CONFIG=1.

looks great. How do i get rid of the "family and mylang ar not set ..." messages?

Dec 18 2020, 10:15 AM · Pywikibot
Seppl2013 created T270474: Allow using pywikibot without user-config.py and PYWIKIBOT_NO_USER_CONFIG=1.
Dec 18 2020, 7:01 AM · Pywikibot

Dec 14 2020

Seppl2013 added a comment to T269998: Confusing error message after switching server configuration ($wgServer) between http and https (due to cookie handling).

Wouldn't this be a good opportunity to generally add a link to a FAQ Wiki per error-message? I feel that following a link per error-message gives a lot more options for discussing individual situations in which an error might appear, linking to related Phabricator tasks and so on.

Dec 14 2020, 8:53 AM · MediaWiki-Authentication-and-authorization

Dec 13 2020

Seppl2013 added a comment to T269998: Confusing error message after switching server configuration ($wgServer) between http and https (due to cookie handling).

It happens when I try to change the protocol for accessinga wiki. What I try is to change the apache settings:

<VirtualHost *:80>
  ServerName server.domain.com
  Redirect permanent / https://server.domain.com/
</VirtualHost>
<VirtualHost *:443>
  ....
  ServerName server.domain.com 
</VirtualHost>
Dec 13 2020, 3:28 PM · MediaWiki-Authentication-and-authorization

Dec 12 2020

Seppl2013 created T269998: Confusing error message after switching server configuration ($wgServer) between http and https (due to cookie handling).
Dec 12 2020, 3:09 PM · MediaWiki-Authentication-and-authorization

Dec 5 2020

Seppl2013 added a comment to T260330: RFC: PHP microservice for containerized shell execution.

For the extensions https://www.mediawiki.org/wiki/Extension:Diagrams and https://www.mediawiki.org/wiki/Extension:Piwo the approach discussed here might be very useful.

Dec 5 2020, 2:30 PM · Shellbox, TechCom-RFC (TechCom-RFC-Closed), Platform Team Workboards (Purple), MW-on-K8s, Patch-For-Review, serviceops, SRE

Nov 21 2020

Seppl2013 added a comment to T258860: LogicException: Process cache for 'en' should be set by now.

same on my main wiki - showed up after some 3 weeks of migration to 1.35 LTS - it is a showstopper! Why is this low priority if it makes the wiki completly unusable?

Nov 21 2020, 10:16 AM · MW-1.35-release, Discovery-Search, MediaWiki-Cache, affects-translatewiki.net

Nov 2 2020

Seppl2013 added a comment to T266952: Documentation missing for "You need read permission to use this module".

Unfortunately https://www.mediawiki.org/wiki/API:Login is inconsistent. E.g. the python example uses login as an example but the text says you shouldn't use it any more but use clientLogin instead. I could not find sufficient information on the cookie issue either.

Nov 2 2020, 8:12 AM · MediaWiki-Documentation, Documentation

Nov 1 2020

Seppl2013 added a comment to T266952: Documentation missing for "You need read permission to use this module".

E.g. how would a curl access with cookie work?

Nov 1 2020, 4:26 PM · MediaWiki-Documentation, Documentation
Seppl2013 added a comment to T266952: Documentation missing for "You need read permission to use this module".

Opening up the wiki for public read access:

Nov 1 2020, 7:40 AM · MediaWiki-Documentation, Documentation
Seppl2013 created T266952: Documentation missing for "You need read permission to use this module".
Nov 1 2020, 7:34 AM · MediaWiki-Documentation, Documentation
Seppl2013 added a comment to T266935: Regression: Loginmanager does not make proper use of password parameter.

One of the issues seems to be that I don't know how to get rid of the "You need read permission to use this module." messsage on MediaWiki1.35 so that things would at least work for my public wikis.

curl -s "http://test.bitplan.com/api.php?action=query&meta=siteinfo&siprop=general|namespaces|namespacealiases|statistics&format=json" | jq .
{
  "error": {
    "code": "readapidenied",
    "info": "You need read permission to use this module.",
    "*": "See http://test.bitplan.com/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at &lt;https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce&gt; for notice of API deprecations and breaking changes."
  }
}
Nov 1 2020, 7:24 AM · Regression, Pywikibot

Oct 31 2020

Seppl2013 added a comment to T266935: Regression: Loginmanager does not make proper use of password parameter.

If you try to debug the situation and click on "site" in the loginmanager a sequence of API call is initiated ... that makes it even harder to find out what is going on ...

Oct 31 2020, 7:07 PM · Regression, Pywikibot
Seppl2013 added a comment to T266935: Regression: Loginmanager does not make proper use of password parameter.

If checking the version is the issue please user the information from the family file (and trust it) instead of trying to find out via Mediawiki API doing an http request before being logged in ...

Oct 31 2020, 5:58 PM · Regression, Pywikibot
Seppl2013 created T266935: Regression: Loginmanager does not make proper use of password parameter.
Oct 31 2020, 5:08 PM · Regression, Pywikibot
Seppl2013 added a comment to T248471: login() with retry=True might delete correct password if unknown APIError occurs.

There is a

WARNING: API error readapidenied: You need read permission to use this module.

warning with no details on what the API called is. When debugging it reveals that a meta=siteinfo is tried and if that fails a login is performed. This doesn't make any sense if a proper user/password combination is given. Why try to use the API - how can this be switched off because of course you can't use the API if you are not logged in ...

Oct 31 2020, 4:59 PM · Pywikibot
Seppl2013 added a comment to T248471: login() with retry=True might delete correct password if unknown APIError occurs.

What is the proper procedure to tell pywikibot the password for login via API ? I am using

python
 # needs patch as outlined in https://phabricator.wikimedia.org/T248471
            #self.site.login(password=self.getPassword())
            lm = LoginManager(password=self.getPassword(), site=self.site, user=self.user)
            lm.login()

and i get a WARNING:

WARNING: Could not check user '...' exists on wiki:lang
Oct 31 2020, 4:49 PM · Pywikibot
Seppl2013 added a comment to T248471: login() with retry=True might delete correct password if unknown APIError occurs.

With pywikibot 5.0.0 i have to start all over again ... sigh ..

Oct 31 2020, 4:46 PM · Pywikibot

Oct 1 2020

Seppl2013 added a comment to T261260: Strange secondary error "Class 'WebRequest' not found" in logs after errors like "extension.json is not a valid JSON file".

The same secondary message might appear in other contexts. In my case it is:

Oct 1 2020, 3:15 AM · MW-1.36-notes (1.36.0-wmf.20; 2020-12-01), MW-1.35-notes, MW-1.35-release, MediaWiki-General

Sep 30 2020

Seppl2013 added a comment to T263969: Fatal error munging RDF org.openrdf.rio.RDFParseException: Expected '.', found 's' [line 595492] when trying to get local wikidata copy based on blazegraph running.

I can't see where the problem is.

Sep 30 2020, 4:58 AM · Wikidata-Query-Service, Wikidata
Seppl2013 added a comment to T263969: Fatal error munging RDF org.openrdf.rio.RDFParseException: Expected '.', found 's' [line 595492] when trying to get local wikidata copy based on blazegraph running.

I tried debugging the line 595492 mentioned in the error message. See my stackoverflow answer to How to get few lines from a .gz compressed file without uncompressing

Sep 30 2020, 4:58 AM · Wikidata-Query-Service, Wikidata

Sep 29 2020

Seppl2013 added a comment to T263969: Fatal error munging RDF org.openrdf.rio.RDFParseException: Expected '.', found 's' [line 595492] when trying to get local wikidata copy based on blazegraph running.

For me it's a showstopper. I'd love to work on https://github.com/somnathrakshit/geograpy3/issues/15 and currently I have the following options to run the SPARQL query for it

Sep 29 2020, 4:22 PM · Wikidata-Query-Service, Wikidata

Sep 28 2020

Seppl2013 created T263969: Fatal error munging RDF org.openrdf.rio.RDFParseException: Expected '.', found 's' [line 595492] when trying to get local wikidata copy based on blazegraph running.
Sep 28 2020, 7:01 AM · Wikidata-Query-Service, Wikidata
Seppl2013 added a comment to T178211: Using Munge script in standalone WDQS: Fatal error munging RDF: RDFParseException: Illegal language tag char: ':'.

I retried the download which took another 16h but the problem persists

Sep 28 2020, 6:58 AM · User-Smalyshev, Discovery-Wikidata-Query-Service-Sprint, Discovery, Wikidata-Query-Service, Wikidata

Sep 27 2020

Seppl2013 added a comment to T178211: Using Munge script in standalone WDQS: Fatal error munging RDF: RDFParseException: Illegal language tag char: ':'.

I am having a similar issue see http://wiki.bitplan.com/index.php/WikiData_Import_2020-09-11#Issue_2

Sep 27 2020, 5:57 AM · User-Smalyshev, Discovery-Wikidata-Query-Service-Sprint, Discovery, Wikidata-Query-Service, Wikidata

Sep 25 2020

Seppl2013 added a comment to T263855: mvn package fails for wikidata-query-rdf on Mac OS 10.13.6 High Sierra.

tried

git pull 
mvn package

today and problem persists

Sep 25 2020, 3:07 PM · Wikidata-Query-Service, Wikidata
Seppl2013 created T263855: mvn package fails for wikidata-query-rdf on Mac OS 10.13.6 High Sierra.
Sep 25 2020, 3:02 PM · Wikidata-Query-Service, Wikidata
Seppl2013 added a comment to T259427: Make "Error creating thumbnail: File missing" error message cover potential other reasons (such as incorrectly set $wg variables).

Still the message could be improved into "File missing or config error" and having a pointer to the FAQ and may be such a checking code or extension.

Sep 25 2020, 6:37 AM · MediaWiki-File-management

Sep 6 2020

Seppl2013 added a comment to T262114: Need Math extension for Mediawiki 1.33.4.

The issue here is the undecipherable error message. Since the invalid status of this task is only based on the version MW 1.33.4 that i was trying things out on is EOL. It's not clear whether the error message has been improved so that "normal" people would understand what the real problem is in more recent versions of MW. I tried out different git states yesterday and always go the same error message so that i assume there is a "real" issue behind this task. It's just that the rules within MediaWiki foundation are such that the followup will not happen immediately for this task as it's reported based on a MW 1.33.4 experience. So i think it's good to have this task for reference so that other users that might run into a similar situation can reference it. Even the hint for the workaround https://www.mediawiki.org/wiki/Extension:SimpleMathJax - was a bit hidden in the documentation.

Sep 6 2020, 5:20 AM · Math

Sep 5 2020

Seppl2013 closed T262114: Need Math extension for Mediawiki 1.33.4 as Resolved.
Sep 5 2020, 7:16 AM · Math
Seppl2013 added a comment to T262114: Need Math extension for Mediawiki 1.33.4.

According to https://www.mediawiki.org/wiki/Manual:Math the work-around is to install https://www.mediawiki.org/wiki/Extension:SimpleMathJax which i did successfully.

Sep 5 2020, 7:16 AM · Math
Seppl2013 added a comment to T262114: Need Math extension for Mediawiki 1.33.4.

I am not asking for a solution but a work-around. And it would be good if such situations could be avoided in the future by proper impact analysis which extensions break on API changes and not doing API changes with too much impact.

Sep 5 2020, 6:38 AM · Math
Seppl2013 updated the task description for T262114: Need Math extension for Mediawiki 1.33.4.
Sep 5 2020, 5:55 AM · Math
Seppl2013 updated the task description for T262114: Need Math extension for Mediawiki 1.33.4.
Sep 5 2020, 5:54 AM · Math
Seppl2013 created T262114: Need Math extension for Mediawiki 1.33.4.
Sep 5 2020, 5:54 AM · Math

Aug 20 2020

Seppl2013 added a comment to T229092: Investigate migrateActors script failing due to duplicate empty actor_name.

see https://phabricator.wikimedia.org/T224854
and work around

Aug 20 2020, 4:19 AM · Platform Engineering (Icebox), MediaWiki-Maintenance-system

Aug 3 2020

Seppl2013 added a comment to T259427: Make "Error creating thumbnail: File missing" error message cover potential other reasons (such as incorrectly set $wg variables).

Bawolff asked on project support desk:
How would mediawiki distinguish between the config being wrong and the file just happening to be missing?

Aug 3 2020, 12:09 PM · MediaWiki-File-management
Seppl2013 added a comment to T224854: maintenance/cleanupUsersWithNoId.php doesn't do anything.

work around:

delete from logging where log_user_text="";
Aug 3 2020, 11:44 AM · MediaWiki-Maintenance-system

Aug 2 2020

Seppl2013 added a comment to T259427: Make "Error creating thumbnail: File missing" error message cover potential other reasons (such as incorrectly set $wg variables).

Maybe this could be a step in the update.php file to check that there is a reasonable file configuration if lots of files are pointed to in the SQL file but do not properly resolve ..

Aug 2 2020, 1:52 PM · MediaWiki-File-management
Seppl2013 updated the task description for T259427: Make "Error creating thumbnail: File missing" error message cover potential other reasons (such as incorrectly set $wg variables).
Aug 2 2020, 12:18 PM · MediaWiki-File-management
Seppl2013 updated the task description for T259427: Make "Error creating thumbnail: File missing" error message cover potential other reasons (such as incorrectly set $wg variables).
Aug 2 2020, 12:18 PM · MediaWiki-File-management
Seppl2013 updated the task description for T259427: Make "Error creating thumbnail: File missing" error message cover potential other reasons (such as incorrectly set $wg variables).
Aug 2 2020, 12:17 PM · MediaWiki-File-management
Seppl2013 added a comment to T259427: Make "Error creating thumbnail: File missing" error message cover potential other reasons (such as incorrectly set $wg variables).

Is this a request to edit https://www.mediawiki.org/wiki/Manual:Errors_and_symptoms#Image_Thumbnails_not_working_and/or_appearing ? - yes thats's part of the issue and I added a section.

Aug 2 2020, 12:17 PM · MediaWiki-File-management
Seppl2013 added a comment to T259427: Make "Error creating thumbnail: File missing" error message cover potential other reasons (such as incorrectly set $wg variables).

The issue is in the confusing message "File missing" - it's not true that the file is missing. The configuration is wrong and the pointer to the directory of files is not configured correctly. For a single such message it would not be a problem but if in "browse files" every single image shows the same misleading message "File missing" than that is an issue which should be fixed to allow administrators to get informed about the problem by their users much more quickly and more detailed than is the case right now.

Aug 2 2020, 6:02 AM · MediaWiki-File-management
Seppl2013 created T259427: Make "Error creating thumbnail: File missing" error message cover potential other reasons (such as incorrectly set $wg variables).
Aug 2 2020, 6:01 AM · MediaWiki-File-management

Jul 28 2020

Seppl2013 added a comment to T224854: maintenance/cleanupUsersWithNoId.php doesn't do anything.
select count(*) from logging where log_user_text="";
+----------+
| count(*) |
+----------+
|      879 |
+----------+
1 row in set (0.001 sec)
Jul 28 2020, 5:16 PM · MediaWiki-Maintenance-system
Seppl2013 added a comment to T224854: maintenance/cleanupUsersWithNoId.php doesn't do anything.

same here ...

Jul 28 2020, 5:06 PM · MediaWiki-Maintenance-system
Seppl2013 added a comment to T229092: Investigate migrateActors script failing due to duplicate empty actor_name.
 select * from actor where actor_name='';
+----------+------------+------------+
| actor_id | actor_user | actor_name |
+----------+------------+------------+
|     3164 |       NULL |            |
+----------+------------+------------+
1 row in set (0.000 sec)
Jul 28 2020, 4:55 PM · Platform Engineering (Icebox), MediaWiki-Maintenance-system

Jul 7 2020

Seppl2013 added a comment to T171886: installing pywikibot with pip fails because the package isn't a git repository; setup.py is unable to find the version of pywikibot.

Please reopen this issue - marking it invalid since it's not reproducible in the Wikimedia Universe is not helpful for those having the problem in their own environment .

Jul 7 2020, 5:15 AM · Patch-For-Review, Pywikibot

Jul 6 2020

Seppl2013 added a comment to T171886: installing pywikibot with pip fails because the package isn't a git repository; setup.py is unable to find the version of pywikibot.

You trial was obviously on Windows and not Ubuntu 18.04 LTS

Jul 6 2020, 9:12 AM · Patch-For-Review, Pywikibot

Jul 5 2020

Seppl2013 added a comment to T171886: installing pywikibot with pip fails because the package isn't a git repository; setup.py is unable to find the version of pywikibot.

It was a bit frustrating.

Jul 5 2020, 12:07 PM · Patch-For-Review, Pywikibot

Jul 4 2020

Seppl2013 reopened T171886: installing pywikibot with pip fails because the package isn't a git repository; setup.py is unable to find the version of pywikibot as "Open".
Jul 4 2020, 5:23 PM · Patch-For-Review, Pywikibot
Seppl2013 added a comment to T171886: installing pywikibot with pip fails because the package isn't a git repository; setup.py is unable to find the version of pywikibot.

Seems to happen again e.g. pip3 install --no-cache-dir -I pywikibot==3.0.20200508

Jul 4 2020, 5:23 PM · Patch-For-Review, Pywikibot

Jun 5 2020

Seppl2013 added a comment to T254003: How to use pywikibot to get data from SMW ask API?.
from pywikibot.data.api import Request
Jun 5 2020, 1:13 PM · Pywikibot
Seppl2013 added a comment to T254003: How to use pywikibot to get data from SMW ask API?.

The https://pypi.org/project/py-3rdparty-mediawiki/ SMW support now works quite nicely to handle the SMW API. This task can IMHO be closed.

Jun 5 2020, 7:29 AM · Pywikibot

May 29 2020

Seppl2013 added a comment to T254003: How to use pywikibot to get data from SMW ask API?.

@Xqt - thanks for looking into this. I am currently adding this to https://github.com/WolfgangFahl/py-3rdparty-mediawiki/issues/1 with https://github.com/WolfgangFahl/py-3rdparty-mediawiki/blob/master/wikibot/smw.py where I am happily using a standard Request for the time being to simplify things. It seems that APIGenerator adds caching handling and some legacy stuff as well as continuation - for the time being i'd focus more on the core functionality of unpacking the printrequest structures delivered and being able to use cut&paste for ask queries. The implementation will be mostly along the lines of https://github.com/BITPlan/com.bitplan.simplegraph/blob/master/simplegraph-smw/src/main/java/com/bitplan/simplegraph/smw/SmwSystem.java where this was already succesfully implemented in Java.

May 29 2020, 4:42 PM · Pywikibot
Seppl2013 updated the task description for T254003: How to use pywikibot to get data from SMW ask API?.
May 29 2020, 12:47 PM · Pywikibot
Seppl2013 created T254003: How to use pywikibot to get data from SMW ask API?.
May 29 2020, 12:46 PM · Pywikibot

May 22 2020

Seppl2013 added a comment to T253378: pywikibot transitive dependency on crypto.

see https://pypi.org/project/py-3rdparty-mediawiki/0.0.2/

May 22 2020, 10:30 AM · Pywikibot
Seppl2013 added a comment to T253378: pywikibot transitive dependency on crypto.

Looks like this is a general pip problem with transitive dependencies. The pycrypto library is also explcitly mentioned in the requirements.txt file for py-3rdparty-mediawiki. I'll try to release that library on pypi to see if that fixes the issue.

May 22 2020, 10:19 AM · Pywikibot
Seppl2013 created T253378: pywikibot transitive dependency on crypto.
May 22 2020, 9:51 AM · Pywikibot
Seppl2013 added a comment to T248471: login() with retry=True might delete correct password if unknown APIError occurs.

I have tried today with pywikibot>=3.0.20200508 and on my local machine the tests run. I am having some trouble in the travis environment of a project I am using things now - I'll create a separate issue for that.

May 22 2020, 9:49 AM · Pywikibot

Apr 1 2020

Seppl2013 added a comment to T248471: login() with retry=True might delete correct password if unknown APIError occurs.

Could you please put a release on test.pypi.org so that I can install the master with pip ... or simply create a release candidate on normal pypi.org and put the link here.

Apr 1 2020, 10:05 AM · Pywikibot

Mar 31 2020

Seppl2013 added a comment to T248471: login() with retry=True might delete correct password if unknown APIError occurs.

Thx for the offer. I am fine as long as i have a workaround ... no need to hurry then.

Mar 31 2020, 3:13 PM · Pywikibot
Seppl2013 added a comment to T248471: login() with retry=True might delete correct password if unknown APIError occurs.

Again i had to do a patch to make sure the password is not forgot with two lines:

Mar 31 2020, 2:31 PM · Pywikibot

Mar 30 2020

Seppl2013 added a comment to T248471: login() with retry=True might delete correct password if unknown APIError occurs.

Sigh - this is like a catch 22 see how https://phabricator.wikimedia.org/T248673 got closed while i am stuck with MW 1.27.3. So neither my old wiki nor my new wiki is useable in the process of semi-automatic migration ... and in the meantime my "new wiki" which i have been trying to migrate to for a year now is not new any more ...

Mar 30 2020, 12:27 PM · Pywikibot
Seppl2013 added a comment to T248471: login() with retry=True might delete correct password if unknown APIError occurs.

I suspect:

Mar 30 2020, 10:42 AM · Pywikibot
Seppl2013 added a comment to T248471: login() with retry=True might delete correct password if unknown APIError occurs.

Thx. There is a followup problem. When trying to login to a Mediawiki 1.33.2 system I get:

WARNING: API error readapidenied: You need read permission to use this module.
WARNING: API error readapidenied: You need read permission to use this module.
ERROR: APIError: readapidenied: You need read permission to use this module.
[help: See http://.....bitplan.com/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at &lt;https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce&gt; for notice of API deprecations and breaking changes.]
WARNING: API error readapidenied: You need read permission to use this module.
WARNING: API error readapidenied: You need read permission to use this module.
WARNING: Could not check user ... exists on ...:en
Password for user ... on ...:en (no characters will be shown): Warning: Password input may be echoed.
Mar 30 2020, 10:36 AM · Pywikibot

Mar 28 2020

Seppl2013 added a comment to T248471: login() with retry=True might delete correct password if unknown APIError occurs.

Very good. I think this task can be closed now.

Mar 28 2020, 12:14 PM · Pywikibot

Mar 27 2020

Seppl2013 added a comment to T248471: login() with retry=True might delete correct password if unknown APIError occurs.

Thx the data.api LoginManager works. How do i get rid of the warning:

Mar 27 2020, 4:28 PM · Pywikibot
Seppl2013 added a comment to T248471: login() with retry=True might delete correct password if unknown APIError occurs.

https://test.pypi.org/project/py-3rdparty-mediawiki/0.0.2rc0/ has the latest code that works with the patch. https://github.com/WolfgangFahl/py-3rdparty-mediawiki/blob/master/wikibot/wikibot.py#L135 has your proposal but commented it since it breaks the tests. You'll need to prepare at least one ini file with your credentials if you want to test your self so you might be the first to create the issue mentioned in http://mediawiki-japi.bitplan.com/index.php/Py-3rdparty-mediawiki#Features

Mar 27 2020, 3:05 PM · Pywikibot
Seppl2013 added a comment to T248471: login() with retry=True might delete correct password if unknown APIError occurs.

I am trying to figure out how to create a patch file with https://cocoon.apache.org/2.0/howto/howto-patch.html - the unified diff there looks different than the rcsdiff patch above. What is needed for a proper patch file?

Mar 27 2020, 3:00 PM · Pywikibot
Seppl2013 added a comment to T248471: login() with retry=True might delete correct password if unknown APIError occurs.

The new patch seems to be:

Mar 27 2020, 2:57 PM · Pywikibot
Seppl2013 added a comment to T248471: login() with retry=True might delete correct password if unknown APIError occurs.

https://pypi.org/project/pywikibot/ shows a build error ...

Mar 27 2020, 2:37 PM · Pywikibot
Seppl2013 added a comment to T248471: login() with retry=True might delete correct password if unknown APIError occurs.

When i debug the code i end up in:

Mar 27 2020, 2:36 PM · Pywikibot
Seppl2013 added a comment to T248471: login() with retry=True might delete correct password if unknown APIError occurs.

It looks like site.py is gone now and code moved to site/__init__.py ... what is the motivation for this inorthodox coding style?

Mar 27 2020, 2:31 PM · Pywikibot
Seppl2013 added a comment to T248471: login() with retry=True might delete correct password if unknown APIError occurs.

now my software is broken again and I need to repatch manually since pip uninstall removed the RCS directory ...

Mar 27 2020, 2:25 PM · Pywikibot
Seppl2013 added a comment to T248471: login() with retry=True might delete correct password if unknown APIError occurs.

Tried it and it does not work as advertised. pywikbot.api does not seem to exist and for:

Mar 27 2020, 2:25 PM · Pywikibot
Seppl2013 added a comment to T248673: Nuke does not work or is documented poorly.

Indeed on 1.33.2 things seem to work as advertised.

Mar 27 2020, 2:15 PM · MediaWiki-extensions-Nuke
Seppl2013 added a comment to T248673: Nuke does not work or is documented poorly.

1.27 is the only version we can currently use. That is unsupported is very unfortunated but we can't migrate although we are trying hard. Too many breaking changes have been introduced in the last few months and we don not have the capacity to keep up with all these incompatible changes. Not being able to use the nuke extension does not help for the migration since we still have a lot of tests to do in which we generate pages and need to quickly remove them again.

Mar 27 2020, 2:12 PM · MediaWiki-extensions-Nuke
Seppl2013 added a comment to T248471: login() with retry=True might delete correct password if unknown APIError occurs.

How? I didn't see an example and proper doc for it and couldn't find a way to decipher the source code. Passing the password as the constructor suggests seems to be natural to me.

Mar 27 2020, 2:03 PM · Pywikibot
Seppl2013 added a comment to T248471: login() with retry=True might delete correct password if unknown APIError occurs.

From my point the proposed change is not a workaround. It's fine. The encryption in this case was motivated to be MediaWiki-Japi compatible which uses https://github.com/WolfgangFahl/py-3rdparty-mediawiki/blob/master/wikibot/crypt.py inspired by https://stackoverflow.com/questions/24168246/replicate-javas-pbewithmd5anddes-in-python-2-7 that's why it's important to be able to set the password via API and not from a configuration file. In fact https://test.pypi.org/project/py-3rdparty-mediawiki/0.0.2b0/ only uses

Mar 27 2020, 1:42 PM · Pywikibot