Yocto SDK package conflict - static

Hello I want to add the fmt static library (https://github.com/fmtlib/fmt) to the Yocto SDK. I wrote the recipe fmtlib_8.1.1.bb:
DESCRIPTION = "{fmt} is an open-source formatting library providing a fast and safe
alternative to C stdio and C++ iostreams"
SECTION = "libraries"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
BRANCH = "master"
GIT_URI = "git://github.com/fmtlib/fmt.git"
GIT_PROTOCOL = "https"
SRC_URI = "${GIT_URI};protocol=${GIT_PROTOCOL};branch=${BRANCH}"
inherit cmake
ALLOW_EMPTY:${PN} = "1"
ALLOW_EMPTY:${PN}-dev = "1"
ALLOW_EMPTY:${PN}-staticdev = "1"
S = "${WORKDIR}/git"
SRCREV = "${AUTOREV}"
In the image recipe, I added the library to the SDK:
TOOLCHAIN_TARGET_TASK:append = " fmtlib-staticdev"
I'm trying to build the SDK with the command:
bitbake -c populate_sdk <image_name> but as a result I get the error :
Error: Transaction test error:
file /usr/include/fmt/args.h from install of libfmt-dev-8.1.1-r0.aarch64 conflicts with
file from package fmtlib-dev-8.1.1-r0.aarch64
file /usr/include/fmt/chrono.h from install of libfmt-dev-8.1.1-r0.aarch64 conflicts with
file from package fmtlib-dev-8.1.1-r0.aarch64
file /usr/include/fmt/color.h from install of libfmt-dev-8.1.1-r0.aarch64 conflicts with
file from package fmtlib-dev-8.1.1-r0.aarch64
file /usr/include/fmt/compile.h from install of libfmt-dev-8.1.1-r0.aarch64 conflicts
with file from package fmtlib-dev-8.1.1-r0.aarch64
file /usr/include/fmt/core.h from install of libfmt-dev-8.1.1-r0.aarch64 conflicts with
file from package fmtlib-dev-8.1.1-r0.aarch64
file /usr/include/fmt/format-inl.h from install of libfmt-dev-8.1.1-r0.aarch64 conflicts
with file from package fmtlib-dev-8.1.1-r0.aarch64
file /usr/include/fmt/format.h from install of libfmt-dev-8.1.1-r0.aarch64 conflicts with
file from package fmtlib-dev-8.1.1-r0.aarch64
file /usr/include/fmt/os.h from install of libfmt-dev-8.1.1-r0.aarch64 conflicts with
file from package fmtlib-dev-8.1.1-r0.aarch64
file /usr/include/fmt/ostream.h from install of libfmt-dev-8.1.1-r0.aarch64 conflicts
with file from package fmtlib-dev-8.1.1-r0.aarch64
file /usr/include/fmt/printf.h from install of libfmt-dev-8.1.1-r0.aarch64 conflicts with
file from package fmtlib-dev-8.1.1-r0.aarch64
file /usr/include/fmt/ranges.h from install of libfmt-dev-8.1.1-r0.aarch64 conflicts with
file from package fmtlib-dev-8.1.1-r0.aarch64
file /usr/include/fmt/xchar.h from install of libfmt-dev-8.1.1-r0.aarch64 conflicts with
file from package fmtlib-dev-8.1.1-r0.aarch64
file /usr/lib/cmake/fmt/fmt-config-version.cmake from install of libfmt-dev-8.1.1-
r0.aarch64 conflicts with file from package fmtlib-dev-8.1.1-r0.aarch64
file /usr/lib/cmake/fmt/fmt-config.cmake from install of libfmt-dev-8.1.1-r0.aarch64
conflicts with file from package fmtlib-dev-8.1.1-r0.aarch64
file /usr/lib/cmake/fmt/fmt-targets-release.cmake from install of libfmt-dev-8.1.1-
r0.aarch64 conflicts with file from package fmtlib-dev-8.1.1-r0.aarch64
file /usr/lib/cmake/fmt/fmt-targets.cmake from install of libfmt-dev-8.1.1-r0.aarch64
conflicts with file from package fmtlib-dev-8.1.1-r0.aarch64
file /usr/lib/pkgconfig/fmt.pc from install of libfmt-dev-8.1.1-r0.aarch64 conflicts with
file from package fmtlib-dev-8.1.1-r0.aarch64
Does anyone know how to solve this problem?
Thanks

Related

PECL installation conflict isssue

I am trying to install Pear package using following command
sudo yum install php-dev php-pear
But it's giving me following error:
Transaction check error:
file /usr/bin/php from install of php-cli-5.4.16-48.el7.x86_64 conflicts with file from package ea-php-cli-1.0.0-9.13.1.cpanel.x86_64
I am installing this package for sqlsrv driver but I am not able to do.
It seems you using WHM/cpanel right? Don't install extensions using CLI. You can install it using PECL installer in WHM dashboard.
here the screenshot of PECL module installer
But if the module is not available on the GUI installer, you can install the module using built-in PHP from the cPanel. the path of pecl executable is /usr/bin/ea-phpVERSION-pecl.
an example if you want to install sqlsrv on php 7.3:
/usr/bin/ea-php73-pecl install pdo_sqlsrv
reference: https://support.cpanel.net/hc/en-us/articles/360053132353-How-install-pdo-sqlsrv-to-connect-to-MSSQL-Servers

Why is my npx create-react-app ./ not working?

npm WARN config global --global, --local are deprecated. Use --location=global instead.
Go to folder C:\Program Files\nodejs
You have to edit four files named npm, npm.cmd, npx, npx.cmd
Open the files in a text editor, like Visual Studio Code
Replace prefix -g with prefix --location=global in all four files
Save all (if asked, save as administrator)

endpointscfg get an error google.appengine.ext

I want to create end point lib with this command
python lib/endpoints/endpointscfg.py get_client_lib java -bs src.service.mobile_api.MobileApi
but geting this error
from google.appengine.ext import vendor
ImportError: No module named appengine.ext
downlaod
google-cloud-sdk
https://cloud.google.com/sdk/docs/downloads-versioned-archives
it this folder in Document directory then
cd Document/google-cloud-sdk and run this command
./install.sh
after
gcloud components install app-engine-python
and update your lib directory with this command in your project like this
cd /project/
ls
lib src etc
sudo pip install -t lib google-endpoints

Syntax Error in google-api-python-client

While attempting to follow the Appengine quickstart the following error message appears:
httplib2/__init__.py", line 352
print('%s:' % h, end=' ', file=self._fp)
^
SyntaxError: invalid syntax
I had the same issue but my solution was to run pip in a virtual environment for the correct Python version, in my case it was 2.7.
virtualenv --python=python2.7 .venv27
source .venv27/bin/activate
pip2.7 install -r requirements.txt -t lib
When installing google-api-python-client, the following is recommended:
pip install -t lib google-api-python-client
If this command is used in an enviornment running python 3, the lib installed copy will fail.
Better to explicily state pip2:
pip2 install -t lib google-api-python-client

qpython paramiko (or any other SSH python module) install

Recently I got qpython on my android device to program python on android. I would like to connect to a SSH server from it using paramiko. However, when i try pip install paramiko from the pip console program i get the error:
/data/user/0/org.qpython.qpy/files/bin/qpython-android5.sh "/storage/emulated/0/qpython/scripts/pip_console.py" && exit
/qpython/scripts/pip_console.py" && exit <
Input pip commands, ie: pip install {module}
-->pip install paramiko
Downloading/unpacking paramiko
Running setup.py egg_info for package paramiko
Downloading/unpacking cryptography>=1.1 (from paramiko)
Running setup.py egg_info for package cryptography
no previously-included directories found matching 'docs/_build'
warning: no previously-included files matching '*' found under directory 'vectors'
Downloading/unpacking pyasn1>=0.1.7 (from paramiko)
Running setup.py egg_info for package pyasn1
no previously-included directories found matching 'doc/build'
no previously-included directories found matching 'doc/source/.templates'
Downloading/unpacking idna>=2.1 (from cryptography>=1.1->paramiko)
Running setup.py egg_info for package idna
warning: no previously-included files matching '*.pyc' found under directory 'tools'
warning: no previously-included files matching '*.pyc' found under directory 'tests'
Downloading/unpacking asn1crypto>=0.21.0 (from cryptography>=1.1->paramiko)
Running setup.py egg_info for package asn1crypto
Downloading/unpacking packaging (from cryptography>=1.1->paramiko)
Running setup.py egg_info for package packaging
warning: no previously-included files found matching '.travis.yml'
warning: no previously-included files found matching 'dev-requirements.txt'
no previously-included directories found matching 'docs/_build'
no previously-included directories found matching 'tasks'
Downloading/unpacking six>=1.4.1 (from cryptography>=1.1->paramiko)
Running setup.py egg_info for package six
no previously-included directories found matching 'documentation/_build'
Requirement already satisfied (use --upgrade to upgrade): distribute in /data/data/org.qpython.qpy/files/lib/python2.7/site-packages (from cryptography>=1.1->paramiko)
Downloading/unpacking enum34 (from cryptography>=1.1->paramiko)
Running setup.py egg_info for package enum34
Downloading/unpacking ipaddress (from cryptography>=1.1->paramiko)
Running setup.py egg_info for package ipaddress
Downloading/unpacking cffi>=1.4.1 (from cryptography>=1.1->paramiko)
Running setup.py egg_info for package cffi
unable to execute arm-linux-androideabi-gcc: No such file or directory
unable to execute arm-linux-androideabi-gcc: No such file or directory
No working compiler found, or bogus compiler options
passed to the compiler from Python's distutils module.
See the error messages above.
(If they are about -mno-fused-madd and you are on OS/X 10.8,
see http://stackoverflow.com/questions/22313407/ .)
Complete output from command python setup.py egg_info:
unable to execute arm-linux-androideabi-gcc: No such file or directory
unable to execute arm-linux-androideabi-gcc: No such file or directory
No working compiler found, or bogus compiler options
passed to the compiler from Python's distutils module.
See the error messages above.
(If they are about -mno-fused-madd and you are on OS/X 10.8,
see http://stackoverflow.com/questions/22313407/ .)
----------------------------------------
Command python setup.py egg_info failed with error code 1
Storing complete log in /sdcard/qpython/.pip/pip.log
-->
Is there anyway to get it to work or a different module that works?
Thanks in advance
P.S. qpython3 over qpython is preferable but not too much of an issue.
Tje newest 1.4.x qpython had supported paramiko, just install the paramiko-qpython from QPYPI.

Resources