gleb812 / pch2csd

The Clavia Nord Modular G2 Patch Convertor Project
MIT License
139 stars 11 forks source link

Error -bash: pch2csd: command not found on mac #22

Closed MacroMachines closed 2 years ago

MacroMachines commented 4 years ago

trying to get this working, installed pip and the newest python as mentioned, I get this warning when I do the pip3 install command :

NICHOLASs-MacBook-Pro:~ nicholascraftisiii$ sudo pip3 install pch2csd
WARNING: The directory '/Users/nicholascraftisiii/Library/Caches/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Requirement already satisfied: pch2csd in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (0.1.dev311)
Requirement already satisfied: tabulate in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from pch2csd) (0.8.7)
Requirement already satisfied: bitarray in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from pch2csd) (1.2.2)

the -H command took away the warning but still when I try terminal command pch2csd it gives the error: Error -bash: pch2csd: command not found on mac

gleb812 commented 4 years ago

Hi! You need to fix permissions for the directories with python libraries. also, after installation please check if pch2csd is in PATH

MacroMachines commented 4 years ago

Thank you for your response, unfortunately I am a person who doesn’t know all the details of operating in terminal I’m not sure how to do either of these things. I typically follow instructions provided by the git or installation pages. I will try searching google for “fix permission python libraries OS X” and “OS X how to check if something is in PATH terminal” and see if those help.

gleb812 commented 4 years ago

I completely understand you) Well - I think the easiest way to operate is to install VMWare virtual machine and run some easy Linux like Ubuntu inside. If you really interested in trying our project, I can easily give a video support.

MacroMachines commented 4 years ago

EDIT:: Nevermind, I got this working magically:

!!!!!!!!!!!!!

OK Super weird, I just did pch2csd -h again after not really doing anything that I can imagine helped, and I get:

NICHOLASs-MacBook-Pro:~ nicholascraftisiii$ pch2csd -h usage: pch2csd [-h] [-d] [-p | -c | -v | -e] [arg]

convert Clavia Nord Modular G2 patches to the Csound code

positional arguments: arg a pch2 file path or an UDO numerical ID

optional arguments: -h, --help show this help message and exit -d, --debug print a stack trace in case of error -p, --print parse the patch file and print its content -c, --check-udo validate the UDO template file (overrides '-p') -v, --version show program's version number and exit -e show the elephant and exit

Version 0.1.dev311, homepage: https://github.com/gleb812/pch2csd

----OLD MESSAGE

hehe easiest? :P I dig Linux but I can't say that it would be easy for me to navigate or useful outside exploring this project currently. it does appear that OSX terminal functions similarly to Linux FWIW, most of the commands seem to translate and similar package availability. I did try googling those things I mentioned but didn't find anything helpful, mostly stack overflow discussions about semi-related but different enough that I couldn't gather enough information to figure out how to do what you requested.

I did find this with regard to changing permissions in OSX terminal:

How to Modify Permissions with chmod For total control over permissions, you can use two Unix commands - ls and chmod - to display permissions and modify them. Assume you want to find a folder’s current permissions and then change them to 755. This would give you as the owner read, write and execute permissions, and everyone else read and execute permissions.

Here’s how to find a folder’s current permissions and change them:

Open the Terminal application.

Type ls –l, and then press Return. The symbolic permissions of the files and folders in your home directory are displayed, as shown below.

Type chmod 755 foldername, and then press Return. This changes the permissions of the folder to rwxr-xr-x.


I just am not sure what permissions I need to change and to what directories.

On the PATH topic, I was able to find that I can echo $PATH and I get this:

NICHOLASs-MacBook-Pro:~ nicholascraftisiii$ echo $PATH /Library/Frameworks/Python.framework/Versions/3.8/bin:/Users/nicholascraftisiii/.rvm/gems/ruby-2.6.5/bin:/Users/nicholascraftisiii/.rvm/gems/ruby-2.6.5@global/bin:/Users/nicholascraftisiii/.rvm/rubies/ruby-2.6.5/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/share/dotnet:/opt/X11/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Users/nicholascraftisiii/.rvm/bin

I also tried sudo nano /etc/paths but I don't see the same list. from this article: https://www.architectryan.com/2012/10/02/add-to-the-path-on-mac-os-x-mountain-lion/ I also am checking out this one https://www.cyberciti.biz/faq/appleosx-bash-unix-change-set-path-environment-variable/