Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disabled cache (pip/http) #75

Closed
krychevsk16 opened this issue Feb 20, 2017 · 18 comments
Closed

Disabled cache (pip/http) #75

krychevsk16 opened this issue Feb 20, 2017 · 18 comments
Assignees

Comments

@krychevsk16
Copy link

"The directory '/Users/name/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."

Still doesn't work even if I run it with "sudo -H ..."

@k4m4
Copy link
Owner

k4m4 commented Feb 21, 2017

Hi there buddy. Your question here has to do with pip permissions on your machine, not KickThemOut. You will find several, different solutions to this issue on stackoverflow. Thanks.

@k4m4 k4m4 closed this as completed Feb 21, 2017
@krychevsk16
Copy link
Author

I am a noob, what specifically should I search for?

@k4m4

@k4m4
Copy link
Owner

k4m4 commented Feb 22, 2017

Copy-paste the error and follow all the stackoverflow links. You will definitely find the solution somewhere on stackoverflow.

@krychevsk16
Copy link
Author

Alright, I will try to search for this:

"The directory '/Users/name/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."

@k4m4
Copy link
Owner

k4m4 commented Feb 22, 2017

Good idea. Let me know how it goes. :)

@krychevsk16
Copy link
Author

krychevsk16 commented Feb 22, 2017

Update #1:
Can't install scapy anymore:

name$: sudo pip install scapy

The directory '/Users/name/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/name/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. Collecting scapy Downloading scapy-2.3.3.tgz (1.4MB) 33% |██████████▊ | 471kB 40kB/s eta 0:00:24Exception:

Traceback (most recent call last): File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/basecommand.py", line 215, in main status = self.run(options, args) File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/commands/install.py", line 324, in run requirement_set.prepare_files(finder) File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_set.py", line 380, in prepare_files ignore_dependencies=self.ignore_dependencies)) File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_set.py", line 620, in _prepare_file session=self.session, hashes=hashes) File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/download.py", line 821, in unpack_url hashes=hashes File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/download.py", line 659, in unpack_http_url hashes) File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/download.py", line 882, in _download_http_url _download_url(resp, link, content_file, hashes) File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/download.py", line 603, in _download_url hashes.check_against_chunks(downloaded_chunks) File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/utils/hashes.py", line 46, in check_against_chunks for chunk in chunks: File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/download.py", line 571, in written_chunks for chunk in chunks: File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/utils/ui.py", line 139, in iter for x in it: File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/download.py", line 560, in resp_read decode_content=False): File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/_vendor/requests/packages/urllib3/response.py", line 357, in stream data = self.read(amt=amt, decode_content=decode_content) File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/_vendor/requests/packages/urllib3/response.py", line 324, in read flush_decoder = True File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/contextlib.py", line 35, in __exit__ self.gen.throw(type, value, traceback) File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/_vendor/requests/packages/urllib3/response.py", line 246, in _error_catcher raise ReadTimeoutError(self._pool, None, 'Read timed out.') ReadTimeoutError: HTTPSConnectionPool(host='pypi.python.org', port=443): Read timed out.

Brew doesn't even respond.

@krychevsk16
Copy link
Author

Update #2:
I tried with sudo -H (as this stupid pip suggested)

Collecting scapy Downloading scapy-2.3.3.tgz (1.4MB) 52% |█████████████████ | 747kB 127kB/s eta 0:00:06Exception: Traceback (most recent call last): File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/basecommand.py", line 215, in main status = self.run(options, args) File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/commands/install.py", line 324, in run requirement_set.prepare_files(finder) File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_set.py", line 380, in prepare_files ignore_dependencies=self.ignore_dependencies)) File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_set.py", line 620, in _prepare_file session=self.session, hashes=hashes) File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/download.py", line 821, in unpack_url hashes=hashes File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/download.py", line 659, in unpack_http_url hashes) File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/download.py", line 882, in _download_http_url _download_url(resp, link, content_file, hashes) File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/download.py", line 603, in _download_url hashes.check_against_chunks(downloaded_chunks) File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/utils/hashes.py", line 46, in check_against_chunks for chunk in chunks: File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/download.py", line 571, in written_chunks for chunk in chunks: File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/utils/ui.py", line 139, in iter for x in it: File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/download.py", line 560, in resp_read decode_content=False): File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/_vendor/requests/packages/urllib3/response.py", line 357, in stream data = self.read(amt=amt, decode_content=decode_content) File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/_vendor/requests/packages/urllib3/response.py", line 324, in read flush_decoder = True File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/contextlib.py", line 35, in __exit__ self.gen.throw(type, value, traceback) File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/_vendor/requests/packages/urllib3/response.py", line 246, in _error_catcher raise ReadTimeoutError(self._pool, None, 'Read timed out.') ReadTimeoutError: HTTPSConnectionPool(host='pypi.python.org', port=443): Read timed out.

@krychevsk16
Copy link
Author

Update #3:
Brew doesn't work with scapy:

brew install scapy

Error: No available formula with the name "scapy" ==> Searching for similarly named formulae... Error: No similarly named formulae found. ==> Searching taps... Error: No formulae found in taps.

@k4m4
Copy link
Owner

k4m4 commented Feb 25, 2017

Did you manage to solve your issue? @krychevsk16
(A tap into python should probably solve this.)

@krychevsk16
Copy link
Author

No, I gave up.

@k4m4

@k4m4
Copy link
Owner

k4m4 commented Feb 25, 2017

Sad to hear that buddy. I would be glad to help you out. What OS are you running?

@krychevsk16
Copy link
Author

I am currently running the latest Mac OS (10.12.3 (16D32))

@k4m4
Copy link
Owner

k4m4 commented Feb 25, 2017

Run the following commands first, to clean things up:

$ sudo pip uninstall pcapy
$ sudo pip uninstall scapy
$ brew uninstall libdnet scapy

Then:

$ sudo pip install pcapy
$ brew install libdnet
$ brew tap Homebrew/python
$ brew install scapy

Scapy will then ask you to execute two commands.
Let me know how it goes. :)

@krychevsk16
Copy link
Author

can't download scapy:

brew install scapy Error: No available formula with the name "scapy" ==> Searching for similarly named formulae... Error: No similarly named formulae found. ==> Searching taps... Error: No formulae found in taps.

@krychevsk16
Copy link
Author

I can install it with pip if possible

@k4m4
Copy link
Owner

k4m4 commented Feb 25, 2017

Try running $ sudo pip install scapy instead.
It will then - probably - instruct you to run 2 other commands for configuration purposes.

@krychevsk16
Copy link
Author

done.

@krychevsk16
Copy link
Author

I re-downloaded the program and when I type sudo python kickthemout.py

then i get this error:

ERROR: Network scanning failed. Please check your requirements configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants