I try to deploy some .yaml file with code of Kubernetes, but get error
TASK [/cur/develop/inno/777/name.k8s/roles/deploy_k8s_dashboard : Apply the Kubernetes dashboard] **************************************************************************************************************************************************************************************
Monday 17 October 2022 13:52:07 +0200 (0:00:00.836) 0:00:01.410 ********
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ImportError: No module named kubernetes.dynamic.resource
fatal: [cibd1]: FAILED! => changed=false
error: No module named kubernetes.dynamic.resource
msg: Failed to import the required Python library (kubernetes) on bvm's Python /usr/bin/python. Please read the module documentation and install it in the appropriate location. If the required library is installed, but Ansible is using the wrong Python interpreter, please consult the documentation on ansible_python_interpreter
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ImportError: No module named kubernetes.dynamic.resource
fatal: [cibd1]: FAILED! => changed=false
error: No module named kubernetes.dynamic.resource
msg: Failed to import the required Python library (kubernetes) on bvm's Python /usr/bin/python. Please read the module documentation and install it in the appropriate location. If the required library is installed, but Ansible is using the wrong Python interpreter, please consult the documentation on ansible_python_interpreter
Could you please help with advice, How can I fix it?
I've had a similar problem. locally I had to execute the following
ansible-galaxy collection install kubernetes.core
On the target server make sure that you have python3 installed as python2 won't be enough. Once that is installed, I also had to define the below in my vars:
ansible_python_interpreter: /bin/python3
Related
Goal is to connect and query SQL Server instance via Lambda's Python code that has following structure:
I tried two configs but both leave me with error:
Option 1: pymssql listed in package/python/requirements.txt
datadog-api-client>=1.6.0
pyodbc>=4.0.32
pymssql>=2.2.2
Option 2: adding lib to zip file as shown here:
Both throw error:
[ERROR] Runtime.ImportModuleError: Unable to import module 'function': No module named 'pymssql._pymssql'
impport cython made it much easier then pip install pymssql to the directory.
I am installing Tensorflow. I encountered the following problem:
I was installing Tensorflow from Source and I am following the Tensorflow website (https://www.tensorflow.org/install/source)
I had earlier installed Bazel 3.0.0 (the latest version) but got a similar error. Upon looking at other answers I figured out this error has something to do with the version of Bazel. Hence I uninstalled Bazel 3.0.0 and installed Bazel 0.27.1. But upon typing the following command(bazel build //tensorflow/tools/pip_package:build_pip_package) in the terminal, I am getting the following error:
WARNING: The following rc files are no longer being read, please transfer their contents or import their path into one of the standard rc files:
/home/aviraj/tensorflow/tools/bazel.rc
Starting local Bazel server and connecting to it...
ERROR: /home/aviraj/tensorflow/WORKSPACE:3:1: name 'http_archive' is not defined
ERROR: Error evaluating WORKSPACE file
ERROR: error loading package '': Encountered error while reading extension file 'closure/defs.bzl': no such package '#io_bazel_rules_closure//closure': error loading package 'external': Could not load //external package
ERROR: error loading package '': Encountered error while reading extension file 'closure/defs.bzl': no such package '#io_bazel_rules_closure//closure': error loading package 'external': Could not load //external package
INFO: Elapsed time: 2.023s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)
Any help would be much appreciated. Thanks
Starting with version 0.20.0, http_archive native rule has been deprecated, it has to be loaded from: #bazel_tools//tools/build_defs/repo:http.bzl. I.e. you need to add the following (unless you have a customized version) in WORKSPACE or bzl files using it:
load("#bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
I get this error after setting up Xcode to develop Python:
error: module importing failed: invalid pathname
Hello World This Is Python!
Program ended with exit code: 0
I created a hard link to the Python3.8 executable and this shouldn't happen, I just don't know why it happens. Any ideas why?
So I reread Eric Sudan's post on setting this up and found that I hadn't deselected the "Debug Executable" check box. After doing so the error went away.
This issue not only with python :)
error: module importing failed: invalid pathname
Welcome to Apple Swift version 5.2.2 (swiftlang-1103.0.32.6 clang-1103.0.32.51).
com.apple.xpc.launchd[1] (com.apple.xpc.launchd.domain.pid.taskgated.90006): Failed to bootstrap path: path = /usr/libexec/taskgated, error = 108: Invalid path
com.apple.xpc.launchd[1] (com.apple.xpc.launchd.domain.pid.repl_swift.90004): Failed to bootstrap path: path = /Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Resources/repl_swift, error = 2: No such file or directory
this issue in new Xcode or new swift :)
Installed python from scratch on computer and still throws an error anytime a .py file is being used whether it's my short script 'print('aa')' or some other utility (Jenkins Job Builder) which uses python script underneath dropping this line: Invalid -W option ignored: invalid module name: 'yaml' every time.
Module yaml is provided by PyYAML package, so do a
pip install PyYAML.
However, look at your setup.py, dependencies should be configured properly and PyYAML should be installed as a dependency.
Not sure why xlsx package not loading into R (It has been installed and downloaded without any error).
install.packages("xlsx")
library(xlsx)
Loading required package: rJava
Error: package or namespace load failed for ‘rJava’:
.onLoad failed in loadNamespace() for 'rJava', details:
call: fun(libname, pkgname)
error: JAVA_HOME cannot be determined from the Registry
Error: package ‘rJava’ could not be loaded
In addition: Warning message:
package ‘xlsx’ was built under R version 3.4.3
Please assist