gcloud cli not working on macos ventura 13.1 M1 - google-cloud-sdk

every time i try to ru the install cli i get this
Welcome to the Google Cloud CLI! dyld[44374]: Library not loaded: /usr/local/opt/brew/opt/gettext/lib/libintl.8.dylib Referenced from: <29C0D6FA-7E7D-31D5-BC06-29F3E0FE2E07> /usr/local/opt/brew/Cellar/python#3.9/3.9.9/Frameworks/Python.framework/Versions/3.9/Python Reason: tried: '/usr/local/opt/brew/opt/gettext/lib/libintl.8.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/opt/brew/opt/gettext/lib/libintl.8.dylib' (no such file), '/usr/local/opt/brew/opt/gettext/lib/libintl.8.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/usr/local/lib/libintl.8.dylib' (no such file), '/usr/lib/libintl.8.dylib' (no such file, not in dyld cache), '/usr/local/opt/brew/Cellar/gettext/0.21.1/lib/libintl.8.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/opt/brew/Cellar/gettext/0.21.1/lib/libintl.8.dylib' (no such file), '/usr/local/opt/brew/Cellar/gettext/0.21.1/lib/libintl.8.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/usr/local/lib/libintl.8.dylib' (no such file), '/usr/lib/libintl.8.dylib' (no such file, not in dyld cache) ./google-cloud-sdk/install.sh: line 200: python: command not found
im using the file that's specific for M1, but no luck with it, it was working till the last update on mac
i have tried downloading the last to updates on gcloud (https://cloud.google.com/sdk/docs/install-sdk#installing_the_latest_version:~:text=google%2Dcloud%2Dcli%2D414.0.0%2Ddarwin%2Darm.tar.gz)
and also the 413

Related

OSError: cannot load library 'libxcb.dll': error 0x7e

I tried to run a python program on the PyQt5 framework but it's giving me .dll file errors.
I've installed tools to fix it but it's still giving me this error :
OSError: cannot load library 'libxcb.dll': error 0x7e
I have already installed all these tools:
**Uniconvertor-2.0rc5-win64_headless.msi
GTK+ for Windows Runtime Environment Installer**
it always gives me this error "OSError: cannot load library 'libxcb.dll': error 0x7e".
Is there any other way to fix this error?

CuPy error: failed to open nvrtc-builtins64_101.dll

I'm using CUDA Toolkit 10.1, my PATH is set correctly.
I am compiling:
import cupy
x = cupy.array([1., 2., 3.])
y = cupy.arange(10)
This gives
Traceback (most recent call last):
File "C:\Python39\lib\site-packages\cupy\cuda\compiler.py", line 625, in compile
nvrtc.compileProgram(self.ptr, options)
File "cupy_backends\cuda\libs\nvrtc.pyx", line 133, in cupy_backends.cuda.libs.nvrtc.compileProgram
File "cupy_backends\cuda\libs\nvrtc.pyx", line 145, in cupy_backends.cuda.libs.nvrtc.compileProgram
File "cupy_backends\cuda\libs\nvrtc.pyx", line 64, in cupy_backends.cuda.libs.nvrtc.check_status
cupy_backends.cuda.libs.nvrtc.NVRTCError: NVRTC_ERROR unknown (7)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Dropbox\Emil\Binance\a.py", line 4, in <module>
y = cupy.arange(10)
File "C:\Python39\lib\site-packages\cupy\_creation\ranges.py", line 57, in arange
_arange_ufunc(typ(start), typ(step), ret, dtype=dtype)
File "cupy\_core\_kernel.pyx", line 1185, in cupy._core._kernel.ufunc.__call__
File "cupy\_core\_kernel.pyx", line 1212, in cupy._core._kernel.ufunc._get_ufunc_kernel
File "cupy\_core\_kernel.pyx", line 952, in cupy._core._kernel._get_ufunc_kernel
File "cupy\_core\_kernel.pyx", line 62, in cupy._core._kernel._get_simple_elementwise_kernel
File "cupy\_core\core.pyx", line 2030, in cupy._core.core.compile_with_cache
File "C:\Python39\lib\site-packages\cupy\cuda\compiler.py", line 434, in compile_with_cache
return _compile_with_cache_cuda(
File "C:\Python39\lib\site-packages\cupy\cuda\compiler.py", line 476, in _compile_with_cache_cuda
base = _preprocess('', options, arch, backend)
File "C:\Python39\lib\site-packages\cupy\cuda\compiler.py", line 375, in _preprocess
result, _ = prog.compile(options)
File "C:\Python39\lib\site-packages\cupy\cuda\compiler.py", line 637, in compile
raise CompileException(log, self.src, self.name, options,
cupy.cuda.compiler.CompileException: nvrtc: error: failed to open nvrtc-builtins64_101.dll.
Make sure that nvrtc-builtins64_101.dll is installed correctly.
I checked, the required DLL is in the \bin folder. What could be wrong here?
Show-config data is below
OS : Windows-10-10.0.19041-SP0
Python Version : 3.9.1
CuPy Version : 9.3.0
CuPy Platform : NVIDIA CUDA
NumPy Version : 1.19.5
SciPy Version : 1.6.2
Cython Build Version : 0.29.24
Cython Runtime Version : None
CUDA Root : C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1
nvcc PATH : C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\bin\nvcc.EXE
CUDA Build Version : 10010
CUDA Driver Version : 11040
CUDA Runtime Version : 10010
cuBLAS Version : (available)
cuFFT Version : 10010
cuRAND Version : 10010
cuSOLVER Version : (10, 1, 0)
cuSPARSE Version : (available)
NVRTC Version : (10, 1)
Thrust Version : 100906
CUB Build Version : 100800
Jitify Build Version : 60e9e72
cuDNN Build Version : None
cuDNN Version : None
NCCL Build Version : None
NCCL Runtime Version : None
cuTENSOR Version : None
cuSPARSELt Build Version : None
Device 0 Name : NVIDIA GeForce RTX 2080
Device 0 Compute Capability : 75
Device 0 PCI Bus ID : 0000:1A:00.0
Device 1 Name : NVIDIA GeForce RTX 2080
Device 1 Compute Capability : 75
Device 1 PCI Bus ID : 0000:68:00.0
Process finished with exit code 0
Here are the logs:
CUDA_PATH: C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1
Wheel shared libraries: C:\Python39\lib\site-packages\cupy\.data\lib
Adding DLL search path: C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\bin
Adding DLL search path: C:\Python39\lib\site-packages\cupy\.data\lib
CuPy wheel package built for CUDA 10.1
CuPy CUDA library directory: C:\Users\Dmitri/.cupy/cuda_lib
Looking for cudnn version 8.0.5 (cudnn64_8.dll)
Rejected candidate (not found): C:\Users\Dmitri/.cupy/cuda_lib\10.1\cudnn\8.0.5\lib\cudnn64_8.dll
Rejected candidate (not found): C:\Users\Dmitri/.cupy/cuda_lib\10.1\cudnn\8.0.5\lib64\cudnn64_8.dll
Rejected candidate (not found): C:\Users\Dmitri/.cupy/cuda_lib\10.1\cudnn\8.0.5\bin\cudnn64_8.dll
File cudnn64_8.dll could not be found
Trying to load cudnn64_8.dll from default search path
Library cudnn could not be preloaded: Could not find module 'cudnn64_8.dll' (or one of its dependencies). Try using the full path with constructor syntax.
Looking for cudnn version 8.0.5 (cudnn_ops_infer64_8.dll)
Rejected candidate (not found): C:\Users\Dmitri/.cupy/cuda_lib\10.1\cudnn\8.0.5\lib\cudnn_ops_infer64_8.dll
Rejected candidate (not found): C:\Users\Dmitri/.cupy/cuda_lib\10.1\cudnn\8.0.5\lib64\cudnn_ops_infer64_8.dll
Rejected candidate (not found): C:\Users\Dmitri/.cupy/cuda_lib\10.1\cudnn\8.0.5\bin\cudnn_ops_infer64_8.dll
File cudnn_ops_infer64_8.dll could not be found
Trying to load cudnn_ops_infer64_8.dll from default search path
Library cudnn could not be preloaded: Could not find module 'cudnn_ops_infer64_8.dll' (or one of its dependencies). Try using the full path with constructor syntax.
Looking for cudnn version 8.0.5 (cudnn_ops_train64_8.dll)
Rejected candidate (not found): C:\Users\Dmitri/.cupy/cuda_lib\10.1\cudnn\8.0.5\lib\cudnn_ops_train64_8.dll
Rejected candidate (not found): C:\Users\Dmitri/.cupy/cuda_lib\10.1\cudnn\8.0.5\lib64\cudnn_ops_train64_8.dll
Rejected candidate (not found): C:\Users\Dmitri/.cupy/cuda_lib\10.1\cudnn\8.0.5\bin\cudnn_ops_train64_8.dll
File cudnn_ops_train64_8.dll could not be found
Trying to load cudnn_ops_train64_8.dll from default search path
Library cudnn could not be preloaded: Could not find module 'cudnn_ops_train64_8.dll' (or one of its dependencies). Try using the full path with constructor syntax.
Looking for cudnn version 8.0.5 (cudnn_cnn_infer64_8.dll)
Rejected candidate (not found): C:\Users\Dmitri/.cupy/cuda_lib\10.1\cudnn\8.0.5\lib\cudnn_cnn_infer64_8.dll
Rejected candidate (not found): C:\Users\Dmitri/.cupy/cuda_lib\10.1\cudnn\8.0.5\lib64\cudnn_cnn_infer64_8.dll
Rejected candidate (not found): C:\Users\Dmitri/.cupy/cuda_lib\10.1\cudnn\8.0.5\bin\cudnn_cnn_infer64_8.dll
File cudnn_cnn_infer64_8.dll could not be found
Trying to load cudnn_cnn_infer64_8.dll from default search path
Library cudnn could not be preloaded: Could not find module 'cudnn_cnn_infer64_8.dll' (or one of its dependencies). Try using the full path with constructor syntax.
Looking for cudnn version 8.0.5 (cudnn_cnn_train64_8.dll)
Rejected candidate (not found): C:\Users\Dmitri/.cupy/cuda_lib\10.1\cudnn\8.0.5\lib\cudnn_cnn_train64_8.dll
Rejected candidate (not found): C:\Users\Dmitri/.cupy/cuda_lib\10.1\cudnn\8.0.5\lib64\cudnn_cnn_train64_8.dll
Rejected candidate (not found): C:\Users\Dmitri/.cupy/cuda_lib\10.1\cudnn\8.0.5\bin\cudnn_cnn_train64_8.dll
File cudnn_cnn_train64_8.dll could not be found
Trying to load cudnn_cnn_train64_8.dll from default search path
Library cudnn could not be preloaded: Could not find module 'cudnn_cnn_train64_8.dll' (or one of its dependencies). Try using the full path with constructor syntax.
Looking for cudnn version 8.0.5 (cudnn_adv_infer64_8.dll)
Rejected candidate (not found): C:\Users\Dmitri/.cupy/cuda_lib\10.1\cudnn\8.0.5\lib\cudnn_adv_infer64_8.dll
Rejected candidate (not found): C:\Users\Dmitri/.cupy/cuda_lib\10.1\cudnn\8.0.5\lib64\cudnn_adv_infer64_8.dll
Rejected candidate (not found): C:\Users\Dmitri/.cupy/cuda_lib\10.1\cudnn\8.0.5\bin\cudnn_adv_infer64_8.dll
File cudnn_adv_infer64_8.dll could not be found
Trying to load cudnn_adv_infer64_8.dll from default search path
Library cudnn could not be preloaded: Could not find module 'cudnn_adv_infer64_8.dll' (or one of its dependencies). Try using the full path with constructor syntax.
Looking for cudnn version 8.0.5 (cudnn_adv_train64_8.dll)
Rejected candidate (not found): C:\Users\Dmitri/.cupy/cuda_lib\10.1\cudnn\8.0.5\lib\cudnn_adv_train64_8.dll
Rejected candidate (not found): C:\Users\Dmitri/.cupy/cuda_lib\10.1\cudnn\8.0.5\lib64\cudnn_adv_train64_8.dll
Rejected candidate (not found): C:\Users\Dmitri/.cupy/cuda_lib\10.1\cudnn\8.0.5\bin\cudnn_adv_train64_8.dll
File cudnn_adv_train64_8.dll could not be found
Trying to load cudnn_adv_train64_8.dll from default search path
Library cudnn could not be preloaded: Could not find module 'cudnn_adv_train64_8.dll' (or one of its dependencies). Try using the full path with constructor syntax.
Not preloading nccl
Looking for cutensor version 1.2.2 (cutensor.dll)
Rejected candidate (not found): C:\Users\Dmitri/.cupy/cuda_lib\10.1\cutensor\1.2.2\lib\cutensor.dll
Rejected candidate (not found): C:\Users\Dmitri/.cupy/cuda_lib\10.1\cutensor\1.2.2\lib64\cutensor.dll
Rejected candidate (not found): C:\Users\Dmitri/.cupy/cuda_lib\10.1\cutensor\1.2.2\bin\cutensor.dll
File cutensor.dll could not be found
Trying to load cutensor.dll from default search path
Library cutensor could not be preloaded: Could not find module 'cutensor.dll' (or one of its dependencies). Try using the full path with constructor syntax.
Process finished with exit code 0

Apktool doesnt compile properly via command line

I am able to decompile the file using "advanced apktool" but when i use apktool alone via command line I get this error:
I: Baksmaling... I: Loading resource table... Exception in thread "main" brut.androlib.AndrolibException: Could not decode arsc file at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:55) at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:315) at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:50) at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:43) at brut.androlib.Androlib.getResTable(Androlib.java:44) at brut.androlib.ApkDecoder.getResTable(ApkDecoder.java:148) at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98) at brut.apktool.Main.cmdDecode(Main.java:128) at brut.apktool.Main.main(Main.java:65) Caused by: java.io.IOException: Expected: 0x001c0001, got: 0x00000000 at brut.util.ExtDataInput.skipCheckInt(ExtDataInput.java:48) at brut.androlib.res.decoder.StringBlock.read(StringBlock.java:45) at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:97) at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:82) at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:48) ... 8 more" My apk does have a res folder i can see it using dexindexor app on my phone and it decompiled using other decompilers (that use apktool) its just apktool doesn't decompile it on its own properly.
Its the same when i try a different comnputers. I'm using winxp 32 jre 1.7, win7 64 jre 1.8.
Why is this happenning and how do I fix it?

IBM Worklight - Build failed

My environments are failing to build after restart, cleaning, exiting the eclipse, deleting native folders, also I am looking for a reason and perfect fix of this below error as any developer wont be deleting every time when this issue arises, please help
error log
windowsphone build failed: com.worklight.builder.exception.WorklightBuildRuntimeException: Resource Manager - Error while reading XML file: /Users/Desktop/16th July/30thJuly-Map/test_Login/apps/test/windowsphone/native/Properties/WMAppManifest.xml (No such file or directory) Nested exception: /Users/test/Desktop/16th July/30thJuly-Map/test_Login/apps/test/windowsphone/native/Properties/WMAppManifest.xml (No such file or directory)
[2013-07-30 17:39:20] FWLST1040E: ipad build failed: com.worklight.builder.exception.WorklightBuildRuntimeException: Resource Manager - Problem reading info.plist file /Users/test/Desktop/16th July/30thJuly-Map/test_Login/apps/test/ipad/native/testLogintestIpad-Info.plist (No such file or directory) Nested exception: /Users/test/Desktop/16th July/30thJuly-Map/test_Login/apps/test/ipad/native/testLogintestIpad-Info.plist (No such file or directory)
[2013-07-30 17:39:21] FWLST1040E: iphone build failed: com.worklight.builder.exception.WorklightBuildRuntimeException: Resource Manager - Problem reading info.plist file /Users/test/Desktop/16th July/30thJuly-Map/test_Login/apps/test/iphone/native/testLogintestIphone-Info.plist (No such file or directory) Nested exception: /Users/test/Desktop/16th July/30thJuly-Map/test_Login/apps/test/iphone/native/testLogintestIphone-Info.plist (No such file or directory)
[2013-07-30 17:39:21] FWLST1040E: windows8 build failed: com.worklight.builder.exception.WorklightBuildRuntimeException: Resource Manager - Error while reading XML file: /Users/test/Desktop/16th July/30thJuly-Map/test_Login/apps/test/windows8/native/package.appxmanifest (No such file or directory) Nested exception: /Users/test/Desktop/16th July/30thJuly-Map/test_Login/apps/test/windows8/native/package.appxmanifest (No such file or directory)
[2013-07-30 17:39:23] FWLST1040E: android build failed: com.worklight.builder.exception.WorklightBuildRuntimeException: Resource Manager - Error while reading XML file: /Users/test/Desktop/16th July/30thJuly-Map/test_Login/apps/test/android/native/AndroidManifest.xml (No such file or directory) Nested exception: /Users/test/Desktop/16th July/30thJuly-Map/test_Login/apps/test/android/native/AndroidManifest.xml (No such file or directory)
[2013-07-30 17:39:24] A core eclipse exception has occurred: Failed to read project description file from location '/Users/test/Desktop/16th July/30thJuly-Map/test_Login/apps/test/android/native/.project'.
Thanks
djrecker
I got the same error in my eclipse after changing the project name by using Refactor->Rename
The below fix is for iPhone environment. You can try the same for other environment also.
The error says it cant find the info.plist file.Try to move to that location in your computer and see wether the file is there or not.
in your case ESILoginESIIphone-Info.plist
if you cant find the file. just see the ***-Info.plist in the same path and note down the ****
worklight will always append your porject name twice in info.plist file ( dont know why). For example if you have project name as ESI then your plist file name would be ESIESI-Info.plist.
i guess in your project file you have changed the name to ESILogin
Try to rename the project with **** which you found in above step.
Thats all.
Happy Building.
Please look in the Error Log view in Eclipse; there should be an exception trace there which could help us in identifying the root cause.
Can you reproduce this? Does it happen only when you create a new project and add all Mobile environments at once, or even when you add only one Mobile environment?
What is your Worklight version?
Delete the bin folder contents in your project and restart the server.
Deploy all the adapters and application again

Java 1.5 crash on AIX 5

I have a problem with Java 1.5.0 for AIX. The error happens just when I log on with specific user on AIX (myuser). When I log on with other user java works ok.
The error come up even when I executed just "java -version" or simply "java" (of course, without quoting). I've tried executing it with the full path: /usr/java5/jre/bin/java but still fails.
There was installed the version 1.4 of java on system too. So the $PATH variable for the user contained /usr/java14/jre/bin, but I removed that value, I even uninstalled that version of java (1.4) so that just java 5 exists on the system, but the error continues.
If I execute "java -fullversion" it doesn't crash.
This is part of the error (the full output is very long):
JVMJ9VM011W Unable to load j9dmp23: No such file or directory
JVMJ9VM011W Unable to load j9jit23: No such file or directory
JVMJ9VM011W Unable to load j9gc23: No such file or directory
JVMJ9VM011W Unable to load j9vrb23: No such file or directory
Unhandled exception
Type=Illegal instruction vmState=0x00000000
J9Generic_Signal_Number=00000010 Signal_Number=00000004 Error_Value=00000000
Signal_Code=0000001e
Handler1=F0719CC8 Handler2=F0714F5C
.....
Target=2_30_20091103_45935_bHdSMr (AIX 5.3)
CPU=ppc (4 logical CPUs) (0x7d0000000 RAM)
JavaVMInitArgs.nOptions=14:
-Xjcl:jclscar_23
-Dcom.ibm.oti.vm.bootstrap.library.path=/usr/java5/jre/bin
-Dsun.boot.library.path=/usr/java5/jre/bin
-Djava.library.path=/usr/java5/jre/bin:/usr/java5/jre/bin:/usr/java5/jre/bin/classic:/usr/java5/jre/bin:/sqllib/lib:/home/myuser/comm:/home/myuser/sys:/home/myuser/bin:/db2util/db2adm/sqllib/lib64:/usr/java5/jre/bin/j9vm:/usr/lib
-Djava.home=/usr/java5/jre
-Djava.ext.dirs=/usr/java5/jre/lib/ext
-Duser.dir=/home/myuser
_j2se_j9=70912 (extra info: F070EA2C)
-Xdump
vfprintf (extra info: 300017A4)
-Dinvokedviajava
-Djava.class.path=/db2util/db2adm/sqllib/java/db2java.zip:/db2util/db2adm/sqllib/java/db2jcc.jar:/db2util/db2adm/sqllib/java/sqlj.zip:/db2util/db2adm/sqllib/function:/db2util/db2adm/sqllib/java/db2jcc_license_cu.jar:.
vfprintf
_port_library (extra info: F070EE30)
Note: "Enable full CORE dump" in smit is set to FALSE and as a result there will be limited threading information in core file.
Note: dump may be truncated if "ulimit -c" is set too low
Generated system dump: {default OS core name}
(no Thread object associated with thread)
(no Thread object associated with thread)
Unhandled exception in signal handler
ksh: 2179192 IOT/Abort trap(coredump)
I found the error. The problem is a line on the .profile which sets the environment variable LIBPATH:
export LIBPATH=/home/myuser/sys
I deleted that line in the .profile and java worked.