Thursday, April 25, 2019

Re: [Avid-L2] Re: [Editing-List] OT: Python Script in Terminal Problem?

 

Try this:

cd to the directory where "npack" is located.

Instead of typing "npack", try "./npack" (dot slash npack)
This tells bash to run a file in the current working directory.

You may also need to set the permissions of npack to executable

chmod +x npack



On Thu, Apr 25, 2019 at 7:56 PM Jay Mahavier jay_mahavier@icloud.com [Avid-L2] <Avid-L2@yahoogroups.com> wrote:


Mmmm, I can't specifically solve this for you, but there is something about adding the path of where the command is located to a list of locations for bash.  

Or it might be that you need to be in something other than bash.

Not sure, not for one slight bit, but it's a place to start looking.


(I really need to be way way way way more up on my scripting)


Jay


On Apr 25, 2019, at 9:53 PM, John Moore bigfish@pacbell.net [Editing-List] <Editing-List@yahoogroups.com> wrote:



Recently I posted about running an MD 5 checksum and I found that the network had it's own utility called npack that runs with Python.  We got it to work on one of our MacPros.  I'm trying to install it on another computer and I installed Python 3.7.3 successfully.  I ran the command to install npack in the terminal and it seemed to work but now when I try to run the script like we have on the other computer I get the following error:

-bash: npack: command not found

It's like the networks npack script isn't being seen.  I have confirmed it exists in the python script site folders so I don't know why it isn't being found.  The computer we got working was mac os 10.9.5 and I'm having issue with a computer with Mac OS 10.12.6 so maybe that's a factor.  

I've reached out to the network for some tech support but thought maybe some of the more code savvy folks might have a suggestion.

John Moore Barking Trout Productions Studio City, CA bigfish@pacbell.net





__._,_.___

Posted by: Ed Fuller <edfuller@gmail.com>
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (3)

Have you tried the highest rated email app?
With 4.5 stars in iTunes, the Yahoo Mail app is the highest rated email app on the market. What are you waiting for? Now you can access all your inboxes (Gmail, Outlook, AOL and more) in one place. Never delete an email again with 1000GB of free cloud storage.

this is the Avid-L2

SPONSORED LINKS
.

__,_._,___

No comments:

Post a Comment