Composer / drupal commands generate errors. What is wrong w/ my setup? - drupal

From drupal installed directory I Generated a fresh new install of drupal 8.
I then generated a new module w/ the drupal console
drupal generate:module
Enter the new module name:
> broucher
Enter the module machine name [broucher]:
>
Enter the module Path [modules/custom]:
>
Enter module description [My Awesome Module]:
> Brochure Entiy Module
Enter package name [Custom]:
>
Enter Drupal Core version [8.x]:
>
Do you want to generate a .module file? (yes/no) [yes]:
>
Define module as feature (yes/no) [no]:
>
Do you want to add a composer.json file to your module? (yes/no) [yes]:
>
Would you like to add module dependencies? (yes/no) [no]:
>
Do you want to generate a unit test class? (yes/no) [yes]:
>
Do you want to generate a themeable template? (yes/no) [yes]:
>
Do you want proceed with the operation? (yes/no) [yes]:
>
Generated or updated files
Generation path: /Users/mike/websites/content-entity-example-VI
1 - /modules/custom/broucher/broucher.info.yml
2 - /modules/custom/broucher/broucher.module
3 - /modules/custom/broucher/composer.json
4 - /modules/custom/broucher/tests/src/Functional/LoadTest.php
5 - /modules/custom/broucher/broucher.module
6 - /modules/custom/broucher/templates/broucher.html.twig
Generated lines: "101"
I then ran a update on the module:
drupal module:update brochure --composer
A long set of error messages then display (can append if considered important)
Final error seems to be:
[
RuntimeException]
Source directory /Users/mike/websites/content-entity-example-VI/vendor/drupal/coder has uncommitted changes.
Subsequent executions of ‘drupal’ get’s error:
Fatal error: require(): Failed opening required '/Users/mike/websites/content-entity-example-VI/vendor/composer/../symfony/phpunit-bridge/bootstrap.php' (include_path='.:') in /Users/mike/websites/content-entity-example-VI/vendor/composer/autoload_real.php on line 66
If I do a composer update running ‘drupal’ on the command line it appears to be ready to run again.
I’ve been beating on this for several hours; any help would be appreciated.

Related

Why sphinx raises error index.ipynb not found while index.rst is present?

Sphinx keeps raising the error that the root file (...)/index.ipynb is not found. However the file (...)/index.rst is present. So why does sphinx look for index.ipynb instead of index.rst?
The sphinx run yields this:
Running Sphinx v4.4.0
making output directory... done
WARNING: html_static_path entry '_static' does not exist
checking bibtex cache... out of date
building [mo]: targets for 0 po files that are out of date
building [html]: targets for 7 source files that are out of date
updating environment: [new config] 7 added, 0 changed, 0 removed
reading sources... [100%] notebooks/Techniques
Sphinx error:
root file /Users/Theo/Entiteiten/IHE/git_TransientGroundwaterFlow/Assignment/docs/source/index.ipynb not found
make: *** [html] Error 2
The directory tree is standard as shown in the figure. docs>source and docs>build.
The notebooks are found in the subdirectory, which is a soft link to the directory with the original notebooks. Same for the pictures.
The index.rst specifies the files as follows, with the rst files in the source directory and the notebooks in the source/notebooks directory.
What am I doing wrong? Why is sphinx looking for the index.ipynb file instead of the index.rst file?
Welcome to TransientGroundwaterFlowIHEDelft's documentation!
============================================================
.. toctree::
:maxdepth: 5
:caption: Contents:
:numbered:
old_assignments
old_assignments_answers
notebooks/AssJan2016
notebooks/AssJan2017
notebooks/AssJan2019
notebooks/AssJan2020
notebooks/AssJan2021
notebooks/AssJan2022
Python_techniques
notebooks/Techniques
Indices and tables
==================
* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`

How to extract the maps via AC Dashboard?

I ran into the problem that everything went well with the compilation and the database. But when I start the worldserver, I get an error
Loading world information...
> RealmID: 1
> Version DB world: ACDB 335.6-dev
Will clear `logs` table of entries older than 1209600 seconds every 10 minutes.
Using DataDir /azerothcore-wotlk/data/
WORLD: VMap support included. LineOfSight:true, getHeight:true, indoorCheck:true PetLOS:true
Map file '/azerothcore-wotlk/data/maps/0004331.map': does not exist!
exit code: 1
worldserver terminated, restarting...
worldserver Terminated after 1 seconds, termination count: : 6
worldserver Restarter exited. Infinite crash loop prevented. Please check your system
What could be the problem? I rechecked the permissions to the directory including the owner and everything is fine. Tried different paths DataDir, now it set to **DataDir = "/home/azcore/azerothcore-wotlk/data". I get an error, how to fix that?
**
First of all, if you only need to get latest maps compatible with AzerothCore you can download them from here.
Otherwise, change in your config.sh file CTOOLS_BUILD='all', afterwards, run again the build using
./acore.sh compiler build
This will generate the binaries to extract the data inside azerothcore-wotlk/env/dist/bin/.
Having the binaries you can follow the guide here to extract them manually, you only need to move the binaries into the WoW directory and run the binaries in the right order.

Error when launching Kibana : cannot execute binary file - undefined error 0

I'm very new to the ELK stack and was trying to add some security settings (username and password) to access Kibana following the instructions from the link below:
https://www.elastic.co/blog/getting-started-with-elasticsearch-security
At Step 4: Security in Kibana, once the yml file modified, I try to launch Kibana from the terminal with the command ./bin/kibana but it displays the following errors :
./bin/kibana: line 24: /usr/local/var/homebrew/linked/kibana-7.6.2-linux-x86_64/bin/../node/bin/node: cannot execute binary file
./bin/kibana: line 24: /usr/local/var/homebrew/linked/kibana-7.6.2-linux-x86_64/bin/../node/bin/node: Undefined error: 0
I think I've followed all the previous steps carefully and everything else worked so far.
I'm using a Mac and the error seems to be very basic. Any clue?
Thanks for the help.
Looks like you've downloaded the wrong architecture (Linux) of Kibana on your Mac.
This generally happens when the architecture is not compatible with system architecture or running a 64 bits on 32 bits machine.
Simple solution:
Download the mac version of Kibana from here - https://www.elastic.co/downloads/kibana
Once downloaded, run ./bin/kibana in Kibana directory.
This will successfully start local server of Kibana on localhost:5601

new_site in blogdown causes error in editor

I've been trying to set up new_site with blogdown and hugo using the quick example from blogdown: Creating Websites with R Markdown; however, after calling new_site() command in a new empty project created via RStudio I have got the following error. I am not really sure what the error call is based upon so any help solving this is much appreciated.
> new_site()
Congratulations! Your new Hugo site is created in C:\Users\XYZ\Downloads\Test2\Site.
Just a few more steps and you're ready to go:
1. Download a theme into the same-named folder.
Choose a theme from https://themes.gohugo.io/, or
create your own with the "hugo new theme <THEMENAME>" command.
2. Perhaps you want to add some content. You can add single files
with "hugo new <SECTIONNAME>\<FILENAME>.<FORMAT>".
3. Start the built-in live server via "hugo server".
Visit https://gohugo.io/ for quickstart guide and full documentation.
trying URL 'https://github.com/yihui/hugo-lithium-theme/archive/master.zip'
Content type 'application/zip' length 119078 bytes (116 KB)
downloaded 116 KB
Error in editor(file = file, title = title) :
argument "name" is missing, with no default
The quick example page states that the new site should appear in RStudio viewer. That doesn't happen (assume due to the error). However, after calling serve site, the page does appear in viewer.
> serve_site()
Rendering content/post/2015-07-23-r-rmarkdown.Rmd
Started building sites ...
Built site for language en:
0 draft content
0 future content
0 expired content
4 regular pages created
16 other pages created
0 non-page files copied
0 paginator pages created
3 tags created
1 categories created
total in 34 ms
Serving the directory C:\Users\XYZ\Downloads\Test2\Site at http://BLABLA
The error is also triggered when creating new post through new_post():
> new_post("MyTest")
C:\Users\XYZ\Downloads\Test2\Site\content\post\2017-09-25-mytest.md created
Error in editor(file = file, title = title) :
argument "name" is missing, with no default
Although new post appears in content/post folder.
Thank you for any suggestions how to solve it.
The issue was solved by updating to latest version of RStudio's addins. This is triggered automatically from RStudio when you try to create "new_post" through "Tools > Addins > New Post". The RStudio will automatically update, install and load required packages.
In this case:
install.packages("miniUI")
install.packages("rstudioapi")

Use qjson in my Qt symbain app

I'm using Qt to develop a Symbian app.
I downloaded qjson from the link. I followed the instructions in that link and yes, I have the qjson.sis file. Now I need to use it in my app. When I tried, I got this error.
Launch failed: Command answer [command error], 1 values(s) to request: 'C|101|Processes|start|""|"MyProject.exe"|[""]|[]|true'
{"Code":-46,Format="Failed to create the process (verify that the executable and all required DLLs have been transferred) (permission denied)"}
Error: 'Failed to create the process (verify that the executable and all required DLLs have been transferred) (permission denied)' Code: -46
And when I press the launch icon, it shows, "Unable to execute file for security reasons".
Then I install the qjson.sis in my mobile and then tried to install my app, I got this error.
:-1: error: Installation failed: 'Failed to overwrite file owned by another package: c:\sys\bin\qjson.dll in ' Code: 131073; see http://wiki.forum.nokia.com/index.php/Symbian_OS_Error_Codes for descriptions of the error codes
In my .pro file I have this.
symbian: {
addFiles.sources = qjson.dll
addFiles.path = /sys/bin
DEPLOYMENT += addFiles
}
symbian: {
LIBS += -lqjson
}
Any ideas...?
Ok, I've just resolved a similar issue: it seems that your current build of QJson's library has different UID3 than the previous one that you installed on the phone.
Each .SIS file that is installed on the device has an identifier. The phone OS tracks which file was installed by which packacge, and if some new package wants to overwrite an existing file, the OS checks whether the new package has the same 'identity' than the previous owner of the file to be overwritten.
If the identity does not match, this error pops up.
There are number of reasons why this could have happened. For example, you could have simply changed the UID3 of the QJson before the build. Or, maybe you have forgot to set the library's UID3? Check the "src.pro' in the QJson project and go to the half of the file, you'd see lines:
#TARGET.UID3 =
TARGET.CAPABILITY = ReadDeviceData WriteDeviceData
If there's #, then you have forgot to set it and the build process assumed, well, letssay 'a random value'. So, now, set it to something, ie. TARGET.UID3 = 0xE0123456. Remember to correct that once you are ready to publish the application.
If a package with broken UID3 gets onto your phone and is blocking something - simply: uninstall it. Go to Settings/Installations/Installed, then find "qjson" and uninstall it. Afterwards, next installtion of qjson should succeed with no problems.

Resources