Closed MaynulIslam closed 6 years ago
This means that your setuptools are out of date.
You can fix this by doing: pip install --upgrade setuptools
Thanks @Sanjay-B and I hope that worked. I'm going to close the issue though since it isn't related to this package.
Thanks @Sanjay-B
Update didnt help: /usr/bin/python3.5: can't open file '/home/j/Desktop/PycharmProjects/untitled/DjangoEcommerce/src/setup.py': [Errno 2] No such file or directory
Shold by setup.py be in /urs/ rather than in project files at /home?
in terminal use the following commands:
Tried different approaches to solve this issue but unsuccessfully.
Organic:/ organic$ sudo pip install --upgrade setuptools
Password:***
The directory '/Users/organic/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/Users/organic/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels 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 up-to-date: setuptools in /Library/Python/2.7/site-packages (40.2.0)
Organic:~ organic$ sudo python setup.py
(null): can't open file 'setup.py': [Errno 2] No such file or directory
What happens if you do the following?:
Maybe this also needed: chmod 777 fail2ban-0.11.0
Organic-2:~ organic$ brew install fail2ban
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core, homebrew/cask).
==> New Formulae
golang-migrate
==> Updated Formulae
citus openrtsp
==> Downloading https://homebrew.bintray.com/bottles/fail2ban-0.10.3.1.mojave.bottle.tar.gz ==> Downloading from https://akamai.bintray.com/91/91a2bf679c865a054a60cc9b980b1c5649649686d7e99a95b ######################################################################## 100.0% ==> Pouring fail2ban-0.10.3.1.mojave.bottle.tar.gz ==> Caveats Before using Fail2Ban for the first time you should edit the jail configuration and enable the jails that you want to use, for instance ssh-ipfw. Also, make sure that they point to the correct configuration path. I.e. on Mountain Lion the sshd logfile should point to /var/log/system.log.
The Fail2Ban wiki has two pages with instructions for macOS Server that describes how to set up the Jails for the standard macOS Server services for the respective releases.
10.4: https://www.fail2ban.org/wiki/index.php/HOWTO_Mac_OS_X_Server_(10.4) 10.5: https://www.fail2ban.org/wiki/index.php/HOWTO_Mac_OS_X_Server_(10.5)
Please do not forget to update your configuration files. They are in /usr/local/etc/fail2ban.
To have launchd start fail2ban now and restart at startup: sudo brew services start fail2ban ==> Summary 🍺 /usr/local/Cellar/fail2ban/0.10.3.1: 497 files, 3.2MB
2. I could've run it and stop successfully.
Organic-2:~ organic$ sudo brew services start fail2ban
Service fail2ban
already started, use brew services restart fail2ban
to restart.
Stopping fail2ban
... (might take a while)
==> Successfully stopped fail2ban
(label: homebrew.mxcl.fail2ban)
3. Same error appeared.
Organic-2:~ organic$ sudo python setup.py build Password: python: can't open file 'setup.py': [Errno 2] No such file or directory
Organic-2:~ organic$ sudo python setup.py install python: can't open file 'setup.py': [Errno 2] No such file or directory
4. Sorry I'm using Mac for developing.
`/etc/fail2ban/jail.d this file is fully empty
`
5.
Best match: pyinotify 0.9.6 Processing pyinotify-0.9.6.tar.gz Writing /tmp/easy_install-rt6zpgm0/pyinotify-0.9.6/setup.cfg Running pyinotify-0.9.6/setup.py -q bdist_egg --dist-dir /tmp/easy_install-rt6zpgm0/pyinotify-0.9.6/egg-dist-tmp-0c7ik4t7 inotify is not available on macosx-10.9-x86_64 error: Setup script exited with
I'm using linux, and unfortunatelly I know nothing about Mac systems, but I don't think that linux commands won't work on that system :-/. I think the problem right now is that the Python Setuptools isn't installed, or did you installed previously? If I think well, then nowadays the " ez_setup.py " is: " easy_install.py " ( in position 4 ) or another method: https://pip.pypa.io/en/stable/installing/ ( get-pip.py also installs setuptools [2] and wheel if they are not already. setuptools is required to install source distributions. )
Quote from: Lingchao Cao "1) Download ez_setup.py module from: https://pypi.python.org/pypi/setuptools 2) Open a Terminal 3) cd to the directory where you put the 'ez_setup.py' 4) type 'python ez_setup.py' and run it. 5) You should have it then."
This command apt-get
doesn't work on MacOS just in case.
What you quoted above from Lingchao Cao hasn't helped, but you can see that pip install setuptools
has no issue with an installation so far. Just couldn't be able to change the folder from /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (40.2.0)
to /anaconda3/lib/python3.7/site-packages
.
Organic-2:~ organic$ pip install setuptools
Requirement already satisfied: setuptools in /anaconda3/lib/python3.6/site-packages (39.1.0)
Organic-2:~ organic$ pip install setuptools --upgrade
Collecting setuptools
Using cached https://files.pythonhosted.org/packages/66/e8/570bb5ca88a8bcd2a1db9c6246bb66615750663ffaaeada95b04ffe74e12/setuptools-40.2.0-py2.py3-none-any.whl
tensorflow 1.10.1 has requirement setuptools<=39.1.0, but you'll have setuptools 40.2.0 which is incompatible.
Installing collected packages: setuptools
Found existing installation: setuptools 39.1.0
Uninstalling setuptools-39.1.0:
Successfully uninstalled setuptools-39.1.0
Successfully installed setuptools-40.2.0
Organic-2:~ organic$ pip3 install setuptools --upgrade
Requirement already up-to-date: setuptools in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (40.2.0)
Traceback (most recent call last):
File "ifmgr_cisco_xr.py", line 3, in
getting this errorr while i am trying to print Hello World code .can someone kindly help me for resolving this ??
(venv) admin22@mediacore:~$ sudo python setup.py install python: can't open file 'setup.py': [Errno 2] No such file or directory (venv) admin22@mediacore:~$ sudo python setup.py install python: can't open file 'setup.py': [Errno 2] No such file or directory (venv) admin22@mediacore:~$ pip install --upgrade setuptools Requirement already up-to-date: setuptools in ./venv/lib/python3.5/site-packages (41.0.1) i doing upgrade to setuptool put cant install setup.py
(venv) admin22@mediacore:~$ sudo python setup.py install python: can't open file 'setup.py': [Errno 2] No such file or directory (venv) admin22@mediacore:~$ sudo python setup.py install python: can't open file 'setup.py': [Errno 2] No such file or directory (venv) admin22@mediacore:~$ pip install --upgrade setuptools Requirement already up-to-date: setuptools in ./venv/lib/python3.5/site-packages (41.0.1) i doing upgrade to setuptool put cant install setup.py
Same for me :(
so how we can solve it?
On Wed, Jun 12, 2019 at 3:15 PM Sarah Abraham notifications@github.com wrote:
(venv) admin22@mediacore:$ sudo python setup.py install python: can't open file 'setup.py': [Errno 2] No such file or directory (venv) admin22@mediacore:$ sudo python setup.py install python: can't open file 'setup.py': [Errno 2] No such file or directory (venv) admin22@mediacore:~$ pip install --upgrade setuptools Requirement already up-to-date: setuptools in ./venv/lib/python3.5/site-packages (41.0.1) i doing upgrade to setuptool put cant install setup.py
Same for me :(
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/facebook/prophet/issues/419?email_source=notifications&email_token=AKUI36S4CD2CBJISKLIBL4TP2DZGDA5CNFSM4EMDLTIKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXQLZOI#issuecomment-501267641, or mute the thread https://github.com/notifications/unsubscribe-auth/AKUI36VTHC3Z5OYTF2KA76DP2DZGDANCNFSM4EMDLTIA .
python: can't open file 'QRLJacker.py': [Errno 2] No such file or directory
plz solve me
$ chmod +× hackinsta.py chmod: hackinsta.py: No such file or directory
i need help pls on this C:\Users\CCUICT3\AppData\Local\Programs\Python\Python36\python.exe: can't open file './setup.py': [Errno 2] No such file or directory
C:\Users\user\AppData\Local\Programs\Python\Python38\python.exe: can't open file 'setup.py': [Errno 2] No such file or directory same error plz help
Tried different approaches to solve this issue but unsuccessfully.
Organic:/ organic$ sudo pip install --upgrade setuptools Password:*** The directory '/Users/organic/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. The directory '/Users/organic/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels 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 up-to-date: setuptools in /Library/Python/2.7/site-packages (40.2.0)
Organic:~ organic$ sudo python setup.py (null): can't open file 'setup.py': [Errno 2] No such file or directory `how did you get the solution?
I want to install routersploit but python rsf.py shows error plzz help me to fix it
Help how to fi x
You may need to downgrade the pip version. I'm using python 2.7, initally installed the pip 20 version, it also encountered the same error. Then I downgrade the pip to version 9, it works.
$ pip --version
pip 20.3.4 from /home/vagrant/.local/lib/python2.7/site-packages/pip (python 2.7)
$ sudo -H pip install grpcio
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Collecting grpcio
Using cached grpcio-1.41.1.tar.gz (21.2 MB)
ERROR: Command errored out with exit status 1:
command: /usr/bin/python2 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ZF8rcN/grpcio/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ZF8rcN/grpcio/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-yyErzP
cwd: /tmp/pip-install-ZF8rcN/grpcio/
Complete output (11 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-ZF8rcN/grpcio/setup.py", line 256, in <module>
if check_linker_need_libatomic():
File "/tmp/pip-install-ZF8rcN/grpcio/setup.py", line 206, in check_linker_need_libatomic
stderr=PIPE)
File "/usr/lib/python2.7/subprocess.py", line 394, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1047, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
vagrant@lab1-qz1-sr1-rk01-s1:~$ python setup.py egg_info
python: can't open file 'setup.py': [Errno 2] No such file or directory
$ pip --version
pip 9.0.1 from /usr/lib/python2.7/dist-packages (python 2.7)
$ pip install grpcio
Collecting grpcio
Cache entry deserialization failed, entry ignored
Cache entry deserialization failed, entry ignored
Downloading https://files.pythonhosted.org/packages/bd/81/6c704c002a992b9d6466c739e3e7687e0bb2365d8cd63d7fc8e95d502cb6/grpcio-1.41.1.tar.gz (21.2MB)
100% |████████████████████████████████| 21.2MB 78kB/s
Collecting six>=1.5.2 (from grpcio)
Downloading https://files.pythonhosted.org/packages/d9/5a/e7c31adbe875f2abbb91bd84cf2dc52d792b5a01506781dbcf25c91daf11/six-1.16.0-py2.py3-none-any.whl
Collecting enum34>=1.0.4 (from grpcio)
Downloading https://files.pythonhosted.org/packages/6f/2c/a9386903ece2ea85e9807e0e062174dc26fdce8b05f216d00491be29fad5/enum34-1.1.10-py2-none-any.whl
Collecting futures>=2.2.0 (from grpcio)
Downloading https://files.pythonhosted.org/packages/d8/a6/f46ae3f1da0cd4361c344888f59ec2f5785e69c872e175a748ef6071cdb5/futures-3.3.0-py2-none-any.whl
Building wheels for collected packages: grpcio
Running setup.py bdist_wheel for grpcio ... |^|^done
Stored in directory: /home/vagrant/.cache/pip/wheels/c4/93/65/a16057b837ece5b0b2a2a16253dfa7a649352db2e7370179e8
Successfully built grpcio
Installing collected packages: six, enum34, futures, grpcio
Successfully installed enum34-1.1.10 futures-3.3.0 grpcio-1.41.1 six-1.16.0
Same issue here I tried downgrading pip still did't help
python3: can't open file '/home/kali/infoga.py': [Errno 2] No such file or directory E: Unable to locate package setup.py E: Couldn't find any package by glob 'setup.py'
i need help pls on this C:\Users\CCUICT3\AppData\Local\Programs\Python\Python36\python.exe: can't open file './setup.py': [Errno 2] No such file or directory
Did you resolve the issue ?
Thanks @Sanjay-B hello plz can u tell me details of how to solve this problm
Thank you! I had to updated version I guess I had to do it again?
please help how to solve this?
There it says,when im trying to install Django.What should i try, to fix it? My os is linux