I had a problem while installing Snoopy which I couldn't resolve and couldn't find any answers to, so I spent over 8 hours figuring it out and I'm going to post it here so others don't need to struggle.
My problems were that the installation would fail when collecting PIL
The error was:
Could not find a version that satisfies the requirement PIL (from versions: )
No matching distribution found for PIL
Another error I got was an issue with a python library:
Command "/usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-7DSxKG/pylibpcap/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-UmzXwX-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-7DSxKG/pylibpcap/
The last error I got was that the dpkt couldn't download because of a 404.
the error message I got was:
Collecting https://dpkt.googlecode.com/files/dpkt-1.8.tar.gz
HTTP error 404 while getting https://dpkt.googlecode.com/files/dpkt-1.8.tar.gz
Could not install requirement https://dpkt.googlecode.com/files/dpkt-1.8.tar.gz because of error 404 Client Error: Not Found for url: https://dpkt.googlecode.com/files/dpkt-1.8.tar.gz
Could not install requirement https://dpkt.googlecode.com/files/dpkt-1.8.tar.gz because of HTTP error 404 Client Error: Not Found for url: https://dpkt.googlecode.com/files/dpkt-1.8.tar.gz for URL https://dpkt.googlecode.com/files/dpkt-1.8.tar.gz
After I fixed these errors snoopy installed perfectly, I'll post how I sloved all of these issues now.
I solved these issues by doing the following:
Execute the following commands in terminal.
apt-get update
apt-get upgrade
apt-get install python-libpcap
then either in terminal with nano or using your trusty text editor open the snoopy-ng install.sh:
In terminal cd to where install.sh is kept and type
nano install.sh
go to
echo "[+] Downloading dpkt..."
and by the link link which should be "https://dpkt.googlecode.com/files/dpkt-1.8.tar.gz"
change it to
http://pkgs.fedoraproject.org/repo/pkgs/python-dpkt/dpkt-1.8.tar.gz/0f8e5a4d4b2f5d5faaf7bbfbf3e1e8b7/dpkt-1.8.tar.gz
next save the install.sh, in nano do this by pressing ctrl + x this will exit the file and prompt you to save the file, press y to save changes next go to terminal and type
sudo sh install.sh
Voila! Snoopy should install without any issues.
Related
I'm having a few issues. I'm using Kali Linux. In the terminal, I attempted to do
apt-get update but I'm getting this message back,
'bash: /usr/bin/apt-get: cannot execute binary file: Exec format
error'
It started having this issue when I attempted to install Visual Studio Code via terminal command dpkg -i code_1.41.1-1576681836_amd64.deb. Although the vscode icon shows up in 'Accessories', once I try to open the program, it doesn't open. So I attempted to do the apt-get update just in case something was being missed. Any help would be greatly appreciated.
I've been trying the BuildBot First Run tutorial. It starts by creating a master and looks quite simple and straightforward, but I've encountered problems with the step pip install 'buildbot[bundle]'.
I get this error message (this is the end of the log):
building 'twisted.test.raiser' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
----------------------------------------
Command "c:\users\remi\appdata\local\programs\python\python37-32\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Remi\\AppData\\Local\\Temp\\pip-install-10x0qptg\\Twisted\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\Remi\AppData\Local\Temp\pip-record-c63k2sci\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\Remi\AppData\Local\Temp\pip-install-10x0qptg\Twisted\
I've tried installing mscv build tools, but still get the same message.
Any ideas how I could fix the problem?
Problem is twisted does not yet support python 3.7 (see related issue here: Installing Twisted for Python using pip: error: Microsoft Visual Studio failed with exit status 2).
You can work around this problem by installing precompiled twisted binaries. For example from here: https://www.lfd.uci.edu/~gohlke/pythonlibs/#twisted
E.g. in your case download Twisted‑18.9.0‑cp37‑cp37m‑win32.whl and do
pip install Twisted‑18.9.0‑cp37‑cp37m‑win32.whl
Then retry the buildbot install.
pip install 'buildbot[bundle]'
I installed the Ripple rpm repo following documentation
(step 1)
$ sudo rpm -Uvh
https://mirrors.ripple.com/ripple-repo-el7.rpm
Then (step2) I run command:
sudo yum install --enablerepo=ripple-stable rippled
but I get the error:
https://mirrors.ripple.com/rpm/%24releasever/stable/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: ripple-stable. Please verify its path and try again
Does anyone know how to resolve it?
That error message occurs when attempting to install the rippled package on an unsupported environment.
The rippled rpm package is currently only available for CentOS/RHEL 7 (and Ubuntu 15+ using alien)
You could try installing with:
sudo yum install --enablerepo=ripple-stable --releasever=el7 rippled
but YMMV.
\The URL is suspect - it says %24releasever which is URL-encoded $releasever which means your yum isn't filling in that blank, e.g. .../rpm/7/stable/.
Try hard-coding it in the file you can find in /etc/yum.repos.d/ that your step one installed.
I am trying to install mongodb using the instructions provided on this page.
http://thecodebarbarian.wordpress.com/2013/07/22/introduction-to-the-mean-stack-part-one-setting-up-your-tools/
I get to the step where you do "sudo apt-get update" and most of this runs just fine until I get the error as follows.
E: GPG error: http://downlaods-distro.mongodb.org dist InRelease: Clearsigned file isn't valid, got 'NODATA' (does the network require authentication?)
This means I can't continue with the installation. Is there any way I can fix this? I am completely lost.
Thanks in advance for your help.
Trying to install mysql-python. Got following error. Got mysql and pythond already installed. Any help will be highly appreciated
[root#uu include]# easy_install mysql-python
Searching for mysql-python
Reading http://cheeseshop.python.org/pypi/mysql-python/
Couldn't find index page for 'mysql-python' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://cheeseshop.python.org/pypi/
Reading http://cheeseshop.python.org/pypi/MySQL-python/1.2.3c1
Reading http://sourceforge.net/projects/mysql-python
Best match: MySQL-python 1.2.3c1
Downloading http://pypi.python.org/packages/source/M/MySQL-python/MySQL-python-1.2.3c1.tar.gz#md5=310dd856e439d070b59ece6dd7a0734d
Processing MySQL-python-1.2.3c1.tar.gz
Running MySQL-python-1.2.3c1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-toQ0nx/MySQL-python-1.2.3c1/egg-dist-tmp-OeN5eG
unable to execute gcc: No such file or directory
error: Setup script exited with error: command 'gcc' failed with exit status 1
This will install GCC and others often required:
yum groupinstall 'Development Tools'
Can also be installed individual i.e yum install gcc
you need to install gcc (on centos, some variety of dev-tools)