Dear Pywikibot developers,
I am a Pywikibot user interested in creating a Conda package for Pywikibot.
With your permission and guidance, I would like to contribute to the
Pywikibot Conda package effort.
A Conda package for Pywikibot would provide several advantages over the
existing pip package. Conda offers better management of dependencies,
allowing for isolated environments and easy installation. It caters to
users who prefer Conda as their package manager and facilitates integration
with Conda-based workflows and tools.
I kindly request your permission to proceed with creating the Conda package
and would greatly appreciate your guidance throughout the process. Once
complete, I will share the package link for your review and feedback.
Thank you for considering my request. I look forward to your response.
Mahfuza
LinkedIn <https://www.linkedin.com/in/mhmohona/> | GIthub
<https://github.com/mhmohona> | Phabricator
<https://phabricator.wikimedia.org/p/Mhmohona/>
The past few days, I've worked on T336630 and T336624, both of which describe failures I was seeing which other people weren't. In both cases, it turned out to be caused by something in my user-config.py. Many of these tests also rely on external resources (i.e. live testing against testwiki or metawiki). I come from a shop where our test environment was hermetic. That eliminated this kind of flakiness due to environmental differences. It's a great way to work, but I recognize that's not what we've got here, and not easy to get to that point.
Given all that, any suggestions on how I should set up a dev environment on my local machine to minimize this kind of problem in the future?
Also, once I figured out what was going on, I closed T336630 as "declined". Was that the right state for "I'm not going to do any more work on this because it turned out to be a problem with the test environment". Should I have used "invalid"? Something else?
Dear Hiring Manager,
I am writing to express my keen interest in the position you have
advertised for gaining real-time experience in Python.
I have experience working with Python on personal projects, which has
allowed me to gain a solid foundation in the language. I am confident in my
ability to quickly learn and adapt to new technologies and work
environments. I am a fast learner and I believe my knowledge of Python will
enable me to quickly integrate into your team and contribute to the ongoing
pywikibot project.
I would greatly appreciate the opportunity to gain real-time experience in
Python and work alongside experienced professionals in the field. Thank you
for your consideration, and I look forward to hearing from you soon.
Sincerely,
AlienTasks
Hi,
I don't think this is a bug, but despite the documentation, I can't find a solution to my problems…
=========
Problem 1
I'm trying to instantiate a `Page` based on its id, but I can't seem to find something that does… The closest to it seems to be "page_from_repository('Q'+pageId)", but I get
"pywikibot.exceptions.UnknownExtensionError: Wikibase is not implemented for [mywikifamily:fr]."
From there on, I don't know what to do.
=========
=========
Problem 2
I'm using a personal wiki, self hosted, where read is for registered users only :
> #Gestion des langues
> $wgPageLanguageUseDB = true ;
> $wgGroupPermissions['sysop']['pagelang'] = true;
>
> # The following permissions were set based on your choice in the installer
> $wgGroupPermissions['*']['edit'] = false; //pour formations = true
> $wgGroupPermissions['*']['read'] = false; //pour formations = true
> # Prevent new user registrations except by sysops
> $wgGroupPermissions['*']['createaccount'] = false;
When I try to connect (I have created a bot for myself, configured my wiki family, my user-config and my user-password). The system refuses :
"pywikibot.exceptions.NoUsernameError: Username '[blabla@blablaBot]' does not have read permissions on [mywikifamily:fr]."
Then, if I comment my access rights, everything works fine. Later on, if I uncomment my access rights, it still works fine. How could I configure my rights without resorting to that strange/dangerous workaround? I have spent hours on that and have not found a solution
=========
Sorry about those personal problems, which are not bugs, and which could be documented. But despite hours of searching, I haven't found out where they would be documented… Thanks to whoever takes the time to read this (let alone, reply…)
I've checked out /pywikibot/core.git. When I run the tests, I get a number of failures:
FAILED tests/http_tests.py::TestHttpStatus::test_follow_redirects - AssertionError: '//en.wikipedia.org/wiki/Main_Page' not found in 'https://en.wikipedia.org/wiki/Main%20Page'
FAILED tests/make_dist_tests.py::TestMakeDist::test_handle_args - AssertionError: '/Users/roy/dev/pywikibot/pywikibot-git/tests/make_dist_tests.py' != '/Users/roy/dev/pywikibot/venv/bin/pytest'
FAILED tests/make_dist_tests.py::TestMakeDist::test_handle_args_empty - AssertionError: '/Users/roy/dev/pywikibot/pywikibot-git/tests/make_dist_tests.py' != '/Users/roy/dev/pywikibot/venv/bin/pytest'
FAILED tests/page_tests.py::TestShortLink::test_create_short_link - pywikibot.exceptions.NoUsernameError: ERROR: username for meta:meta is undefined.
FAILED tests/script_tests.py::TestScriptSimulate::test_category - AssertionError: 'Traceback (most recent call last)' unexpectedly found in 'ERROR: An error occurred for uri https://en.wikipedia.org/w/api.php\nERROR: Traceback (most recent call last...
FAILED tests/script_tests.py::TestScriptSimulate::test_category_redirect - AssertionError: 'Traceback (most recent call last)' unexpectedly found in 'Checking hard-redirect category pages.\nERROR: An error occurred for uri https://en.wikipedia.org/w/api.php\...
FAILED tests/site_detect_tests.py::MediaWikiSiteTestCase::test_proofreadwiki - pywikibot.exceptions.ClientError: (403) Request forbidden -- authorization will not help
I'm trying to get up to speed on the pywikibot project culture. How many of these are known issues? Are they being worked on? Should I work on them?
I took a look in more detail at the first one (TestHttpStatus::test_follow_redirects). I'm not sure what this test is trying to do. It depends on how the requests library processes redirects and/or how en.wikipedia.org <http://en.wikipedia.org/> responds to escaped spaces in URLs, neither of which seem like anything that has to do with the pywikibot codebase, so I don't understand what value this test is adding.