For more details, please see ourCookie Policy.


Fibre Channel (SAN)

Reply
New Contributor
Posts: 4
Registered: ‎03-29-2016

Using pyFOS,getting error "/usr/bin/env: python3: No such file or directory"Please advise

I am using pyFOS and trying to test it by switch_show.py but getting error "/usr/bin/env: python3: No such file or directory"

Regular Contributor
Posts: 208
Registered: ‎04-04-2018

Re: Using pyFOS,getting error "/usr/bin/env: python3: No such file or directory"Please advise

Hello,

 

did you have proper installation of python ?

Please mark this response as "Accept as Solution" if it answers your question.

Marian Bezeg
Occasional Contributor
Posts: 13
Registered: ‎02-16-2018

Re: Using pyFOS,getting error "/usr/bin/env: python3: No such file or directory"Please advise

Did you exported the path

export PYTHONPATH=~/python_lib/lib/python3.5/site-packages

Need to execute the script

python3 switch_show.py

New Contributor
Posts: 4
Registered: ‎03-29-2016

Re: Using pyFOS,getting error "/usr/bin/env: python3: No such file or directory"Please advise

I run the pyFOS script with python3 switch_show.py

but getting new error

 

Traceback (most recent call last):
File "switch_show.py", line 41, in <module>
from pyfos import pyfos_auth
ImportError: No module named 'pyfos'

Occasional Contributor
Posts: 13
Registered: ‎02-16-2018

Re: Using pyFOS,getting error "/usr/bin/env: python3: No such file or directory"Please advise

Step 1:

Export Python path

 

export PYTHONPATH=~/python_lib/lib/python3.5/site-packages

 

step 2:

check if the export python_lib packages for pyfos are working

 

Get into the directory : /python_lib/lib/python3.5/site-packages/pyfos

$ python3

Type "help", "copyright", "credits" or "license" for more information.

>>> import sys

>>> import pyfos.pyfos_auth as pyfos_auth

>>> import pyfos.pyfos_brocade_fibrechannel_switch as pyfos_switch

 

If the output looks like above.

exit from python.

 

step 3:

 

cd utils/switch

 

execute - python3 switch_show.py -i <ipaddress> -- Idealy it should work. 

 

If it is not working check at the installation process

New Contributor
Posts: 4
Registered: ‎03-29-2016

Re: Using pyFOS,getting error "/usr/bin/env: python3: No such file or directory"Please advise

I execute above commands,but still getting error
Python 3.5.6 (default, Nov 30 2018, 14:10:57)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-36)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> import pyfos.pyfos_auth as pyfos_auth
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named 'pyfos'

New Contributor
Posts: 4
Registered: ‎03-29-2016

Re: Using pyFOS,getting error "/usr/bin/env: python3: No such file or directory"Please advise

I execute above commands,but still getting error
Python 3.5.6 (default, Nov 30 2018, 14:10:57)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-36)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> import pyfos.pyfos_auth as pyfos_auth
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named 'pyfos'
Occasional Contributor
Posts: 13
Registered: ‎02-16-2018

Re: Using pyFOS,getting error "/usr/bin/env: python3: No such file or directory"Please advise

I believe you need to check on the pyfos installation.

Join the Broadcom Community

Get quick and easy access to valuable resources across the Broadcom Community Network.