Hi, I want to contribute to pywikibot, so someone please help to setup environment locally so that i can fix bug.
-- Kumari Shalini
Hello, Do you mean virtualenv? There is a documentation about how to use pywikibot in virtualenv in wikimedia labs (you can easily customize it for your own device) https://wikitech.wikimedia.org/wiki/User:Legoktm/pywikibot_on_tools_lab
Best
On Fri, Oct 3, 2014 at 1:22 PM, Kumari Shalini shaliniroy012@gmail.com wrote:
Hi, I want to contribute to pywikibot, so someone please help to setup environment locally so that i can fix bug.
-- Kumari Shalini
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
Hi, I successfully setup environment locally but when i run python login.py it doesn't ask for any password ao please help me out.
-- Kumari Shalini
What did you exactly mean by saying 'setup'? did you made user-config file?
On Sun, Oct 5, 2014 at 6:40 PM, Kumari Shalini shaliniroy012@gmail.com wrote:
Hi, I successfully setup environment locally but when i run python login.py it doesn't ask for any password ao please help me out.
-- Kumari Shalini
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
Hi, Yes, i made user-config.py file. Then after i activate virtualenv and run "python setup.py install" to install all dependencies then i go to pywikibot directory and then run "python login.py", so here password should be asked but it doesnot ask for any password and nothing happend.
-- Kumari Shalini
You should run python pwb.py scriptname instead of running it directly so you should run "python pwb.py login" in base directory
Hi, I tried to login by running the command "python pwb.py login" but it throw an error. I tried to solve but can't able to solve this error. Below i had given fpaste link of error please see the error and help me.
link:- http://ur1.ca/ib4na
-- Kumari Shalini
As the message tells you, you don't have an account setup for mediawiki:mediawiki.
Further information about the user-config.py in which this needs to be setup: http://mediawiki.org/wiki/Manual:Pywikibot/user-config.py On 7 Oct 2014 17:13, "Kumari Shalini" shaliniroy012@gmail.com wrote:
Hi, I tried to login by running the command "python pwb.py login" but it throw an error. I tried to solve but can't able to solve this error. Below i had given fpaste link of error please see the error and help me.
link:- http://ur1.ca/ib4na
-- Kumari Shalini
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
As the message tells you, you don't have an account setup for mediawiki:mediawiki.
Further information about the user-config.py in which this needs to be setup: http://mediawiki.org/wiki/Manual:Pywikibot/user-config.py On 7 Oct 2014 17:13, "Kumari Shalini" shaliniroy012@gmail.com wrote:
Hi, I tried to login by running the command "python pwb.py login" but it throw an error. I tried to solve but can't able to solve this error. Below i had given fpaste link of error please see the error and help me.
link:- http://ur1.ca/ib4na
-- Kumari Shalini
I have setup my user-config.py file and contain all the information but it is throwing same error.
--Kumari Shalini
And the user-config.py is in the same directory as the pwb.py file? Can you maybe upload your user-config.py (but replace anything which you don't want to be in public). On 9 Oct 2014 19:06, "Kumari Shalini" shaliniroy012@gmail.com wrote:
As the message tells you, you don't have an account setup for mediawiki:mediawiki.
Further information about the user-config.py in which this needs to be setup: http://mediawiki.org/wiki/Manual:Pywikibot/user-config.py On 7 Oct 2014 17:13, "Kumari Shalini" shaliniroy012@gmail.com wrote:
Hi, I tried to login by running the command "python pwb.py login" but it throw an error. I tried to solve but can't able to solve this error. Below i had given fpaste link of error please see the error and help me.
link:- http://ur1.ca/ib4na
-- Kumari Shalini
I have setup my user-config.py file and contain all the information but it is throwing same error.
--Kumari Shalini
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
pwb.py file and user.py file is in the same directory. And user-config.py file is in the attachment and i didnot made any changes in the file.
-- Kumari Shalini
your user-config is: # -*- coding: utf-8 -*- family = 'mediawiki' mylang = 'en' usernames['mediawiki']['en'] = u'shalini' but it should be: # -*- coding: utf-8 -*- family = 'mediawiki' mylang = 'mediawiki' usernames['mediawiki']['mediawiki'] = u'shalini'
Best
On Thu, Oct 9, 2014 at 10:15 PM, Kumari Shalini shaliniroy012@gmail.com wrote:
pwb.py file and user.py file is in the same directory. And user-config.py file is in the attachment and i didnot made any changes in the file.
-- Kumari Shalini
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
Hi, I successfully logged in by making changes as you told and the output is in the following link.
link:- http://ur1.ca/ibqil
Now i want work on any bug but before solving bug i want to understand pywikibot clearly like what it do, how it works, so please give me link of good documentation on pywikibot, and guide me further to proceed. I am giving the link which i have already read.
https://www.mediawiki.org/wiki/Manual:Pywikibot/Development_guidelines https://wikitech.wikimedia.org/wiki/User:Legoktm/pywikibot_on_tools_lab
-- Kumari Shalini
I suggest you to start running some scripts and get yourself used to pywikibot system. This is the list of related documentations:
- Basic use https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Pywikibot/Basic_use - Scripts https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Pywikibot/Scripts - Create your own script https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Pywikibot/Create_your_own_script - Wikidata https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Pywikibot/Wikidata
Best
On Fri, Oct 10, 2014 at 10:10 AM, Kumari Shalini shaliniroy012@gmail.com wrote:
Hi, I successfully logged in by making changes as you told and the output is in the following link.
link:- http://ur1.ca/ibqil
Now i want work on any bug but before solving bug i want to understand pywikibot clearly like what it do, how it works, so please give me link of good documentation on pywikibot, and guide me further to proceed. I am giving the link which i have already read.
https://www.mediawiki.org/wiki/Manual:Pywikibot/Development_guidelines https://wikitech.wikimedia.org/wiki/User:Legoktm/pywikibot_on_tools_lab
-- Kumari Shalini
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
Hi, I read all the links which you suggest to get familiar with pywikibot. And i am trying example no. 4 given in [1] but there i got an error. The error is http://ur1.ca/idclj
[1] https://www.wikidata.org/wiki/Wikidata:Creating_a_bot
As the error says to add a line in user-config.py file and so i added the line but after that it is giving the same error, so please guide me what to do next.
-- Kumari Shalini
Hi there, I guess you are editing the wrong config file. See https://github.com/wikimedia/pywikibot-core/blob/dcd4aec9cf134f53ea23b509146... to find out about the locations that the script looks into. (Give the fourth option a try)
On Tue, Oct 14, 2014 at 9:58 PM, Kumari Shalini shaliniroy012@gmail.com wrote:
Hi, I read all the links which you suggest to get familiar with pywikibot. And i am trying example no. 4 given in [1] but there i got an error. The error is http://ur1.ca/idclj
[1] https://www.wikidata.org/wiki/Wikidata:Creating_a_bot
As the error says to add a line in user-config.py file and so i added the line but after that it is giving the same error, so please guide me what to do next.
-- Kumari Shalini
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
Hi, I saw that file but i am not understanding where to make changes in config2.py file.
Hi there, I guess you are editing the wrong config file. See https://github.com/wikimedia/pywikibot-core/blob/dcd4aec9cf134f53ea23b509146... to find out about the locations that the script looks into. (Give the fourth option a try)
On Tue, Oct 14, 2014 at 9:58 PM, Kumari Shalini shaliniroy012@gmail.com wrote:
Hi, I read all the links which you suggest to get familiar with pywikibot. And i am trying example no. 4 given in [1] but there i got an error. The error is http://ur1.ca/idclj
[1] https://www.wikidata.org/wiki/Wikidata:Creating_a_bot
As the error says to add a line in user-config.py file and so i added the line but after that it is giving the same error, so please guide me what to do next.
-- Kumari Shalini
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
-- Kumari Shalini
If you can be online in #pywikibot channel (freenode) and you see my nick (Amir1) ping me to talk to you and help you.
On Wed, Oct 15, 2014 at 12:25 PM, Kumari Shalini shaliniroy012@gmail.com wrote:
Hi, I saw that file but i am not understanding where to make changes in config2.py file.
Hi there, I guess you are editing the wrong config file. See
https://github.com/wikimedia/pywikibot-core/blob/dcd4aec9cf134f53ea23b509146...
to find out about the locations that the script looks into. (Give the fourth option a try)
On Tue, Oct 14, 2014 at 9:58 PM, Kumari Shalini <shaliniroy012@gmail.com
wrote:
Hi, I read all the links which you suggest to get familiar with pywikibot. And i am trying example no. 4 given in [1] but there i got an error. The error is http://ur1.ca/idclj
[1] https://www.wikidata.org/wiki/Wikidata:Creating_a_bot
As the error says to add a line in user-config.py file and so i added the line but after that it is giving the same error, so please guide me what to do next.
-- Kumari Shalini
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
-- Kumari Shalini
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
@Amir1 i am always online on irc but never used to ask question there, now i ask question my irc nick is "shiminsh". Thanks for your reply.
If you can be online in #pywikibot channel (freenode) and you see my nick (Amir1) ping me to talk to you and help you.
On Wed, Oct 15, 2014 at 12:25 PM, Kumari Shalini shaliniroy012@gmail.com wrote:
Hi, I saw that file but i am not understanding where to make changes in config2.py file.
Hi there, I guess you are editing the wrong config file. See
https://github.com/wikimedia/pywikibot-core/blob/dcd4aec9cf134f53ea23b509146... to find out about the locations that the script looks into. (Give the fourth option a try)
On Tue, Oct 14, 2014 at 9:58 PM, Kumari Shalini <shaliniroy012@gmail.com
wrote:
Hi, I read all the links which you suggest to get familiar with pywikibot. And i am trying example no. 4 given in [1] but there i got an error. The error is http://ur1.ca/idclj
[1] https://www.wikidata.org/wiki/Wikidata:Creating_a_bot
As the error says to add a line in user-config.py file and so i added the line but after that it is giving the same error, so please guide me what to do next.
-- Kumari Shalini
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
-- Kumari Shalini
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
-- Amir
-- Kumari Shalini