Facing codeception/codeception error during composer installation - ubuntu-18.04

I am trying to install in my project with this terminal command but it gives error.
sudo composer install --ignore-platform-reqs -vvv
How can i solve this error.
Error:
Problem 1 - codeception/codeception[2.0.0-alpha, ..., 2.0.0-RC2] require symfony/yaml ~2.3 -> found symfony/yaml[v2.3.0, ..., 2.8.x-dev] but it conflicts with your root composer.json require (^3.4). - codeception/codeception[2.0.0, ..., 2.1.4] require symfony/yaml ~2.4 -> found symfony/yaml[v2.4.0-BETA1, ..., 2.8.x-dev] but it conflicts with your root composer.json require (^3.4). - codeception/codeception[2.1.7, ..., 2.1.8] require symfony/yaml >=2.5 <3.1 -> found symfony/yaml[v2.5.0-BETA1, ..., 2.8.x-dev, v3.0.0-BETA1, ..., 3.0.x-dev] but it conflicts with your root composer.json require (^3.4). - codeception/codeception[2.1.9, ..., 2.1.11] require symfony/yaml >=2.5 <3.2 -> found symfony/yaml[v2.5.0-BETA1, ..., 2.8.x-dev, v3.0.0-BETA1, ..., 3.1.x-dev] but it conflicts with your root composer.json require (^3.4). - codeception/codeception[2.0.0-RC, ..., 2.2.0-RC2] require symfony/yaml >=2.7 <3.1 -> found symfony/yaml[v2.7.0-BETA1, ..., 2.8.x-dev, v3.0.0-BETA1, ..., 3.0.x-dev] but it conflicts with your root composer.json require (^3.4). - codeception/codeception[2.4.2, ..., 2.5.x-dev] require php >=5.6.0 <8.0 -> your php version (5.5.9; overridden via config.platform, actual: 7.4.33) does not satisfy that requirement. - roave/security-advisories dev-master conflicts with codeception/codeception <3.1.3|>=4,<4.1.22. - Root composer.json requires roave/security-advisories dev-master -> satisfiable by roave/security-advisories[dev-master]. - Root composer.json requires codeception/codeception ^2.0 -> satisfiable by codeception/codeception[2.0.0-alpha, ..., 2.5.x-dev].
I tried this.
sudo composer install --ignore-platform-reqs -vvv

Related

I need to build Chromium after I include some dependencies

I am simply building Chromium windows. It builds perfectly and works in every configuration I try. When I modify the source code, to include, in select_file_picker_win.cpp
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_window.h"
#include "content/public/browser/navigation_controller.h"
doesn't work.
The problem is that it can't link to the object generated.
Unresolved symbol browser.create
I tried different linkers, different compilers, different gn gen configurations, and same.
Where do I need to tell gn or ninja about this, to add this object when linking this file?
Something changes when i modify the ninja file inside the out folder, related to selectfile.. the error becomes a cyclic redundancy problem, and the file gets overwritten anyway so i know it is not the right solution.
lld-link: ←[0;31merror: ←[0mundefined symbol: public: __cdecl
Browser::CreateParams::CreateParams(enum Browser::Type, class Profile
*, bool)
Edit:
I modified BUILD.gn to add this:
deps = [
"//base",
"//base:i18n",
"//build:chromeos_buildflags",
"//skia",
"//ui/base",
"//ui/strings",
"//url",
"//chrome/browser",
]
allow_circular_includes_from = [
"//chrome/browser",
]
but the BUILD.gn from chrome/browser includes the previous, so I expected a cyclic redundancy. I have it:
ERROR Dependency cycle: //content:content ->
//content/gpu:gpu_sources -> //content/child:child ->
//content/common:common -> //ui/shell_dialogs:shell_dialogs ->
//chrome/browser:browser -> //apps:apps ->
//components/keyed_service/content:content ->
//content/public/browser:browser -> //content:content
FAILED: build.ninja
so I added this:
allow_circular_includes_from = [
"//chrome/browser/devtools",
"//chrome/browser/profiling_host",
"//chrome/browser/ui",
"//chrome/browser/ui/webui/bluetooth_internals",
"//chrome/browser/storage_access_api:permissions",
"//chrome/browser/safe_browsing",
"//chrome/browser/safe_browsing:verdict_cache_manager_factory",
"//chrome/browser/safe_browsing:advanced_protection",
"//chrome/browser/safe_browsing:metrics_collector",
"//ui/shell_dialogs",
[0/1] Regenerating ninja files
ERROR Dependency cycle:
//content:content ->
//content/gpu:gpu_sources ->
//content/child:child ->
//content/common:common ->
//ui/shell_dialogs:shell_dialogs ->
//chrome/browser:browser ->
//apps:apps ->
//components/keyed_service/content:content ->
//content/public/browser:browser ->
//content:content
FAILED: build.ninja
../../buildtools/win/gn.exe --root=../.. -q --ide=vs --regeneration gen .
ninja: error: rebuilding 'build.ninja': subcommand failed
Edit:
https://github.com/skopf/minimal-gn-project
this does not work, complains about gn.exe missing, but gn is both in the path and current dir,
When component build = false,
//content/browser:browser -> //content/common:common ->
//ui/shell_dialogs:shell_dialogs -> //chrome/browser:browser ->
//apps:apps -> //components/keyed_service/content:content ->
//content/public/browser:browser ->
//content/public/browser:browser_sources ->
//content/browser:browser
the dependencies are different, same error.
I tried adding
allow_circular_includes_from = [
"//ui/shell_dialogs",
"//content/common",
]
but does not solve anything, in any of the files.
C:\q\src>gn gen out/q
ERROR Dependency cycle: //content/browser:browser ->
//content/common:common -> //ui/shell_dialogs:shell_dialogs ->
//chrome/browser:browser -> //apps:apps ->
//components/keyed_service/content:content ->
//content/public/browser:browser ->
//content/public/browser:browser_sources ->
//content/browser:browser

cakePHP:Tried running this code in cakePHP

C:\xampp\htdocs\my_app\bin>cake bake migration_snapshot Initial
PHP Warning: Module 'intl' already loaded in Unknown on line 0
Exception: Database driver Cake\Database\Driver\Mysql cannot be used due to a missing PHP extension or unmet dependency
In [C:\xampp\htdocs\my_app\vendor\cakephp\cakephp\src\Database\Connection.php, line 202]
2021-02-09 08:52:48 Error: [Cake\Database\Exception\MissingExtensionException] Database driver Cake\Database\Driver\Mysql cannot be used due to a missing PHP extension or unmet dependency in C:\xampp\htdocs\my_app\vendor\cakephp\cakephp\src\Database\Connection.php on line 202
Exception Attributes: array (
'driver' => 'Cake\\Database\\Driver\\Mysql',
)
Stack Trace:
- C:\xampp\htdocs\my_app\vendor\cakephp\cakephp\src\Database\Connection.php:142
- C:\xampp\htdocs\my_app\vendor\cakephp\cakephp\src\Datasource\ConnectionRegistry.php:90
- C:\xampp\htdocs\my_app\vendor\cakephp\cakephp\src\Core\ObjectRegistry.php:110
- C:\xampp\htdocs\my_app\vendor\cakephp\cakephp\src\Datasource\ConnectionManager.php:212
- C:\xampp\htdocs\my_app\vendor\cakephp\migrations\src\Command\BakeMigrationSnapshotCommand.php:122
- C:\xampp\htdocs\my_app\vendor\cakephp\migrations\src\Command\BakeMigrationSnapshotCommand.php:55
- C:\xampp\htdocs\my_app\vendor\cakephp\migrations\src\Command\BakeSimpleMigrationCommand.php:91
- C:\xampp\htdocs\my_app\vendor\cakephp\cakephp\src\Console\BaseCommand.php:179
- C:\xampp\htdocs\my_app\vendor\cakephp\cakephp\src\Console\CommandRunner.php:336
- C:\xampp\htdocs\my_app\vendor\cakephp\cakephp\src\Console\CommandRunner.php:172
- C:\xampp\htdocs\my_app\bin\cake.php:12
Please check if you have two different versions of php on your machine.
cake bake should read the php extensions from xamp's php version i.e C:\xampp\php.

How to proceed to add a package through Conda.jl[Conda.add ]from Julia

How to proceed to add a package through Coda.add. I am receiving the following alert and I don’t know how to proceed
Julia> Conda.add("scipy.optimize")
[ Info: Running `conda install -y scipy.optimize` in root environment
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
PackagesNotFoundError: The following packages are not available from current channels:
- scipy.optimize
Current channels:
- https://repo.anaconda.com/pkgs/main/win-64
- https://repo.anaconda.com/pkgs/main/noarch
- https://repo.anaconda.com/pkgs/r/win-64
- https://repo.anaconda.com/pkgs/r/noarch
- https://repo.anaconda.com/pkgs/msys2/win-64
- https://repo.anaconda.com/pkgs/msys2/noarch
To search for alternate channels that may provide the conda package you're
looking for, navigate to
https://anaconda.org
and use the search bar at the top of the page.
ERROR: failed process: Process(setenv(`'C:\Users\user\.julia\conda\3\Scripts\conda.exe' install -y scipy.optimize`,["PATH=C:\\Users\\user\\.julia\\conda\\3\\Library\\bin;C:\\Users\\user\\.julia\\conda\\3\\Library\\bin;C:\\Rtools\\bin;C:\\Users\\user\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\user\\AppData\\Local\\atom\\bin;C:\\Users\\user\\AppData\\Local\\GitHubDesktop\\bin;C:\\Program Files\\Git\\cmd;C:\\Windows;C:\\WINDOWS\\system32;C:\\Program Files\\JetBrains\\IntelliJ IDEA 2018.3.2\\bin;C:\\Users\\user\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\user\\AppData\\Local\\atom\\app-1.33.1\\resources\\app\\apm\\bin;C:\\Users\\user\\AppData\\Local\\Julia-1.0.3\\bin;;C:\\Program Files\\NVIDIA Corporation\\NVIDIA NvDLISR;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\netCDF 4.7.4\\bin;C:\\ProgramData\\chocolatey\\bin;C:\\Users\\user\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\user\\AppData\\Local\\GitHubDesktop\\bin;C:\\Program Files\\Git\\cmd;C:\\Windows;C:\\WINDOWS\\system32;C:\\Program Files\\JetBrains\\IntelliJ IDEA 2018.3.2\\bin;C:\\Users\\user\\AppData\\Local\\atom\\app-1.33.1\\resources\\app\\apm\\bin;C:\\Users\\user\\AppData\\Local\\Julia-1.0.3\\bin;C:\\Users\\user\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\user\\AppData\\Local\\Programs\\Julia 1.5.1\\bin;;%USERPROFILE%\\AppData\\Local\\Microsoft\\WindowsApps", "USERDOMAIN_ROAMINGPROFILE=GALILEO", "HOMEPATH=\\Users\\user", "PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC", "SESSIONNAME=Console", "SYSTEMROOT=C:\\WINDOWS", "APPDATA=C:\\Users\\user\\AppData\\Roaming", "PSMODULEPATH=C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules;C:\\Program Files\\Intel\\Wired Networking\\", "COMMONPROGRAMW6432=C:\\Program Files\\Common Files", "PROGRAMDATA=C:\\ProgramData" … "PROGRAMFILES=C:\\Program Files", "CHOCOLATEYLASTPATHUPDATE=132430196948222515", "LOGONSERVER=\\\\GALILEO", "DRIVERDATA=C:\\Windows\\System32\\Drivers\\DriverData", "CONDA_PREFIX=C:\\Users\\user\\.julia\\conda\\3", "FPS_BROWSER_USER_PROFILE_STRING=Default", "SYSTEMDRIVE=C:", "FPS_BROWSER_APP_PROFILE_STRING=Internet Explorer", "PROCESSOR_ARCHITECTURE=AMD64", "OPENBLAS_MAIN_FREE=1"]), ProcessExited(1)) [1]
scipy.optimize is a part of scipy so this is all what you need:
julia> using Conda
julia> Conda.add("scipy");
julia> using PyCall
julia> so = pyimport("scipy.optimize")
PyObject <module 'scipy.optimize' from 'c:\\JuliaPkg\\Julia1.5.1\\conda\\3\\lib\\site-packages\\scipy\\optimize\\__init__.py'>

ExtJS 6 What package should I require for Ext.ux.colorpick.Field to work?

I want to use Ext.ux.colorpick.Field (modern toolkit), but can not figure out what should I require for it to work.
I've tried ext-ux-colorpick package within app.json, but it leads to an error:
Failed to resolve dependency Ext.form.field.Picker for file Ext.ux.colorpick.Field.
Any suggestions?
If you want to use ux widgets you need to require it in app.json like:
"requires": [
"ux"
],
And in app.js or in some Ext.app.Controller add in requires.
requires: ['Ext.ux.colorpick.Field']
Solution was to:
1 - Install package with npm install #sencha/ext-ux (not globally).
2 - Change packages path in the workspace.json to ${workspace.dir}/node_modules/#sencha:
"packages": {
"dir": "${workspace.dir}/node_modules/#sencha",
"extract": "${workspace.dir}/node_modules/#sencha/remote"
}
3 - Add ux to the requires in the app.json.

Angular errors "Module not found" when app is started

I'm starting out with hybrid mobile apps using Ionic. To start off I installed NodeJS, Angular, Ionic and Cordova on Windows 10. The problem I came across is when I created my Anuglar app and try to run it, it gives me a lot of errors and I don't know why if I haven't changed anything. I used the following commands.
# ng new [APP-NAME]
# cd [APP-NAME]
# ng serve
This returns all the following:
** NG Live Development Server is running on http://localhost:4200. **
94% asset optimizationwebpack: wait until bundle finished: /
Hash: dc480c594a2365ced8eb
Time: 1626ms
chunk {0} styles.bundle.map (styles) 28 bytes {2} [initial] [rendered]
chunk {1} main.bundle.js, main.bundle.map (main) 40 bytes [initial] [rendered]
chunk {2} inline.bundle.js, inline.bundle.map (inline) 0 bytes [entry] [rendered]
ERROR in multi main
Module not found: Error: Can't resolve 'webpack-dev-server/client?http://localhost:4200/' in 'C:\Users\Brian\Documents\Ionic Projects\github-repos'
# multi main
ERROR in multi styles
Module not found: Error: Can't resolve 'style-loader' in 'C:\Users\Brian\Documents\Ionic Projects\github-repos'
# multi styles
ERROR in multi main
Module not found: Error: Can't resolve '#ngtools/webpack' in 'C:\Users\Brian\Documents\Ionic Projects\github-repos'
# multi main
ERROR in Error: Child compilation failed:
Entry module not found: Error: Can't resolve 'raw-loader' in 'C:\Users\Brian\Documents\Ionic Projects\github-repos':
Error: Can't resolve 'raw-loader' in 'C:\Users\Brian\Documents\Ionic Projects\github-repos'
- compiler.js:76
[github-repos]/[angular-cli]/[html-webpack-plugin]/lib/compiler.js:76:16
- Compiler.js:279 Compiler.<anonymous>
[github-repos]/[angular-cli]/[webpack]/lib/Compiler.js:279:10
- Compiler.js:474
[github-repos]/[angular-cli]/[webpack]/lib/Compiler.js:474:13
- Tapable.js:102 next
[github-repos]/[angular-cli]/[webpack]/[tapable]/lib/Tapable.js:102:11
- CachePlugin.js:61 Compiler.<anonymous>
[github-repos]/[angular-cli]/[webpack]/lib/CachePlugin.js:61:4
- Tapable.js:106 Compiler.applyPluginsAsyncSeries
[github-repos]/[angular-cli]/[webpack]/[tapable]/lib/Tapable.js:106:13
- Compiler.js:471 Compiler.<anonymous>
[github-repos]/[angular-cli]/[webpack]/lib/Compiler.js:471:10
- Tapable.js:102 next
[github-repos]/[angular-cli]/[webpack]/[tapable]/lib/Tapable.js:102:11
- suppress-entry-chunks-webpack-plugin.js:28 Compilation.<anonymous>
[github-repos]/[angular-cli]/plugins/suppress-entry-chunks-webpack-plugin.js:28:17
- Tapable.js:106 Compilation.applyPluginsAsyncSeries
[github-repos]/[angular-cli]/[webpack]/[tapable]/lib/Tapable.js:106:13
- Compilation.js:626 Compilation.<anonymous>
[github-repos]/[angular-cli]/[webpack]/lib/Compilation.js:626:18
- Tapable.js:95 Compilation.applyPluginsAsyncSeries
[github-repos]/[angular-cli]/[webpack]/[tapable]/lib/Tapable.js:95:46
- Compilation.js:617 Compilation.<anonymous>
[github-repos]/[angular-cli]/[webpack]/lib/Compilation.js:617:10
- Tapable.js:95 Compilation.applyPluginsAsyncSeries
[github-repos]/[angular-cli]/[webpack]/[tapable]/lib/Tapable.js:95:46
- Compilation.js:612 Compilation.<anonymous>
[github-repos]/[angular-cli]/[webpack]/lib/Compilation.js:612:9
- Tapable.js:95 Compilation.applyPluginsAsyncSeries
[github-repos]/[angular-cli]/[webpack]/[tapable]/lib/Tapable.js:95:46
- Compilation.js:608 Compilation.<anonymous>
[github-repos]/[angular-cli]/[webpack]/lib/Compilation.js:608:8
- Tapable.js:95 Compilation.applyPluginsAsyncSeries
[github-repos]/[angular-cli]/[webpack]/[tapable]/lib/Tapable.js:95:46
- Compilation.js:554 Compilation.seal
[github-repos]/[angular-cli]/[webpack]/lib/Compilation.js:554:7
- Compiler.js:468 Compiler.<anonymous>
[github-repos]/[angular-cli]/[webpack]/lib/Compiler.js:468:16
- Tapable.js:189
[github-repos]/[angular-cli]/[webpack]/[tapable]/lib/Tapable.js:189:11
- Compilation.js:452 Compilation.<anonymous>
[github-repos]/[angular-cli]/[webpack]/lib/Compilation.js:452:10
- Compilation.js:347 Compilation.errorAndCallback
[github-repos]/[angular-cli]/[webpack]/lib/Compilation.js:347:3
- Compilation.js:364 Compilation.<anonymous>
[github-repos]/[angular-cli]/[webpack]/lib/Compilation.js:364:11
- NormalModuleFactory.js:40 onDoneResolving
[github-repos]/[angular-cli]/[webpack]/lib/NormalModuleFactory.js:40:20
- NormalModuleFactory.js:159
[github-repos]/[angular-cli]/[webpack]/lib/NormalModuleFactory.js:159:21
- async.js:726
[github-repos]/[angular-cli]/[webpack]/[async]/lib/async.js:726:13
- async.js:52
[github-repos]/[angular-cli]/[webpack]/[async]/lib/async.js:52:16
- async.js:241 done
[github-repos]/[angular-cli]/[webpack]/[async]/lib/async.js:241:17
- async.js:44
[github-repos]/[angular-cli]/[webpack]/[async]/lib/async.js:44:16
- async.js:723
[github-repos]/[angular-cli]/[webpack]/[async]/lib/async.js:723:17
- async.js:167
[github-repos]/[angular-cli]/[webpack]/[async]/lib/async.js:167:37
- async.js:52
[github-repos]/[angular-cli]/[webpack]/[async]/lib/async.js:52:16
- async.js:361
[github-repos]/[angular-cli]/[webpack]/[async]/lib/async.js:361:13
- async.js:52
[github-repos]/[angular-cli]/[webpack]/[async]/lib/async.js:52:16
- async.js:241 done
[github-repos]/[angular-cli]/[webpack]/[async]/lib/async.js:241:17
- async.js:44
[github-repos]/[angular-cli]/[webpack]/[async]/lib/async.js:44:16
- async.js:358
[github-repos]/[angular-cli]/[webpack]/[async]/lib/async.js:358:17
- NormalModuleFactory.js:216
[github-repos]/[angular-cli]/[webpack]/lib/NormalModuleFactory.js:216:19
- Resolver.js:70 onResolved
[github-repos]/[angular-cli]/[webpack]/[enhanced-resolve]/lib/Resolver.js:70:11
- createInnerCallback.js:31 loggingCallbackWrapper
[github-repos]/[angular-cli]/[webpack]/[enhanced-resolve]/lib/createInnerCallback.js:31:19
- Resolver.js:138 afterInnerCallback
[github-repos]/[angular-cli]/[webpack]/[enhanced-resolve]/lib/Resolver.js:138:10
- createInnerCallback.js:31 loggingCallbackWrapper
[github-repos]/[angular-cli]/[webpack]/[enhanced-resolve]/lib/createInnerCallback.js:31:19
- Tapable.js:145 Resolver.applyPluginsAsyncSeriesBailResult1
[github-repos]/[angular-cli]/[webpack]/[tapable]/lib/Tapable.js:145:46
- Resolver.js:125 innerCallback
[github-repos]/[angular-cli]/[webpack]/[enhanced-resolve]/lib/Resolver.js:125:19
- createInnerCallback.js:31 loggingCallbackWrapper
[github-repos]/[angular-cli]/[webpack]/[enhanced-resolve]/lib/createInnerCallback.js:31:19
- Tapable.js:247
[github-repos]/[angular-cli]/[webpack]/[tapable]/lib/Tapable.js:247:15
- UnsafeCachePlugin.js:39
[github-repos]/[angular-cli]/[webpack]/[enhanced-resolve]/lib/UnsafeCachePlugin.js:39:4
- createInnerCallback.js:31 loggingCallbackWrapper
[github-repos]/[angular-cli]/[webpack]/[enhanced-resolve]/lib/createInnerCallback.js:31:19
- Resolver.js:138 afterInnerCallback
[github-repos]/[angular-cli]/[webpack]/[enhanced-resolve]/lib/Resolver.js:138:10
- createInnerCallback.js:31 loggingCallbackWrapper
[github-repos]/[angular-cli]/[webpack]/[enhanced-resolve]/lib/createInnerCallback.js:31:19
webpack: bundle is now VALID.
Why is this is happening? How can I fix this?
My versions of the services are the following:
Node: v4.6.0
Angular: angular-cli: 1.0.0-beta.24
Ionic: 2.1.17
Cordova: 6.4.0
As gelliott181 suggested in the comments:
If you upgraded, be sure to "ng init" your app again and "d" for diff all files it asks you to overwrite before blindly OKing changes to your components and package.json.
This solved the same issue for me, but I was left with another error, which was:
ERROR in default is not an NgModule
Which is tracked HERE, and provides a workaround of downgrading to beta21, which solved the problem for me:
$ npm install --save-dev angular-cli#1.0.0-beta.21
It works with angular 2.4.1 for me.
I had hours of issues with this. Turned out I had the wrong verion of the angular-cli installed. ng new was spawning up an app that wouldn't build.
npm uninstall -g angular-cli
npm cache clean
npm install -g angular-cli#latest
Was what got me working. All thanks to this answer from #yoongkang-lim
ng serve does not work

Resources