https://gerrit.wikimedia.org/r/80238
---
** [bugs:#1639] generate_family_file.py breaks on **
**Status:** open
**Created:** Tue Jul 02, 2013 09:18 PM UTC by Merlijn S. van Deen
**Last Updated:** Tue Jul 02, 2013 09:18 PM UTC
**Owner:** nobody
Pywikipedia [svn+ssh] valhallasw@trunk/pywikipedia (r11710, 2013/07/02, 20:55:33, ok)
Python 2.7.3 (default, Aug 1 2012, 05:14:39)
[GCC 4.6.3]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
1) add the following line to user-config.py:
usernames['somewiki']['en'] = u'valhallasw'
2) run generate_family_file.py
Result:
-----------------------------------
Traceback (most recent call last):
File "generate_family_file.py", line 36, in <module>
import config
File "/home/valhallasw/src/pywikipedia/trunk/pywikipedia/config.py", line 606, in <module>
execfile(_filename)
File "./user-config.py", line 5, in <module>
usernames['somewiki']['en'] = u'valhallasw'
KeyError: 'somewiki'
Expected result:
-----------------------------------
Questions to generate a family file, which might be named 'somewiki' and thus make the user-config file correct.
---
Sent from sourceforge.net because Pywikipedia-bugs(a)lists.wikimedia.org is subscribed to https://sourceforge.net/p/pywikipediabot/bugs/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/pywikipediabot/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
https://gerrit.wikimedia.org/r/#/c/79977/
should solve this by suppressing the part "WARNING: A required package is missing, but externals can automatically install it. If you say Yes, externals will need administrator privileges, and you might be asked for the administrator password." for the second question.
The "WARNING: Required package missing: ['']" was also fixed since the ubuntu package is named 'python-beautifulsoup'.
---
** [bugs:#1655] unclear message for installing externals on ubuntu**
**Status:** open
**Created:** Mon Aug 19, 2013 09:05 PM UTC by Merlijn S. van Deen
**Last Updated:** Mon Aug 19, 2013 09:05 PM UTC
**Owner:** nobody
After git clone'ing pywikibot-compat, this is the message you get when running
python login.py
WARNING: Trying to install by use of "linux-ubuntu" package management system:
WARNING: Required package missing: ['']
WARNING: A required package is missing, but externals can automatically install it. If you say Yes, externals will need administrator privileges, and you might be asked for the administrator password.
WARNING: Give externals permission to try to install package? (y/N)
This question should be answered 'no' for people on shared hosting without sudo privileges
However, then this (very similar) prompt appears:
WARNING: Trying to install by download from source URL:
WARNING: Required package missing: BeautifulSoup.py
WARNING: A required package is missing, but externals can automatically install it. If you say Yes, externals will need administrator privileges, and you might be asked for the administrator password.
WARNING: Give externals permission to try to install package? (y/N)
which doesn't actually require admin privileges, and thus should be answered 'yes'.
I think the wording should be clearer on these questions.
---
Sent from sourceforge.net because Pywikipedia-bugs(a)lists.wikimedia.org is subscribed to https://sourceforge.net/p/pywikipediabot/bugs/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/pywikipediabot/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
---
** [bugs:#1655] unclear message for installing externals on ubuntu**
**Status:** open
**Created:** Mon Aug 19, 2013 09:05 PM UTC by Merlijn S. van Deen
**Last Updated:** Mon Aug 19, 2013 09:05 PM UTC
**Owner:** nobody
After git clone'ing pywikibot-compat, this is the message you get when running
python login.py
WARNING: Trying to install by use of "linux-ubuntu" package management system:
WARNING: Required package missing: ['']
WARNING: A required package is missing, but externals can automatically install it. If you say Yes, externals will need administrator privileges, and you might be asked for the administrator password.
WARNING: Give externals permission to try to install package? (y/N)
This question should be answered 'no' for people on shared hosting without sudo privileges
However, then this (very similar) prompt appears:
WARNING: Trying to install by download from source URL:
WARNING: Required package missing: BeautifulSoup.py
WARNING: A required package is missing, but externals can automatically install it. If you say Yes, externals will need administrator privileges, and you might be asked for the administrator password.
WARNING: Give externals permission to try to install package? (y/N)
which doesn't actually require admin privileges, and thus should be answered 'yes'.
I think the wording should be clearer on these questions.
---
Sent from sourceforge.net because Pywikipedia-bugs(a)lists.wikimedia.org is subscribed to https://sourceforge.net/p/pywikipediabot/bugs/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/pywikipediabot/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
- **status**: open --> closed-fixed
---
** [patches:#624] syntax error in compat/externals/__init__.py**
**Status:** closed-fixed
**Created:** Sun Aug 18, 2013 11:21 AM UTC by Bertrand Grondin
**Last Updated:** Sun Aug 18, 2013 11:22 AM UTC
**Owner:** nobody
Syntax error in line 213 in /compat/externals/__init_.py
We must write :
"globals _patch_permission" instead of "global _patch_permission"
---
Sent from sourceforge.net because Pywikipedia-bugs(a)lists.wikimedia.org is subscribed to https://sourceforge.net/p/pywikipediabot/patches/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/pywikipediabot/admin/patches/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
https://gerrit.wikimedia.org/r/#/c/79564/
---
** [patches:#624] syntax error in compat/externals/__init__.py**
**Status:** closed-fixed
**Created:** Sun Aug 18, 2013 11:21 AM UTC by Bertrand Grondin
**Last Updated:** Sun Aug 18, 2013 11:22 AM UTC
**Owner:** nobody
Syntax error in line 213 in /compat/externals/__init_.py
We must write :
"globals _patch_permission" instead of "global _patch_permission"
---
Sent from sourceforge.net because Pywikipedia-bugs(a)lists.wikimedia.org is subscribed to https://sourceforge.net/p/pywikipediabot/patches/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/pywikipediabot/admin/patches/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
- **status**: open --> open-fixed
---
** [bugs:#1646] interwiki.py CPU occupation too high (hogging)**
**Status:** open-fixed
**Created:** Wed Jul 24, 2013 02:20 PM UTC by André Malafaya Baptista
**Last Updated:** Sun Aug 18, 2013 06:03 AM UTC
**Owner:** nobody
Since some time ago (I think less than 2 months), running interwiki.py hogs one CPU after running for some time. As I have four CPUs, I get a constant 25% CPU occupation by python.exe. The console output gets also sluggish.
Example:
interwiki.py -lang:nl -family:wiktionary -auto -async -cleanup -pt:1 -start:Category:!
Pywikipedia trunk/pywikipedia/ (r11780, 2013/07/20, 11:39:29, ok)
Python 2.7.2 (default, Jun 12 2011, 14:24:46) [MSC v.1500 64 bit (AMD64)]
config-settings:
use_api = True
use_api_login = True
---
Sent from sourceforge.net because Pywikipedia-bugs(a)lists.wikimedia.org is subscribed to https://sourceforge.net/p/pywikipediabot/bugs/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/pywikipediabot/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
Fixed by valhallasw in r79811.
In html2unicode, new/duplicated ignore elements were being added on every call, thus compromising performance as the bot ran.
---
** [bugs:#1646] interwiki.py CPU occupation too high (hogging)**
**Status:** open-fixed
**Created:** Wed Jul 24, 2013 02:20 PM UTC by André Malafaya Baptista
**Last Updated:** Sun Aug 18, 2013 06:03 AM UTC
**Owner:** nobody
Since some time ago (I think less than 2 months), running interwiki.py hogs one CPU after running for some time. As I have four CPUs, I get a constant 25% CPU occupation by python.exe. The console output gets also sluggish.
Example:
interwiki.py -lang:nl -family:wiktionary -auto -async -cleanup -pt:1 -start:Category:!
Pywikipedia trunk/pywikipedia/ (r11780, 2013/07/20, 11:39:29, ok)
Python 2.7.2 (default, Jun 12 2011, 14:24:46) [MSC v.1500 64 bit (AMD64)]
config-settings:
use_api = True
use_api_login = True
---
Sent from sourceforge.net because Pywikipedia-bugs(a)lists.wikimedia.org is subscribed to https://sourceforge.net/p/pywikipediabot/bugs/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/pywikipediabot/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
---
** [bugs:#1654] Non-fatal error starting interwiki.py in Windows**
**Status:** open
**Created:** Mon Aug 19, 2013 11:05 AM UTC by André Malafaya Baptista
**Last Updated:** Mon Aug 19, 2013 11:05 AM UTC
**Owner:** nobody
It seems that some changes were made to version.py because of git. Under Windows at least, now git.exe seems to be required to be in the PATH.
But, even with git.exe in the PATH, I always get the following error on startup:
'%an' is not recognized as an internal or external command,
operable program or batch file.
It seems to be related to line 122 of version.py, which doesn't seem to work under Windows:
info = subprocess.Popen("git log --pretty=format:'%ad|%an|%h|%H|%d' --abbrev-commit --date=iso -1 | cat -",
shell=True,
stdout=subprocess.PIPE).stdout.read()
Another problem is that everytime I launch a script, a git.exe process runs and gets stuck. After some few instances, the interwiki.py scripts block and I have to start killing git's.
And, BTW, I don't always have access to the git repository when running scripts (due to some block rules here)
D:\Work\pywikipedia>version.py
'%an' is not recognized as an internal or external command,
operable program or batch file.
Pywikipedia wikipedia.py (r-1 (unknown), 976a310, 2013/08/19, 11:40:07, OUTDATED
)
Python 2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
---
Sent from sourceforge.net because Pywikipedia-bugs(a)lists.wikimedia.org is subscribed to https://sourceforge.net/p/pywikipediabot/bugs/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/pywikipediabot/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
oopps, it's the contrary :
"global _patch_permission" instead of "globals _patch_permission"
sorry.
---
** [patches:#624] syntax error in compat/externals/__init__.py**
**Status:** open
**Created:** Sun Aug 18, 2013 11:21 AM UTC by Bertrand Grondin
**Last Updated:** Sun Aug 18, 2013 11:21 AM UTC
**Owner:** nobody
Syntax error in line 213 in /compat/externals/__init_.py
We must write :
"globals _patch_permission" instead of "global _patch_permission"
---
Sent from sourceforge.net because Pywikipedia-bugs(a)lists.wikimedia.org is subscribed to https://sourceforge.net/p/pywikipediabot/patches/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/pywikipediabot/admin/patches/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
---
** [patches:#624] syntax error in compat/externals/__init__.py**
**Status:** open
**Created:** Sun Aug 18, 2013 11:21 AM UTC by Bertrand Grondin
**Last Updated:** Sun Aug 18, 2013 11:21 AM UTC
**Owner:** nobody
Syntax error in line 213 in /compat/externals/__init_.py
We must write :
"globals _patch_permission" instead of "global _patch_permission"
---
Sent from sourceforge.net because Pywikipedia-bugs(a)lists.wikimedia.org is subscribed to https://sourceforge.net/p/pywikipediabot/patches/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/pywikipediabot/admin/patches/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.