Xqt created this task. Xqt added subscribers: Xqt, valhallasw. Xqt added a project: pywikibot-compat. Restricted Application added subscribers: Aklapper, pywikipedia-bugs.
TASK DESCRIPTION With removing .py files from i18n Directory all scripts fails in compat:
``` C:\pwb\SVN\compat>replace.py -regex "((\d+?))" "[[\1]]" -page:user:xqt/Test Traceback (most recent call last): File "C:\pwb\SVN\compat\replace.py", line 969, in <module> main() File "C:\pwb\SVN\compat\replace.py", line 635, in main {'description': u''}) File "C:\pwb\SVN\compat\pywikibot\i18n.py", line 338, in twtranslate transdict = getattr(__import__("i18n", {}, {}, [package]), package).msg AttributeError: 'module' object has no attribute 'replace' ```
TASK DETAIL https://phabricator.wikimedia.org/T100223
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Xqt Cc: valhallasw, Xqt, Aklapper, Anshoe, pywikipedia-bugs
Xqt added a subscriber: jayvdb.
TASK DETAIL https://phabricator.wikimedia.org/T100223
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Xqt Cc: jayvdb, valhallasw, Xqt, Aklapper, Anshoe, pywikipedia-bugs
XZise added a subscriber: XZise. XZise added a comment.
In which branch is the i18n directory? Maybe it didn't switch to the 'compat' branch?
TASK DETAIL https://phabricator.wikimedia.org/T100223
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: XZise Cc: XZise, jayvdb, valhallasw, Xqt, Aklapper, Anshoe, pywikipedia-bugs
jayvdb added a comment.
So the problem is that SVN external for i18n does not automatically change to use the git branch 'compat'. We can update the .svnprops file, but that may not automatically work for TortoiseSVN.
TASK DETAIL https://phabricator.wikimedia.org/T100223
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: jayvdb Cc: XZise, jayvdb, valhallasw, Xqt, Aklapper, Anshoe, pywikipedia-bugs
jayvdb changed the title from "[BLOCKER] All scripts Fails in compat" to "[BLOCKER] All scripts fails in compat with SVN". jayvdb added a subscriber: Ladsgroup. jayvdb set Security to None.
TASK DETAIL https://phabricator.wikimedia.org/T100223
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: jayvdb Cc: Ladsgroup, XZise, jayvdb, valhallasw, Xqt, Aklapper, Anshoe, pywikipedia-bugs
Xqt added a comment.
i18n is an external for both, compat an core. You cannot update the Settings and need a new directory for that stuff. I guess it would be better to Keep the .py files until compat is finally closed.
TASK DETAIL https://phabricator.wikimedia.org/T100223
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Xqt Cc: Ladsgroup, XZise, jayvdb, valhallasw, Xqt, Aklapper, Anshoe, pywikipedia-bugs
jayvdb added a subscriber: Multichill. jayvdb added a comment.
Are there a lot of SVN users of compat?
TASK DETAIL https://phabricator.wikimedia.org/T100223
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: jayvdb Cc: Multichill, Ladsgroup, XZise, jayvdb, valhallasw, Xqt, Aklapper, Anshoe, pywikipedia-bugs
Matanya added a subscriber: Matanya. Matanya added a comment.
I am one of them until all the scripts i use are ported to core.
TASK DETAIL https://phabricator.wikimedia.org/T100223
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Matanya Cc: Matanya, Multichill, Ladsgroup, XZise, jayvdb, valhallasw, Xqt, Aklapper, Anshoe, pywikipedia-bugs
Ladsgroup added a comment.
@Matanya: Can you name them?
TASK DETAIL https://phabricator.wikimedia.org/T100223
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Ladsgroup Cc: Matanya, Multichill, Ladsgroup, XZise, jayvdb, valhallasw, Xqt, Aklapper, Anshoe, pywikipedia-bugs
Matanya added a subscriber: eranroz. Matanya added a comment.
e.g hewiki-ReplaceBot https://github.com/eranroz/hewiki-ReplaceBot by @eranroz
TASK DETAIL https://phabricator.wikimedia.org/T100223
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Matanya Cc: eranroz, Matanya, Multichill, Ladsgroup, XZise, jayvdb, valhallasw, Xqt, Aklapper, Anshoe, pywikipedia-bugs
JAnD added a subscriber: JAnD. JAnD added a comment.
I am user of compat (and SVN) for interwiki because of https://phabricator.wikimedia.org/T99365#1293286
TASK DETAIL https://phabricator.wikimedia.org/T100223
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: JAnD Cc: JAnD, eranroz, Matanya, Multichill, Ladsgroup, XZise, jayvdb, valhallasw, Xqt, Aklapper, Anshoe, pywikipedia-bugs
Ladsgroup added a comment.
There are two different things: One is using compat and the other one is using SVN. Using compat for doing some tasks is reasonable while using SVN is not.
TASK DETAIL https://phabricator.wikimedia.org/T100223
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Ladsgroup Cc: JAnD, eranroz, Matanya, Multichill, Ladsgroup, XZise, jayvdb, valhallasw, Xqt, Aklapper, Anshoe, pywikipedia-bugs
JAnD added a comment.
Using git was over my skills on windows (or over skills of my windows)
TASK DETAIL https://phabricator.wikimedia.org/T100223
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: JAnD Cc: JAnD, eranroz, Matanya, Multichill, Ladsgroup, XZise, jayvdb, valhallasw, Xqt, Aklapper, Anshoe, pywikipedia-bugs
Xqt added a comment.
Ladsgroup, I disagree. Using svn is one of the proposed ways using the framework. And maybe for windows user it is the easiest way. And for my experiences it is the safest, clearest and best way if having local changes and running the not.
Anyway that patch was able to remove i18n files for git too which blocked all scripts except privat scripts who doesn't use translation.
And last, which is the disadvantage of keeping those files for core in that place?
TASK DETAIL https://phabricator.wikimedia.org/T100223
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Xqt Cc: JAnD, eranroz, Matanya, Multichill, Ladsgroup, XZise, jayvdb, valhallasw, Xqt, Aklapper, Anshoe, pywikipedia-bugs
Xqt closed this task as "Resolved". Xqt claimed this task.
TASK DETAIL https://phabricator.wikimedia.org/T100223
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Xqt Cc: JAnD, eranroz, Matanya, Multichill, Ladsgroup, XZise, jayvdb, valhallasw, Xqt, Aklapper, Anshoe, pywikipedia-bugs
Xqt added a comment.
And btw I am running three or four private scripts 24/7 based on compat an few compat framework scripts when needed as long as they are brocken in core. The last I've found was checkinages.py, the next I am working on is fixes-redirect.py which uses imported compat methods. And there are some other features on other scripts which are not yet ported. On the other hand I propose using core now and all of my newly written script uses the new framework with all of its advantages and disadvantages.
TASK DETAIL https://phabricator.wikimedia.org/T100223
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Xqt Cc: JAnD, eranroz, Matanya, Multichill, Ladsgroup, XZise, jayvdb, valhallasw, Xqt, Aklapper, Anshoe, pywikipedia-bugs
Ladsgroup added a comment.
Use nightly
TASK DETAIL https://phabricator.wikimedia.org/T100223
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Xqt, Ladsgroup Cc: JAnD, eranroz, Matanya, Multichill, Ladsgroup, XZise, jayvdb, valhallasw, Xqt, Aklapper, Anshoe, pywikipedia-bugs
Xqt added a comment.
@Ladsgroup, serious?
TASK DETAIL https://phabricator.wikimedia.org/T100223
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Xqt Cc: JAnD, eranroz, Matanya, Multichill, Ladsgroup, XZise, jayvdb, valhallasw, Xqt, Aklapper, Anshoe, pywikipedia-bugs
pywikipedia-bugs@lists.wikimedia.org