How to match Scribunto version with Wikibase container version? - mediawiki-extensions

I am running a Wikibase using the docker images explained here. However, after install, I would like to use the SPARQL2 template used in Wikidata, which I try to migrate using Special:Export (on Wikidata) and Special:Import (on local wikibase). This seems to work, but the import chokes on the Scribuntu mediawiki extension missing. After following the install instructions, I get the following message.
Fatal error: Uncaught Exception: Scribunto is not compatible with the current MediaWiki core (version 1.30.0), it requires: >=1.31.0. in /var/www/html/includes/registration/ExtensionRegistry.php:261 Stack trace: #0 /var/www/html/includes/registration/ExtensionRegistry.php(148): ExtensionRegistry->readFromQueue(Array) #1 /var/www/html/includes/Setup.php(40): ExtensionRegistry->loadFromQueue() #2 /var/www/html/includes/WebStart.php(114): require_once('/var/www/html/i...') #3 /var/www/html/index.php(40): require('/var/www/html/i...') #4 {main} thrown in /var/www/html/includes/registration/ExtensionRegistry.php on line 261
How do upgrade from version 1.30 to version 1.31 or higher? Can this be done from with in the running docker image?

You need to download a version of Scribunto that matches the version of Mediawiki / Wikibase that you are running.
The current latest tags of the Wikibase docker image are for Mediawiki 1.30 as can be seen at https://hub.docker.com/r/wikibase/wikibase/tags/
You must have downloaded either master or 1.31 of Scribunto.
To get 1.30 you can either:
Use the git branch REL1_30
https://github.com/wikimedia/mediawiki-extensions-Scribunto/tree/REL1_30
Select the 1.30 version from the Extension Distributor https://www.mediawiki.org/wiki/Special:ExtensionDistributor/Scribunto

Related

Upgrade to TYPO3 9.5, getting Symfony RuntimeException... Command controller class "TYPO3\CMS\Lang\Command\LanguageCommandController" does not exist

I'm upgrading from TYPO3 8.7 to TYPO3 9.5 and am getting the following error. I don't see anywhere in my site extension that that controller is used and don't know what do to. This error is preventing me from using any typo3cms commands. Looked for answers on the Slack channel and else where but haven't found answers yet and am stuck.
Deleted all cache via the TYPO3 Install tool GUI
Manually deleted and rebuilt vendor and typo3temp directories.
[ Symfony\Component\Console\Exception\RuntimeException ]
Command controller class "TYPO3\CMS\Lang\Command\LanguageCommandController" does not exist.
Exception code: 1520200175
Exception trace:
#0 ()
vendor/helhum/typo3-console/Classes/Console/Mvc/Cli/CommandConfiguration.php:102
#1 Helhum\Typo3Console\Mvc\Cli\CommandConfiguration::extractCommandDefinitionsFromControllers()
vendor/helhum/typo3-console/Classes/Console/Mvc/Cli/CommandConfiguration.php:94
#2 Helhum\Typo3Console\Mvc\Cli\CommandConfiguration::unifyCommandConfiguration()
vendor/helhum/typo3-console/Classes/Console/Mvc/Cli/CommandConfiguration.php:149
#3 Helhum\Typo3Console\Mvc\Cli\CommandConfiguration->addCommandControllerCommands()
vendor/helhum/typo3-console/Classes/Console/Mvc/Cli/CommandCollection.php:141
#4 Helhum\Typo3Console\Mvc\Cli\CommandCollection->addCommandControllerCommands()
vendor/helhum/typo3-console/Classes/Console/Core/Kernel.php:138
#5 Helhum\Typo3Console\Core\Kernel->handle()
vendor/helhum/typo3-console/Scripts/typo3-console.php:30
#6 {closure}()
vendor/helhum/typo3-console/Scripts/typo3-console.php:32
#7 require()
vendor/helhum/typo3-console/typo3cms:3
Keep in mind, removed packages are also in your sysext-folder.
In your case, EXT:lang has been removed.
In my case, it has been relicts of typo3/cms while switching to a subtree-split installation of TYPO3.
Manually cleaning up your web-dir (and root-dir if used) by deleting your typo3/-folder will help.

Issue running airflow on Mac M1: error in Flask-OpenID setup command: use_2to3 is invalid

Having an issue running airflow on my M1 Mac. Keeps erroring out with error in Flask-OpenID setup command: use_2to3 is invalid. I have setuptools < 58 and still having issues.
ERROR: Could not find a version that satisfies the requirement flask-openid==1.2.5 (from versions: 0.9, 0.9.1, 1.0, 1.0.1, 1.1, 1.1.1, 1.2, 1.2.1, 1.2.2, 1.2.3, 1.2.4, 1.2.5, 1.3.0)
ERROR: No matching distribution found for flask-openid==1.2.5
Yes. It's been fixed in flask_openid 1.2.6 (It's not a problem with Airflow but with FlaskOpenID).
Looks like for some reason your setuptools is not what you think it is. See:
https://github.com/pallets-eco/flask-openid/issues/59
You have not explained a crucial things - how you are installing airflow, neither which version of Airflow you try to install - which does not help in trying to help you unfortunately, so I have to make some guesses. Here is what you can do if you cannot - for any reason - downgrade to setuptools < 0.58.
If you are using Airlfow 2 and using constraints (as you should - this is the only supported way https://airflow.apache.org/docs/apache-airflow/stable/installation/installing-from-pypi.html) for some older version of Airflow, then possibly flask-openid is 1.2.5 in those old constraint versions. Please check it and if you REALLY want to stay with an older version, then you can download the constraint file locally, modify flask-openid version to 1.2.6 and point to the file instead of the github URL as you should do normally (If you don't use constraints - start using them immediately).
However, better option than installing an old version of Airflow, will be to update to the latest version of Airflow (currently 2.2.2 but we are about to start voting on 2.2.3), where this problem is for sure fixed (also in few other versions). Airflow folows SemVer so you should be generally safe to migrate to 2.2.2 if you've used an earlier version of Airflow 2.
If you are trying to install Airflow 1.10.* - then don't do it. Move Airflow 2 immediately. Airflow 1.10 has reached end of life in June 2021 and it's almost half a year as it did not receive any fixes - it won't receive any fixes for the Flask OpenID problem, so you are pretty much on your own here.
Also you make yourself vulnerable to unpatched security issues (Airlfow 1.10 stopped receiving also critical security fixes as of June 2021).

How can I get around this pycparser installation error using poetry?

I'm using the latest version of poetry (1.1.10) and while trying to update my lock file, I ran into an error while attempting to install pycparser==2.20:
Writing lock file
Package operations: 65 installs, 0 updates, 0 removals
• Installing pycparser (2.20)
ValueError
File \C:\Users\user\AppData\Local\pypoetry\Cache\artifacts\3b\b4\2e\87ea123a592747e6f6c798c66837974694db0bca4783357f71718a538d\pycparser-2.20-py2.py3-none-any.whl does not exist
at c:\users\boris\miniconda3\envs\project\lib\site-packages\poetry\core\packages\file_dependency.py:40 in __init__
36│ except FileNotFoundError:
37│ raise ValueError("Directory {} does not exist".format(self._path))
38│
39│ if not self._full_path.exists():
→ 40│ raise ValueError("File {} does not exist".format(self._path))
41│
42│ if self._full_path.is_dir():
43│ raise ValueError("{} is a directory, expected a file".format(self._path))
I tried changing my poetry version as well as that of pycparser, but that only seems to break other packages. Has anyone dealt with this before, and if so can you point me in the right direction?
Specs:
OS: Windows 10
Python version: 3.6
poetry==1.1.10
pycparser==2.20
I had the same issue which was resolved by deleting the Poetry cache folder: C:\Users\user\AppData\Local\pypoetry

GLUON Mobile Can't find bundle for base name com.gluonapplication.views.primary

First I am new to the use of GLUON mobile. I have developed an application in JAVAFX which I eventually want to port to an android device. At this stage I have just been reading as much as I can an viewing Gluon tutorials. I have followed the steps as per https://docs.gluonhq.com/#_run_the_application using initially the default MultiViewProjectFXML. hence the default POM.
I have no issues running the app via javafx:run.
When I do a mvn -Pandroid client:build I get the below error in which the path can't be found:
Fatal error:java.util.MissingResourceException: Can't find bundle for base name com.gluonapplication.views.primary, locale en_US
I have no doubt made a finger fault somewhere. I have graalvm-ce-java11-21.0.0 along with Java 11. In one tutorial I noted that when mvn -v was run you see reference to graalvm. I see Java version: 11.0.10, vendor: Oracle Corporation, runtime: /usr/lib/jvm/java-11-oracle.
Please let me know if you require any other details in order to assist. Thanks in advance
Output
[com.gluonapplication.gluonapplication:31983] classlist: 2,208.75 ms, 0.96 GB
[com.gluonapplication.gluonapplication:31983] setup: 372.72 ms, 0.96 GB
Fatal error:java.util.MissingResourceException: Can't find bundle for base name com.gluonapplication.views.primary, locale en_US
at java.base/java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:2055)
at java.base/java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1689)
at java.base/java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1593)
at java.base/java.util.ResourceBundle.getBundle(ResourceBundle.java:1284)
at com.oracle.svm.util.ModuleSupport.getResourceBundleFallback(ModuleSupport.java:82)
at com.oracle.svm.util.ModuleSupport.getResourceBundle(ModuleSupport.java:58)
at com.oracle.svm.core.jdk.LocalizationFeature.addBundleToCache(LocalizationFeature.java:267)
at com.oracle.svm.core.jdk.LocalizationFeature.addResourceBundles(LocalizationFeature.java:248)
at com.oracle.svm.core.jdk11.LocalizationFeatureJDK11OrLater.addResourceBundles(LocalizationFeatureJDK11OrLater.java:54)
at com.oracle.svm.core.jdk.LocalizationFeature.afterRegistration(LocalizationFeature.java:155)
at com.oracle.svm.hosted.NativeImageGenerator.lambda$setupNativeImage$11(NativeImageGenerator.java:849)
at com.oracle.svm.hosted.FeatureHandler.forEachFeature(FeatureHandler.java:70)
at com.oracle.svm.hosted.NativeImageGenerator.setupNativeImage(NativeImageGenerator.java:849)
at com.oracle.svm.hosted.NativeImageGenerator.doRun(NativeImageGenerator.java:561)
at com.oracle.svm.hosted.NativeImageGenerator.lambda$run$0(NativeImageGenerator.java:476)
at java.base/java.util.concurrent.ForkJoinTask$AdaptedRunnableAction.exec(ForkJoinTask.java:1407)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
Error: Image build request failed with exit status 1

Plone 4.1 Mac Snow Leopard 32-bit install problems

UPDATED: Took everyone's advice and decided plone.app.registry and 4.1.1 were not the issue, question is, what is? Where can I find the error logs in binary installer?
symptom: can't add content types (under Add New... folders, pages, news items, etc. -- hangs on save, more specifically my portal_factory is unable to validate and move the content to ZODB).
had same issue using both unified (4.1) and binary (4.1) installers
environment: mac book 10.6 Snow Leopard 32-bit
When I run buildout I see no errors:
2012-05-08 18:13:34 INFO ZServer HTTP server started at Tue May 8 18:13:34 2012
Hostname: 0.0.0.0
Port: 8080
2012-05-08 18:14:01 WARNING ZODB.FileStorage Ignoring index for /Applications/Plone/zinstance/var/filestorage/Data.fs
2012-05-08 18:14:27 INFO Zope Ready to handle requests
When I create a new site in Plone, Terminal says: http://pastie.org/3882025
Line 23: 2012-05-08 18:16:01 INFO GenericSetup.plone.app.registry Cannot find registry
That's not an error - that's what happens whenever you start up an instance with a new Data.fs file. If there's no Data.fs.index, or the .index file is inconsistent with the Data.fs, the existing one is ignored and the index is rebuilt. It means absolutely nothing on a new install.
There must be more information than this in the log.
Fixed this issue by following this post here: http://plone.293351.n2.nabble.com/Add-new-Plone-site-creates-site-with-JS-problems-4-1-4-tt7547774.html#a7555663
Basically, had to go to javascript registry, save, empty cache, restart browser, testing in Chrome only.

Resources