The Z shell (Zsh) is a Unix shell that can be used as an interactive login shell and as a command interpreter for shell scripting.

Posts under Zsh tag

62 Posts

Post

Replies

Boosts

Views

Activity

How to repair on macOS 13.5 environment variables for a CONDA installlation with valid intelpython package
I have a good installation regarding Intel python3.9 with all modules loading perfectly. However, I have a bad behavior with the conda part of Intel OneAPI : I can't even do a $ conda list or a $ conda env list , I get the following message : $ conda env list __conda_exe:2: no such file or directory: /opt/intel/oneapi/intelpython/latest/bin/conda So I have done the following export : export CONDA_EXE=/opt/intel/oneapi/intelpython/latest/condabin/conda And I redo the previous command, I get : $ conda list Traceback (most recent call last): File "/opt/intel/oneapi/intelpython/latest/condabin/conda", line 12, in <module> from conda.cli import main ModuleNotFoundError: No module named 'conda' I don't know what to do further to fix this Intel Conda installation. If someone have already met this kind of issue of could see what's wrong ... I would like to avoid to remove all the Intel python distribution part. EDIT : I forgot to mention that I have into my ~/.zshrc this part : # !! Contents within this block are managed by 'conda init' !! __conda_setup="$('/opt/intel/oneapi/intelpython/latest/condabin/conda' 'shell.zsh' 'hook' 2> /dev/null)" if [ $? -eq 0 ]; then eval "$__conda_setup" else if [ -f "/opt/intel/oneapi/intelpython/latest/etc/profile.d/conda.sh" ]; then . "/opt/intel/oneapi/intelpython/latest/etc/profile.d/conda.sh" else export PATH="/opt/intel/oneapi/intelpython/latest/bin:$PATH" fi fi unset __conda_setup
0
0
845
Aug ’23
How to sudo command in xcode cloud ci_post_clone.sh?
I'm installing texturepacker in ci_post_clone.sh script using below command in Xcode Cloud workflow. ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null ; brew install caskroom/cask/brew-cask 2> /dev/null brew install --cask texturepacker But I'm getting sudo warning in log. ==> Downloading https://www.codeandweb.com/download/texturepacker/6.0.2/TexturePacker-6.0.2.dmg ==> Installing Cask texturepacker sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper sudo: a password is required sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper sudo: a password is required sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper sudo: a password is required sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper sudo: a password is required ==> Purging files for version 6.0.2 of Cask texturepacker Error: Permission denied @ dir_s_mkdir - /usr/local/Caskroom How can i fix this issue? Any idea or suggestions would be appreciated. Thank You
2
6
3.6k
Aug ’23
Persistent "libcrypto loading in an unsafe way" Error with Ruby on Rails on macOS
Hello, I am using a 2017 MacBook Pro with an Intel chip, running Ruby version 2.7.8, Rails 5.2.6, and OpenSSL 1.1. I've installed Ruby using rbenv and ruby-build. I am persistently receiving the following error when trying to create a database with Rails: WARNING: /Users/logan/.rbenv/versions/2.7.8/bin/ruby is loading libcrypto in an unsafe way zsh: abort bundle exec bin/rails db:create Steps I have taken to troubleshoot this issue: Installed OpenSSL via Homebrew and ensured that the version is 1.1. Uninstalled and reinstalled Ruby with rbenv, specifying the correct OpenSSL directory. Set the DYLD_LIBRARY_PATH environment variable to the path where Homebrew installed the OpenSSL libraries before running the Ruby process. Unfortunately, none of these steps have resolved the problem. I am seeking assistance in resolving this issue. Any guidance or insight into what might be causing this error and how to fix it would be greatly appreciated. Thank you in advance for your time and help!
0
0
1.2k
Jul ’23
when I'm going to run this code unexpected EOF while looking for matching and syntax error: unexpected end of file how can solve this anyone please help
import speech_recognition as sr import os def say(text): os.system(f"say{text}") say("hello I'm jarvis") I have got this prob please help sh: -c: line 0: unexpected EOF while looking for matching `'' sh: -c: line 1: syntax error: unexpected end of file here is the script file #!/usr/bin/env bash _tqdm(){ local cur prv cur="${COMP_WORDS[COMP_CWORD]}" prv="${COMP_WORDS[COMP_CWORD - 1]}" case ${prv} in --bar_format|--buf_size|--colour|--comppath|--delay|--delim|--desc|--initial|--lock_args|--manpath|--maxinterval|--mininterval|--miniters|--ncols|--nrows|--position|--postfix|--smoothing|--total|--unit|--unit_divisor) # await user input ;; "--log") COMPREPLY=($(compgen -W 'CRITICAL FATAL ERROR WARN WARNING INFO DEBUG NOTSET' -- ${cur})) ;; *) COMPREPLY=($(compgen -W '--ascii --bar_format --buf_size --bytes --colour --comppath --delay --delim --desc --disable --dynamic_ncols --help --initial --leave --lock_args --log --manpath --maxinterval --mininterval --miniters --ncols --nrows --null --position --postfix --smoothing --tee --total --unit --unit_divisor --unit_scale --update --update_to --version --write_bytes -h -v' -- ${cur})) ;; esac } complete -F _tqdm tqdm
0
0
898
May ’23
zsh : command not found: pod
When i try to install podfiles after this command $ sudo gem install cocoapods its getting zsh command not found mac OS 13.4 i try some commands but no luck $ sudo gem install -n /usr/local/bin cocoapods $ sudo gem install cocoapods -V $ gem update --system
0
0
877
May ’23
Xcode automatically cancelled custom script which is added on build phase script
I am trying to run custom scrip which I can run manually on command but I want that script to be run on xcode when I build the project for Any iOS device Target. I have not specify any input or output files on this cause I don't have any requirements for that.It runs for some seconds and then xcode automatically cancelled it. can anyone guide me on this. thanks in advance. Please see attached image for reference. Note - Script could take 10-15 minutes of time to complete, Could this be a issue of automatically cancelled the scrip?
1
0
1.2k
Mar ’23
While executing gem ... (Gem::FilePermissionError)
Hi Guys, I am using the new Apple M1 Max and macOS Monterey, I am trying to install cocoa pod but getting errors like below. I tried to fix it with help of StackOverflow and many ways but no luck. Please help to resolve this issue. ERROR: While executing gem ... (Gem::FilePermissionError)   You don't have write permissions for the /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/gems/2.6.0 directory.
11
4
46k
Mar ’23
Iphone Console and Logs Symbols # ?
Can someone please tell me the difference between what CommCenter and CommCenter# is in Iphone Console? Examples: default 19:32:54.356353-0500 CommCenter[bambi.call]: BambiCallActivity: BambiCallStartAction t0NtJ2SjC*********: queueing prerequisite [0] BambiCallPrepareAction t0NtJ2SjC********* ( I have no idea ) CommCenter#I PerformDial number: , bbCall: false default 19:32:54.281348-0500 CommCenterreq: Bin=[] EXAMPLE default 19:33:09.005573-0500 locationd CellService, convertCells, 1, neighbors, 1 VS default 19:33:09.005634-0500 locationd #clct,CLCTCellInfo, received cellList size, default 19:33:09.006143-0500 locationd #EmergCon,EMERGENCY:notification,kCellInfoNotification At the very least there is CommCenter and Locationd with and without #. What does this mean? Thanks!
1
0
963
Feb ’23
HLS Streaming Tools 1.17 (mediastreamvalidator) trace trap macOS 13 Ventura
Currently the latest HLS Streaming Tools - mediastreamvalidator fails to run on the latest MacOS (Ventura) throwing a trace trap with exit code 133. % sudo mediastreamvalidator -i https://demo.unified-streaming.com/k8s/live/scte35.isml/.m3u8 Password: mediastreamvalidator: mediastreamvalidator: Version 1.17 (593.5-220531) Validate https://demo.unified-streaming.com/k8s/live/scte35.isml/.m3u8, fetch http [/k8s/live/scte35.isml/.m3u8] Started root playlist download [scte35-audio_eng=64000-video=500000.m3u8] Started media playlist download [scte35-audio_eng=64000.m3u8] Started media playlist download [scte35-audio_eng=128000-video=1000000.m3u8] Started media playlist download [keyframes/scte35-video=500000.m3u8] Started media playlist download [scte35-audio_eng=128000.m3u8] Started media playlist download zsh: trace trap sudo mediastreamvalidator -i ?133 ~ % system_profiler SPSoftwareDataType SPHardwareDataType Software: System Software Overview: System Version: macOS 13.0 (22A380) Kernel Version: Darwin 22.1.0 Boot Volume: Macintosh HD Boot Mode: Normal Computer Name: usp-mbp User Name: Jamie Fletcher (jamie) Secure Virtual Memory: Enabled System Integrity Protection: Enabled Time since boot: 8 minutes, 30 seconds Hardware: Hardware Overview: Model Name: MacBook Pro Model Identifier: MacBookPro18,4 Model Number: Z15G00146N/A Chip: Apple M1 Max Total Number of Cores: 10 (8 performance and 2 efficiency) Memory: 32 GB System Firmware Version: 8419.41.10 OS Loader Version: 8419.41.10 Serial Number (system): *************** Hardware UUID: 7264D2D7-B421-5372-B972-5FA81FB7A919 Provisioning UDID: 00006001-000A70283E02801E Activation Lock Status: Enabled √ ~ % curl https://demo.unified-streaming.com/k8s/live/scte35.isml/.m3u8 #EXTM3U #EXT-X-VERSION:4 ## Created with Unified Streaming Platform (version=1.11.20-26889) # AUDIO groups #EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio-aacl-64",LANGUAGE="en",NAME="English",DEFAULT=YES,AUTOSELECT=YES,CHANNELS="1" #EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio-aacl-128",LANGUAGE="en",NAME="English",DEFAULT=YES,AUTOSELECT=YES,CHANNELS="1" # variants #EXT-X-STREAM-INF:BANDWIDTH=658000,AVERAGE-BANDWIDTH=598000,CODECS="mp4a.40.2,avc1.42C01F",RESOLUTION=1280x720,FRAME-RATE=25,AUDIO="audio-aacl-64",CLOSED-CAPTIONS=NONE scte35-audio_eng=64000-video=500000.m3u8 #EXT-X-STREAM-INF:BANDWIDTH=1316000,AVERAGE-BANDWIDTH=1196000,CODECS="mp4a.40.2,avc1.42C01F",RESOLUTION=1280x720,FRAME-RATE=25,AUDIO="audio-aacl-128",CLOSED-CAPTIONS=NONE scte35-audio_eng=128000-video=1000000.m3u8 # variants #EXT-X-STREAM-INF:BANDWIDTH=75000,AVERAGE-BANDWIDTH=68000,CODECS="mp4a.40.2",AUDIO="audio-aacl-64" scte35-audio_eng=64000.m3u8 #EXT-X-STREAM-INF:BANDWIDTH=150000,AVERAGE-BANDWIDTH=136000,CODECS="mp4a.40.2",AUDIO="audio-aacl-128" scte35-audio_eng=128000.m3u8 # keyframes #EXT-X-I-FRAME-STREAM-INF:BANDWIDTH=73000,CODECS="avc1.42C01F",RESOLUTION=1280x720,URI="keyframes/scte35-video=500000.m3u8
3
0
2.4k
Jan ’23
Deleting app(.app extension) after the execution complete is not working in Mac OS
I am working on the Project and i'm facing technical issue. It is a exported app from applescript and i'm performing self delete means after the execution is complete it destroys from that location. I'm using the below shell script in applescript to invoke deletion **do shell script "sleep 5 && rm -rf " The .app path posix location" &"** When i run locally it is working perfectly but after codesign it is not working. Also when we copy the file to other location then it is working. I'm little confused and not able to identify the issue. Please help me out and really appreciate your help. Thanks & Regards, Rajkumar V
0
1
845
Jan ’23
zsh: abort <tool_name>
Hi, I downloaded and ran a command line tool (on M1 Max) that natively supports Apple Silicon. I was able to run the tool several times without a problem. However, after several execution it suddenly stopped working with the following terminal output: "zsh: abort <tool_name>. I had a look at the Crash Report and it says: "exception" : {"codes":"0x0000000000000000, 0x0000000000000000","rawCodes":[0,0],"type":"EXC_CRASH","signal":"SIGABRT"}, "asi" : {"libsystem_c.dylib":["stack buffer overflow"]}, First, I thought it was a code signing problem but then I would have seen SIGKILL exception. Any ideas what's wrong? Before I was trying to run another application from a docker image which could not access some of the libsystem_c libraries (not actually sure whether this was true but it said that at least similar libraries were 'corrupted' or something similar and then it suggested to move to the bin which I think I did).
1
0
1.9k
Dec ’22
How to launch an application in Minimized mode in macOS?
In macOS, an application can be launched in hidden mode through the login items i.e. Preference -> Users & Groups -> For any user, Login Items -> Select the application and click on 'Launch as Hidden'. When this user logs into the machine, the selected application would be launched - app icon would be visible in dock panel and application window would not be visible. Application window becomes visible only when the app icon is clicked once. Documentation of all also talks about miniaturizing all windows. I understand miniaturize-all would end up in all windows being minimized. Can an application be launched in such a mode ? In Windows an application can be launched from PowerShell as 'Start-Process -WindowStyle Hidden' or 'Start-Process -WindowStyle Minimized'. For macOS, is there an way to launch an application with miniatured window, either through the OS/App setting or through some command/script. In that case, how is hidden different from miniaturize ? They seem to be similar. Any inputs will help to get clarity on this.
0
0
3.6k
Nov ’22
curl not working properly under Monterey (12.3.1)
We have a problem with curl. Under Big Sur, the command curl 'ftp://ftp.myserver/myPath/my File' -u 'myusername':'mypassword' properly downloads the file. Under Monterey, the same command throws an error: curl: (3) URL using bad/illegal format or missing URL Any advice, workaround etc. is highly appreciated. The behaviour is the same, whether the command is issued in Terminal, or as a shell script in a Applescript application created in XCode.
4
0
3.1k
Nov ’22
symbol collision being reported on stderr by opendiff (a part of Xcode)
Not really a "developer" question per se, but related to the Xcode developer tools as run on a new M1 Mac running Monterey (12.1). When running various tools, such as "opendiff" I receive the following error reported on stderr: objc[6599]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libauthinstall.dylib (0x1e30deb90) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x108f7c2c8). One of the two will be used. Which one is undefined. objc[6599]: Class AMSupportURLSession is implemented in both /usr/lib/libauthinstall.dylib (0x1e30debe0) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x108f7c318). One of the two will be used. Which one is undefined. I'm working on the assumption that two conflicting libraries have been installed that provide a definition for the same symbol, and (since the opendiff program loads and runs) that at least for now, both symbols are defined in a similar enough way that whichever one is actually loaded works. I was at first very confused because there is actually no file on my system with the name /usr/lib/libauthinstall.dylib While this makes the error message rather confusing, I found this thread https://developer.apple.com/forums/thread/692383 that makes clear that many of the files in /usr/lib in an earlier part of the release process are amalgamated, and I assume that libauthinstall.dylib is one of these files. Given that this implies that the /usr/lib versions are likely the "more authoritative" versions, I am not actually sure why the directory /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework even exists -- I don't do any mobile development on this machine, so I assume that it came out of the setup, or possible from a migration of the user content from a machine running BigSur (content transferred using TimeMachine). Does anyone have any ideas regarding: (a) how this came about (as it appears that both sources are installed by Apple), and (b) how I can remove the conflict. I'm using opendiff in a project workflow and really don't want to see the workflow polluted with spurious error messages, not to mention the fragility of not being able to control which symbol these tools are actually using. Thanks in advance for any thoughts. EDIT: There are a number of posts around the 'net linking this error with "homebrew". I believe that this is at least partially a red herring, because: a) I don't use homebrew (though I do use MacPorts) -- I avoid hombrew largely because of its plan to play in /usr while MacPorts keeps everything well out of the way in /opt b) both of the named sources are from Apple.
20
2
24k
Oct ’22
ld: library not found for -lstdc++fs
make command is failing with the below mentioned lines. Can someone please help me with this? Thanks! ld: library not found for -lstdc++fs clang: error: linker command failed with exit code 1 (use -v to see invocation) Below are the list of gcc and clang versions. Target: x86_64-apple-darwin21.6.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin (base) rmagesh@Mageshs-MacBook-Pro src % gcc -v Apple clang version 14.0.0 (clang-1400.0.29.102) Target: x86_64-apple-darwin21.6.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin (base) rmagesh@Mageshs-MacBook-Pro src % clang++ -c clang: error: no input files (base) rmagesh@Mageshs-MacBook-Pro src % clang++ -v Apple clang version 14.0.0 (clang-1400.0.29.102) Target: x86_64-apple-darwin21.6.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin (base) rmagesh@Mageshs-MacBook-Pro src % clang -v Apple clang version 14.0.0 (clang-1400.0.29.102) Target: x86_64-apple-darwin21.6.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin (base) rmagesh@Mageshs-MacBook-Pro src % `
1
0
2.6k
Sep ’22
MacOS cli program permission denied
Hi all. I'm currently experiencing a problem where I'm testing the HelloPhotogrametry command line app released by Apple. I keep on getting the zsh: permission denied notice. I chmod 777 everything in the folder but the issue still persists. richardmac@RichardMacdeMacBook-Pro CreatingAPhotogrammetryCommandLineApp % ./HelloPhotogrammetry ./Aug\ 15,\ 2022\ at\ 8:52:59\ PM ./newfolder -d full -o sequential -f normal zsh: permission denied: ./HelloPhotogrammetry I typed ls -l, and all the files have rwx capabilities. total 8 drwxrwxrwx@ 20 richardmac staff 640 8 15 20:54 Aug 15, 2022 at 8:52:59 PM drwxrwxrwx@ 3 richardmac staff 96 11 3 2021 Configuration drwxrwxrwx@ 6 richardmac staff 192 11 3 2021 Data drwxrwxrwx@ 4 richardmac staff 128 8 16 10:15 HelloPhotogrammetry drwxrwxrwx@ 6 richardmac staff 192 8 16 09:22 HelloPhotogrammetry.xcodeproj drwxrwxrwx@ 4 richardmac staff 128 11 3 2021 LICENSE -rwxrwxrwx@ 1 richardmac staff 282 11 3 2021 README.md drwxrwxrwx 2 richardmac staff 64 8 15 21:41 newfolder I checked the documents folder, it has rwx capabilities as well. total 0 drwx------+ 6 richardmac staff 192 8 15 14:25 Desktop drwxrwxrwx+ 7 richardmac staff 224 8 15 21:41 Documents drwx------+ 31 richardmac staff 992 8 15 21:25 Downloads drwx------@ 86 richardmac staff 2752 8 15 15:35 Library drwx------ 6 richardmac staff 192 8 13 03:22 Movies drwx------+ 5 richardmac staff 160 8 13 17:45 Music drwx------+ 5 richardmac staff 160 8 13 17:45 Pictures drwxr-xr-x+ 4 richardmac staff 128 8 12 20:42 Public -rw-r--r-- 1 richardmac staff 0 8 13 02:04 brew_install total 32 drwxrwxrwx@ 13 richardmac staff 416 8 16 10:15 CreatingAPhotogrammetryCommandLineApp drwxr-xr-x@ 10 richardmac staff 320 8 15 10:25 GitHub The program folder is located at /Users/richardmac/documents/CreatingAPhotogrammetryCommandLineApp Any help is greatly appreciated.
3
0
2.4k
Aug ’22
How to repair on macOS 13.5 environment variables for a CONDA installlation with valid intelpython package
I have a good installation regarding Intel python3.9 with all modules loading perfectly. However, I have a bad behavior with the conda part of Intel OneAPI : I can't even do a $ conda list or a $ conda env list , I get the following message : $ conda env list __conda_exe:2: no such file or directory: /opt/intel/oneapi/intelpython/latest/bin/conda So I have done the following export : export CONDA_EXE=/opt/intel/oneapi/intelpython/latest/condabin/conda And I redo the previous command, I get : $ conda list Traceback (most recent call last): File "/opt/intel/oneapi/intelpython/latest/condabin/conda", line 12, in <module> from conda.cli import main ModuleNotFoundError: No module named 'conda' I don't know what to do further to fix this Intel Conda installation. If someone have already met this kind of issue of could see what's wrong ... I would like to avoid to remove all the Intel python distribution part. EDIT : I forgot to mention that I have into my ~/.zshrc this part : # !! Contents within this block are managed by 'conda init' !! __conda_setup="$('/opt/intel/oneapi/intelpython/latest/condabin/conda' 'shell.zsh' 'hook' 2> /dev/null)" if [ $? -eq 0 ]; then eval "$__conda_setup" else if [ -f "/opt/intel/oneapi/intelpython/latest/etc/profile.d/conda.sh" ]; then . "/opt/intel/oneapi/intelpython/latest/etc/profile.d/conda.sh" else export PATH="/opt/intel/oneapi/intelpython/latest/bin:$PATH" fi fi unset __conda_setup
Replies
0
Boosts
0
Views
845
Activity
Aug ’23
How to sudo command in xcode cloud ci_post_clone.sh?
I'm installing texturepacker in ci_post_clone.sh script using below command in Xcode Cloud workflow. ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null ; brew install caskroom/cask/brew-cask 2> /dev/null brew install --cask texturepacker But I'm getting sudo warning in log. ==> Downloading https://www.codeandweb.com/download/texturepacker/6.0.2/TexturePacker-6.0.2.dmg ==> Installing Cask texturepacker sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper sudo: a password is required sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper sudo: a password is required sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper sudo: a password is required sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper sudo: a password is required ==> Purging files for version 6.0.2 of Cask texturepacker Error: Permission denied @ dir_s_mkdir - /usr/local/Caskroom How can i fix this issue? Any idea or suggestions would be appreciated. Thank You
Replies
2
Boosts
6
Views
3.6k
Activity
Aug ’23
Persistent "libcrypto loading in an unsafe way" Error with Ruby on Rails on macOS
Hello, I am using a 2017 MacBook Pro with an Intel chip, running Ruby version 2.7.8, Rails 5.2.6, and OpenSSL 1.1. I've installed Ruby using rbenv and ruby-build. I am persistently receiving the following error when trying to create a database with Rails: WARNING: /Users/logan/.rbenv/versions/2.7.8/bin/ruby is loading libcrypto in an unsafe way zsh: abort bundle exec bin/rails db:create Steps I have taken to troubleshoot this issue: Installed OpenSSL via Homebrew and ensured that the version is 1.1. Uninstalled and reinstalled Ruby with rbenv, specifying the correct OpenSSL directory. Set the DYLD_LIBRARY_PATH environment variable to the path where Homebrew installed the OpenSSL libraries before running the Ruby process. Unfortunately, none of these steps have resolved the problem. I am seeking assistance in resolving this issue. Any guidance or insight into what might be causing this error and how to fix it would be greatly appreciated. Thank you in advance for your time and help!
Replies
0
Boosts
0
Views
1.2k
Activity
Jul ’23
Run shell command from an x86_64 shell in swift
I need to run a series of shell commands from swift, in x86_64 mode, how could I achieve this?
Replies
0
Boosts
0
Views
723
Activity
Jun ’23
when I'm going to run this code unexpected EOF while looking for matching and syntax error: unexpected end of file how can solve this anyone please help
import speech_recognition as sr import os def say(text): os.system(f"say{text}") say("hello I'm jarvis") I have got this prob please help sh: -c: line 0: unexpected EOF while looking for matching `'' sh: -c: line 1: syntax error: unexpected end of file here is the script file #!/usr/bin/env bash _tqdm(){ local cur prv cur="${COMP_WORDS[COMP_CWORD]}" prv="${COMP_WORDS[COMP_CWORD - 1]}" case ${prv} in --bar_format|--buf_size|--colour|--comppath|--delay|--delim|--desc|--initial|--lock_args|--manpath|--maxinterval|--mininterval|--miniters|--ncols|--nrows|--position|--postfix|--smoothing|--total|--unit|--unit_divisor) # await user input ;; "--log") COMPREPLY=($(compgen -W 'CRITICAL FATAL ERROR WARN WARNING INFO DEBUG NOTSET' -- ${cur})) ;; *) COMPREPLY=($(compgen -W '--ascii --bar_format --buf_size --bytes --colour --comppath --delay --delim --desc --disable --dynamic_ncols --help --initial --leave --lock_args --log --manpath --maxinterval --mininterval --miniters --ncols --nrows --null --position --postfix --smoothing --tee --total --unit --unit_divisor --unit_scale --update --update_to --version --write_bytes -h -v' -- ${cur})) ;; esac } complete -F _tqdm tqdm
Replies
0
Boosts
0
Views
898
Activity
May ’23
zsh : command not found: pod
When i try to install podfiles after this command $ sudo gem install cocoapods its getting zsh command not found mac OS 13.4 i try some commands but no luck $ sudo gem install -n /usr/local/bin cocoapods $ sudo gem install cocoapods -V $ gem update --system
Replies
0
Boosts
0
Views
877
Activity
May ’23
Killed: 9
Please, advise any solution for the further problem: terminal responds to any command 'Killed: 9', even if I try to do suggested command for updating (on the screenshot). Mac M1 and its the newest OS Ventura 13.2.1.
Replies
0
Boosts
0
Views
1.6k
Activity
Mar ’23
Xcode automatically cancelled custom script which is added on build phase script
I am trying to run custom scrip which I can run manually on command but I want that script to be run on xcode when I build the project for Any iOS device Target. I have not specify any input or output files on this cause I don't have any requirements for that.It runs for some seconds and then xcode automatically cancelled it. can anyone guide me on this. thanks in advance. Please see attached image for reference. Note - Script could take 10-15 minutes of time to complete, Could this be a issue of automatically cancelled the scrip?
Replies
1
Boosts
0
Views
1.2k
Activity
Mar ’23
While executing gem ... (Gem::FilePermissionError)
Hi Guys, I am using the new Apple M1 Max and macOS Monterey, I am trying to install cocoa pod but getting errors like below. I tried to fix it with help of StackOverflow and many ways but no luck. Please help to resolve this issue. ERROR: While executing gem ... (Gem::FilePermissionError)   You don't have write permissions for the /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/gems/2.6.0 directory.
Replies
11
Boosts
4
Views
46k
Activity
Mar ’23
Iphone Console and Logs Symbols # ?
Can someone please tell me the difference between what CommCenter and CommCenter# is in Iphone Console? Examples: default 19:32:54.356353-0500 CommCenter[bambi.call]: BambiCallActivity: BambiCallStartAction t0NtJ2SjC*********: queueing prerequisite [0] BambiCallPrepareAction t0NtJ2SjC********* ( I have no idea ) CommCenter#I PerformDial number: , bbCall: false default 19:32:54.281348-0500 CommCenterreq: Bin=[] EXAMPLE default 19:33:09.005573-0500 locationd CellService, convertCells, 1, neighbors, 1 VS default 19:33:09.005634-0500 locationd #clct,CLCTCellInfo, received cellList size, default 19:33:09.006143-0500 locationd #EmergCon,EMERGENCY:notification,kCellInfoNotification At the very least there is CommCenter and Locationd with and without #. What does this mean? Thanks!
Replies
1
Boosts
0
Views
963
Activity
Feb ’23
Create finder tag from command line
As of now the only way to create the Finder tag is from Finder preferences. I have a requirement to create the Finder tags programmatically either from Swift or from the shell script. I got the command to set the tag for any file. But did not find any option to create the custom tag from command line/swift
Replies
3
Boosts
0
Views
1.1k
Activity
Feb ’23
HLS Streaming Tools 1.17 (mediastreamvalidator) trace trap macOS 13 Ventura
Currently the latest HLS Streaming Tools - mediastreamvalidator fails to run on the latest MacOS (Ventura) throwing a trace trap with exit code 133. % sudo mediastreamvalidator -i https://demo.unified-streaming.com/k8s/live/scte35.isml/.m3u8 Password: mediastreamvalidator: mediastreamvalidator: Version 1.17 (593.5-220531) Validate https://demo.unified-streaming.com/k8s/live/scte35.isml/.m3u8, fetch http [/k8s/live/scte35.isml/.m3u8] Started root playlist download [scte35-audio_eng=64000-video=500000.m3u8] Started media playlist download [scte35-audio_eng=64000.m3u8] Started media playlist download [scte35-audio_eng=128000-video=1000000.m3u8] Started media playlist download [keyframes/scte35-video=500000.m3u8] Started media playlist download [scte35-audio_eng=128000.m3u8] Started media playlist download zsh: trace trap sudo mediastreamvalidator -i ?133 ~ % system_profiler SPSoftwareDataType SPHardwareDataType Software: System Software Overview: System Version: macOS 13.0 (22A380) Kernel Version: Darwin 22.1.0 Boot Volume: Macintosh HD Boot Mode: Normal Computer Name: usp-mbp User Name: Jamie Fletcher (jamie) Secure Virtual Memory: Enabled System Integrity Protection: Enabled Time since boot: 8 minutes, 30 seconds Hardware: Hardware Overview: Model Name: MacBook Pro Model Identifier: MacBookPro18,4 Model Number: Z15G00146N/A Chip: Apple M1 Max Total Number of Cores: 10 (8 performance and 2 efficiency) Memory: 32 GB System Firmware Version: 8419.41.10 OS Loader Version: 8419.41.10 Serial Number (system): *************** Hardware UUID: 7264D2D7-B421-5372-B972-5FA81FB7A919 Provisioning UDID: 00006001-000A70283E02801E Activation Lock Status: Enabled √ ~ % curl https://demo.unified-streaming.com/k8s/live/scte35.isml/.m3u8 #EXTM3U #EXT-X-VERSION:4 ## Created with Unified Streaming Platform (version=1.11.20-26889) # AUDIO groups #EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio-aacl-64",LANGUAGE="en",NAME="English",DEFAULT=YES,AUTOSELECT=YES,CHANNELS="1" #EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio-aacl-128",LANGUAGE="en",NAME="English",DEFAULT=YES,AUTOSELECT=YES,CHANNELS="1" # variants #EXT-X-STREAM-INF:BANDWIDTH=658000,AVERAGE-BANDWIDTH=598000,CODECS="mp4a.40.2,avc1.42C01F",RESOLUTION=1280x720,FRAME-RATE=25,AUDIO="audio-aacl-64",CLOSED-CAPTIONS=NONE scte35-audio_eng=64000-video=500000.m3u8 #EXT-X-STREAM-INF:BANDWIDTH=1316000,AVERAGE-BANDWIDTH=1196000,CODECS="mp4a.40.2,avc1.42C01F",RESOLUTION=1280x720,FRAME-RATE=25,AUDIO="audio-aacl-128",CLOSED-CAPTIONS=NONE scte35-audio_eng=128000-video=1000000.m3u8 # variants #EXT-X-STREAM-INF:BANDWIDTH=75000,AVERAGE-BANDWIDTH=68000,CODECS="mp4a.40.2",AUDIO="audio-aacl-64" scte35-audio_eng=64000.m3u8 #EXT-X-STREAM-INF:BANDWIDTH=150000,AVERAGE-BANDWIDTH=136000,CODECS="mp4a.40.2",AUDIO="audio-aacl-128" scte35-audio_eng=128000.m3u8 # keyframes #EXT-X-I-FRAME-STREAM-INF:BANDWIDTH=73000,CODECS="avc1.42C01F",RESOLUTION=1280x720,URI="keyframes/scte35-video=500000.m3u8
Replies
3
Boosts
0
Views
2.4k
Activity
Jan ’23
Deleting app(.app extension) after the execution complete is not working in Mac OS
I am working on the Project and i'm facing technical issue. It is a exported app from applescript and i'm performing self delete means after the execution is complete it destroys from that location. I'm using the below shell script in applescript to invoke deletion **do shell script "sleep 5 && rm -rf " The .app path posix location" &"** When i run locally it is working perfectly but after codesign it is not working. Also when we copy the file to other location then it is working. I'm little confused and not able to identify the issue. Please help me out and really appreciate your help. Thanks & Regards, Rajkumar V
Replies
0
Boosts
1
Views
845
Activity
Jan ’23
zsh: abort <tool_name>
Hi, I downloaded and ran a command line tool (on M1 Max) that natively supports Apple Silicon. I was able to run the tool several times without a problem. However, after several execution it suddenly stopped working with the following terminal output: "zsh: abort <tool_name>. I had a look at the Crash Report and it says: "exception" : {"codes":"0x0000000000000000, 0x0000000000000000","rawCodes":[0,0],"type":"EXC_CRASH","signal":"SIGABRT"}, "asi" : {"libsystem_c.dylib":["stack buffer overflow"]}, First, I thought it was a code signing problem but then I would have seen SIGKILL exception. Any ideas what's wrong? Before I was trying to run another application from a docker image which could not access some of the libsystem_c libraries (not actually sure whether this was true but it said that at least similar libraries were 'corrupted' or something similar and then it suggested to move to the bin which I think I did).
Replies
1
Boosts
0
Views
1.9k
Activity
Dec ’22
How to launch an application in Minimized mode in macOS?
In macOS, an application can be launched in hidden mode through the login items i.e. Preference -> Users & Groups -> For any user, Login Items -> Select the application and click on 'Launch as Hidden'. When this user logs into the machine, the selected application would be launched - app icon would be visible in dock panel and application window would not be visible. Application window becomes visible only when the app icon is clicked once. Documentation of all also talks about miniaturizing all windows. I understand miniaturize-all would end up in all windows being minimized. Can an application be launched in such a mode ? In Windows an application can be launched from PowerShell as 'Start-Process -WindowStyle Hidden' or 'Start-Process -WindowStyle Minimized'. For macOS, is there an way to launch an application with miniatured window, either through the OS/App setting or through some command/script. In that case, how is hidden different from miniaturize ? They seem to be similar. Any inputs will help to get clarity on this.
Replies
0
Boosts
0
Views
3.6k
Activity
Nov ’22
curl not working properly under Monterey (12.3.1)
We have a problem with curl. Under Big Sur, the command curl 'ftp://ftp.myserver/myPath/my File' -u 'myusername':'mypassword' properly downloads the file. Under Monterey, the same command throws an error: curl: (3) URL using bad/illegal format or missing URL Any advice, workaround etc. is highly appreciated. The behaviour is the same, whether the command is issued in Terminal, or as a shell script in a Applescript application created in XCode.
Replies
4
Boosts
0
Views
3.1k
Activity
Nov ’22
symbol collision being reported on stderr by opendiff (a part of Xcode)
Not really a "developer" question per se, but related to the Xcode developer tools as run on a new M1 Mac running Monterey (12.1). When running various tools, such as "opendiff" I receive the following error reported on stderr: objc[6599]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libauthinstall.dylib (0x1e30deb90) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x108f7c2c8). One of the two will be used. Which one is undefined. objc[6599]: Class AMSupportURLSession is implemented in both /usr/lib/libauthinstall.dylib (0x1e30debe0) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x108f7c318). One of the two will be used. Which one is undefined. I'm working on the assumption that two conflicting libraries have been installed that provide a definition for the same symbol, and (since the opendiff program loads and runs) that at least for now, both symbols are defined in a similar enough way that whichever one is actually loaded works. I was at first very confused because there is actually no file on my system with the name /usr/lib/libauthinstall.dylib While this makes the error message rather confusing, I found this thread https://developer.apple.com/forums/thread/692383 that makes clear that many of the files in /usr/lib in an earlier part of the release process are amalgamated, and I assume that libauthinstall.dylib is one of these files. Given that this implies that the /usr/lib versions are likely the "more authoritative" versions, I am not actually sure why the directory /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework even exists -- I don't do any mobile development on this machine, so I assume that it came out of the setup, or possible from a migration of the user content from a machine running BigSur (content transferred using TimeMachine). Does anyone have any ideas regarding: (a) how this came about (as it appears that both sources are installed by Apple), and (b) how I can remove the conflict. I'm using opendiff in a project workflow and really don't want to see the workflow polluted with spurious error messages, not to mention the fragility of not being able to control which symbol these tools are actually using. Thanks in advance for any thoughts. EDIT: There are a number of posts around the 'net linking this error with "homebrew". I believe that this is at least partially a red herring, because: a) I don't use homebrew (though I do use MacPorts) -- I avoid hombrew largely because of its plan to play in /usr while MacPorts keeps everything well out of the way in /opt b) both of the named sources are from Apple.
Replies
20
Boosts
2
Views
24k
Activity
Oct ’22
ld: library not found for -lstdc++fs
make command is failing with the below mentioned lines. Can someone please help me with this? Thanks! ld: library not found for -lstdc++fs clang: error: linker command failed with exit code 1 (use -v to see invocation) Below are the list of gcc and clang versions. Target: x86_64-apple-darwin21.6.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin (base) rmagesh@Mageshs-MacBook-Pro src % gcc -v Apple clang version 14.0.0 (clang-1400.0.29.102) Target: x86_64-apple-darwin21.6.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin (base) rmagesh@Mageshs-MacBook-Pro src % clang++ -c clang: error: no input files (base) rmagesh@Mageshs-MacBook-Pro src % clang++ -v Apple clang version 14.0.0 (clang-1400.0.29.102) Target: x86_64-apple-darwin21.6.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin (base) rmagesh@Mageshs-MacBook-Pro src % clang -v Apple clang version 14.0.0 (clang-1400.0.29.102) Target: x86_64-apple-darwin21.6.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin (base) rmagesh@Mageshs-MacBook-Pro src % `
Replies
1
Boosts
0
Views
2.6k
Activity
Sep ’22
can i upload new build with older version at app store?
my app is available on app store. i new to release an update but with older version is this possible? please guide me
Replies
2
Boosts
0
Views
4.6k
Activity
Aug ’22
MacOS cli program permission denied
Hi all. I'm currently experiencing a problem where I'm testing the HelloPhotogrametry command line app released by Apple. I keep on getting the zsh: permission denied notice. I chmod 777 everything in the folder but the issue still persists. richardmac@RichardMacdeMacBook-Pro CreatingAPhotogrammetryCommandLineApp % ./HelloPhotogrammetry ./Aug\ 15,\ 2022\ at\ 8:52:59\ PM ./newfolder -d full -o sequential -f normal zsh: permission denied: ./HelloPhotogrammetry I typed ls -l, and all the files have rwx capabilities. total 8 drwxrwxrwx@ 20 richardmac staff 640 8 15 20:54 Aug 15, 2022 at 8:52:59 PM drwxrwxrwx@ 3 richardmac staff 96 11 3 2021 Configuration drwxrwxrwx@ 6 richardmac staff 192 11 3 2021 Data drwxrwxrwx@ 4 richardmac staff 128 8 16 10:15 HelloPhotogrammetry drwxrwxrwx@ 6 richardmac staff 192 8 16 09:22 HelloPhotogrammetry.xcodeproj drwxrwxrwx@ 4 richardmac staff 128 11 3 2021 LICENSE -rwxrwxrwx@ 1 richardmac staff 282 11 3 2021 README.md drwxrwxrwx 2 richardmac staff 64 8 15 21:41 newfolder I checked the documents folder, it has rwx capabilities as well. total 0 drwx------+ 6 richardmac staff 192 8 15 14:25 Desktop drwxrwxrwx+ 7 richardmac staff 224 8 15 21:41 Documents drwx------+ 31 richardmac staff 992 8 15 21:25 Downloads drwx------@ 86 richardmac staff 2752 8 15 15:35 Library drwx------ 6 richardmac staff 192 8 13 03:22 Movies drwx------+ 5 richardmac staff 160 8 13 17:45 Music drwx------+ 5 richardmac staff 160 8 13 17:45 Pictures drwxr-xr-x+ 4 richardmac staff 128 8 12 20:42 Public -rw-r--r-- 1 richardmac staff 0 8 13 02:04 brew_install total 32 drwxrwxrwx@ 13 richardmac staff 416 8 16 10:15 CreatingAPhotogrammetryCommandLineApp drwxr-xr-x@ 10 richardmac staff 320 8 15 10:25 GitHub The program folder is located at /Users/richardmac/documents/CreatingAPhotogrammetryCommandLineApp Any help is greatly appreciated.
Replies
3
Boosts
0
Views
2.4k
Activity
Aug ’22