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

pip installation error Pillow #17

Open
Indeserpen opened this issue Sep 4, 2016 · 9 comments
Open

pip installation error Pillow #17

Indeserpen opened this issue Sep 4, 2016 · 9 comments
Assignees

Comments

@Indeserpen
Copy link

Hello!
Run into problem when installing Ghiro!
System I use: Linux kali 4.6.0-kali1-amd64 #1 SMP Debian 4.6.4-1kali1 (2016-07-21) x86_64 GNU/Linux
Problem i run into:
root@kali:~/Forensic/ghiro# pip install -r requirements.txt
Collecting Django==1.9.7 (from -r requirements.txt (line 1))
Downloading Django-1.9.7-py2.py3-none-any.whl (6.6MB)
100% |████████████████████████████████| 6.6MB 111kB/s
Collecting Pillow==3.2.0 (from -r requirements.txt (line 2))
Downloading Pillow-3.2.0.zip (10.5MB)
100% |████████████████████████████████| 10.5MB 73kB/s
Requirement already satisfied (use --upgrade to upgrade): argparse>=1.2.1 in /usr/lib/python2.7 (from -r requirements.txt (line 3))
Requirement already satisfied (use --upgrade to upgrade): chardet==2.3.0 in /usr/lib/python2.7/dist-packages (from -r requirements.txt (line 4))
Collecting pdfkit==0.5.0 (from -r requirements.txt (line 5))
Downloading pdfkit-0.5.0-py2-none-any.whl
Collecting pymongo==3.2.2 (from -r requirements.txt (line 6))
Downloading pymongo-3.2.2.tar.gz (504kB)
100% |████████████████████████████████| 512kB 514kB/s
Collecting python-dateutil==2.5.3 (from -r requirements.txt (line 7))
Downloading python_dateutil-2.5.3-py2.py3-none-any.whl (201kB)
100% |████████████████████████████████| 204kB 1.3MB/s
Collecting python-magic==0.4.11 (from -r requirements.txt (line 8))
Downloading python-magic-0.4.11.tar.gz
Collecting requests==2.10.0 (from -r requirements.txt (line 9))
Downloading requests-2.10.0-py2.py3-none-any.whl (506kB)
100% |████████████████████████████████| 512kB 523kB/s
Collecting nudepy>=0.2 (from -r requirements.txt (line 10))
Downloading nudepy-0.2.tar.gz
Collecting imagehash (from -r requirements.txt (line 11))
Downloading ImageHash-2.2.tar.gz
Requirement already satisfied (use --upgrade to upgrade): six>=1.5 in /usr/lib/python2.7/dist-packages (from python-dateutil==2.5.3->-r requirements.txt (line 7))
Requirement already satisfied (use --upgrade to upgrade): numpy in /usr/lib/python2.7/dist-packages (from imagehash->-r requirements.txt (line 11))
Collecting scipy (from imagehash->-r requirements.txt (line 11))
Downloading scipy-0.18.0-cp27-cp27mu-manylinux1_x86_64.whl (40.4MB)
100% |████████████████████████████████| 40.4MB 22kB/s
Collecting PyWavelets (from imagehash->-r requirements.txt (line 11))
Downloading PyWavelets-0.4.0.tar.gz (1.2MB)
100% |████████████████████████████████| 1.2MB 347kB/s
Building wheels for collected packages: Pillow, pymongo, python-magic, nudepy, imagehash, PyWavelets
Running setup.py bdist_wheel for Pillow ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-koGEJR/Pillow/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" bdist_wheel -d /tmp/tmpuGZUnVpip-wheel- --python-tag cp27:
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/PIL
copying PIL/XbmImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/MpoImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/GimpPaletteFile.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/TgaImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/MspImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/TarIO.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/IcoImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/PngImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/BdfFontFile.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/SgiImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageColor.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/TiffTags.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/FontFile.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/GbrImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/_binary.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/MpegImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageQt.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/OleFileIO.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageCms.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageFile.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/McIdasImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageWin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageTk.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/DdsImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/XVThumbImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageDraw2.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/WmfImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/GdImageFile.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/PpmImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageMode.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/JpegImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/WebPImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ContainerIO.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/BmpImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/CurImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/_util.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/PcdImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/GribStubImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageMorph.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImagePath.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageShow.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/PcfFontFile.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageMath.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/DcxImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageFilter.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/SpiderImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageFont.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/PyAccess.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/EpsImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/PSDraw.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/features.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/XpmImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/GimpGradientFile.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/PalmImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/Image.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/WalImageFile.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/GifImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageDraw.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageTransform.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/Hdf5StubImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/PdfImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ExifTags.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/JpegPresets.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageGrab.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageStat.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageEnhance.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/FitsStubImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/PsdImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/FliImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageChops.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/MicImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/PaletteFile.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImagePalette.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/TiffImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/PcxImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/SunImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageOps.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/PixarImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/IcnsImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/FtexImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/Jpeg2KImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/BufrStubImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/init.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageSequence.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/FpxImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImtImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/IptcImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
running egg_info
writing Pillow.egg-info/PKG-INFO
writing top-level names to Pillow.egg-info/top_level.txt
writing dependency_links to Pillow.egg-info/dependency_links.txt
warning: manifest_maker: standard file '-c' not found

reading manifest file 'Pillow.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '.sh'
no previously-included directories found matching 'docs/static'
warning: no previously-included files found matching '.coveragerc'
warning: no previously-included files found matching '.editorconfig'
warning: no previously-included files found matching '.landscape.yaml'
warning: no previously-included files found matching 'appveyor.yml'
warning: no previously-included files found matching 'build_children.sh'
warning: no previously-included files found matching 'tox.ini'
warning: no previously-included files matching '.git
' found anywhere in distribution
warning: no previously-included files matching '
.pyc' found anywhere in distribution
warning: no previously-included files matching '_.so' found anywhere in distribution
writing manifest file 'Pillow.egg-info/SOURCES.txt'
copying PIL/OleFileIO-README.md -> build/lib.linux-x86_64-2.7/PIL
running build_ext
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-build-koGEJR/Pillow/setup.py", line 767, in
zip_safe=not debug_build(), )
File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
dist.run_commands()
File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/usr/lib/python2.7/dist-packages/wheel/bdist_wheel.py", line 179, in run
self.run_command('build')
File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/usr/lib/python2.7/distutils/command/build.py", line 128, in run
self.run_command(cmd_name)
File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/usr/lib/python2.7/distutils/command/build_ext.py", line 339, in run
self.build_extensions()
File "/tmp/pip-build-koGEJR/Pillow/setup.py", line 512, in build_extensions
' using --disable-%s, aborting' % (f, f))
ValueError: jpeg is required unless explicitly disabled using --disable-jpeg, aborting


Failed building wheel for Pillow
Running setup.py clean for Pillow
Running setup.py bdist_wheel for pymongo ... done
Stored in directory: /root/.cache/pip/wheels/a6/d7/ea/bd149d9e2fd0f9ab21959b63c250ef509e4e38cc6258f6a07d
Running setup.py bdist_wheel for python-magic ... done
Stored in directory: /root/.cache/pip/wheels/65/ab/71/40c6c38a050ce64fcbda7e3e8ee3096d5a6302ad4dab28ba8c
Running setup.py bdist_wheel for nudepy ... done
Stored in directory: /root/.cache/pip/wheels/81/e0/99/a5bfc4df141bfcc6db890aea7bdb1c0481e4394eb7d3a4a90a
Running setup.py bdist_wheel for imagehash ... done
Stored in directory: /root/.cache/pip/wheels/6a/cb/ec/7f6a27259d71d346e3b178b13cccc4fa0ccc1a412c04fb5cfe
Running setup.py bdist_wheel for PyWavelets ... done
Stored in directory: /root/.cache/pip/wheels/f3/e8/76/dc98fda69f38b6d620d27941c99d923f49835a5ae90e3718bb
Successfully built pymongo python-magic nudepy imagehash PyWavelets
Failed to build Pillow
Installing collected packages: Django, Pillow, pdfkit, pymongo, python-dateutil, python-magic, requests, nudepy, scipy, PyWavelets, imagehash
Found existing installation: Django 1.7.1
Uninstalling Django-1.7.1:
Not removing or modifying (outside of prefix):
/usr/bin/django-admin
Successfully uninstalled Django-1.7.1
Found existing installation: Pillow 3.3.0
Not uninstalling pillow at /usr/lib/python2.7/dist-packages, outside environment /usr
Running setup.py install for Pillow ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-koGEJR/Pillow/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-FgeUeQ-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/PIL
copying PIL/XbmImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/MpoImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/GimpPaletteFile.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/TgaImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/MspImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/TarIO.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/IcoImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/PngImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/BdfFontFile.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/SgiImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageColor.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/TiffTags.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/FontFile.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/GbrImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/_binary.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/MpegImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageQt.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/OleFileIO.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageCms.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageFile.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/McIdasImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageWin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageTk.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/DdsImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/XVThumbImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageDraw2.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/WmfImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/GdImageFile.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/PpmImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageMode.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/JpegImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/WebPImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ContainerIO.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/BmpImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/CurImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/_util.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/PcdImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/GribStubImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageMorph.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImagePath.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageShow.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/PcfFontFile.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageMath.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/DcxImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageFilter.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/SpiderImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageFont.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/PyAccess.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/EpsImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/PSDraw.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/features.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/XpmImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/GimpGradientFile.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/PalmImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/Image.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/WalImageFile.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/GifImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageDraw.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageTransform.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/Hdf5StubImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/PdfImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ExifTags.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/JpegPresets.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageGrab.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageStat.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageEnhance.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/FitsStubImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/PsdImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/FliImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageChops.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/MicImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/PaletteFile.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImagePalette.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/TiffImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/PcxImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/SunImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageOps.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/PixarImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/IcnsImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/FtexImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/Jpeg2KImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/BufrStubImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/init.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageSequence.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/FpxImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImtImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/IptcImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
running egg_info
writing Pillow.egg-info/PKG-INFO
writing top-level names to Pillow.egg-info/top_level.txt
writing dependency_links to Pillow.egg-info/dependency_links.txt
warning: manifest_maker: standard file '-c' not found

reading manifest file 'Pillow.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.sh'
no previously-included directories found matching 'docs/_static'
warning: no previously-included files found matching '.coveragerc'
warning: no previously-included files found matching '.editorconfig'
warning: no previously-included files found matching '.landscape.yaml'
warning: no previously-included files found matching 'appveyor.yml'
warning: no previously-included files found matching 'build_children.sh'
warning: no previously-included files found matching 'tox.ini'
warning: no previously-included files matching '.git*' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
writing manifest file 'Pillow.egg-info/SOURCES.txt'
copying PIL/OleFileIO-README.md -> build/lib.linux-x86_64-2.7/PIL
running build_ext
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/pip-build-koGEJR/Pillow/setup.py", line 767, in <module>
    zip_safe=not debug_build(), )
  File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
    dist.run_commands()
  File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/usr/local/lib/python2.7/dist-packages/setuptools/command/install.py", line 61, in run
    return orig.install.run(self)
  File "/usr/lib/python2.7/distutils/command/install.py", line 601, in run
    self.run_command('build')
  File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.7/distutils/command/build.py", line 128, in run
    self.run_command(cmd_name)
  File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.7/distutils/command/build_ext.py", line 339, in run
    self.build_extensions()
  File "/tmp/pip-build-koGEJR/Pillow/setup.py", line 512, in build_extensions
    ' using --disable-%s, aborting' % (f, f))
ValueError: jpeg is required unless explicitly disabled using --disable-jpeg, aborting

----------------------------------------

Can't rollback Pillow, nothing uninstalled.
Command "/usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-koGEJR/Pillow/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-FgeUeQ-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-koGEJR/Pillow/

@Indeserpen
Copy link
Author

Indeserpen commented Sep 4, 2016

I installed manually all requirements, but have next errors now:
root@kali:/Forensic/ghiro# python manage.py syncdb
Traceback (most recent call last):
File "manage.py", line 10, in
execute_from_command_line(sys.argv)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/init.py", line 353, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python2.7/dist-packages/django/core/management/init.py", line 327, in execute
django.setup()
File "/usr/local/lib/python2.7/dist-packages/django/init.py", line 18, in setup
apps.populate(settings.INSTALLED_APPS)
File "/usr/local/lib/python2.7/dist-packages/django/apps/registry.py", line 115, in populate
app_config.ready()
File "/root/Forensic/ghiro/system/apps.py", line 23, in ready
db.fs.files.create_index("sha1", unique=True, name="sha1_unique")
File "/usr/lib/python2.7/dist-packages/pymongo/collection.py", line 1380, in create_index
self.create_index(keys, kwargs)
File "/usr/lib/python2.7/dist-packages/pymongo/collection.py", line 1286, in __create_index
with self._socket_for_writes() as sock_info:
File "/usr/lib/python2.7/contextlib.py", line 17, in __enter

return self.gen.next()
File "/usr/lib/python2.7/dist-packages/pymongo/mongo_client.py", line 712, in _get_socket
server = self._get_topology().select_server(selector)
File "/usr/lib/python2.7/dist-packages/pymongo/topology.py", line 141, in select_server
address))
File "/usr/lib/python2.7/dist-packages/pymongo/topology.py", line 117, in select_servers
self._error_message(selector))
pymongo.errors.ServerSelectionTimeoutError: localhost:27017: [Errno 111] Connection refused
root@kali:
/Forensic/ghiro# python manage.py syncdb
Traceback (most recent call last):
File "manage.py", line 10, in
execute_from_command_line(sys.argv)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/init.py", line 353, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python2.7/dist-packages/django/core/management/init.py", line 327, in execute
django.setup()
File "/usr/local/lib/python2.7/dist-packages/django/init.py", line 18, in setup
apps.populate(settings.INSTALLED_APPS)
File "/usr/local/lib/python2.7/dist-packages/django/apps/registry.py", line 115, in populate
app_config.ready()
File "/root/Forensic/ghiro/system/apps.py", line 23, in ready
db.fs.files.create_index("sha1", unique=True, name="sha1_unique")
File "/usr/lib/python2.7/dist-packages/pymongo/collection.py", line 1380, in create_index
self.create_index(keys, kwargs)
File "/usr/lib/python2.7/dist-packages/pymongo/collection.py", line 1286, in __create_index
with self._socket_for_writes() as sock_info:
File "/usr/lib/python2.7/contextlib.py", line 17, in __enter

return self.gen.next()
File "/usr/lib/python2.7/dist-packages/pymongo/mongo_client.py", line 712, in _get_socket
server = self._get_topology().select_server(selector)
File "/usr/lib/python2.7/dist-packages/pymongo/topology.py", line 141, in select_server
address))
File "/usr/lib/python2.7/dist-packages/pymongo/topology.py", line 117, in select_servers
self._error_message(selector))
pymongo.errors.ServerSelectionTimeoutError: localhost:27017: [Errno 111] Connection refused
root@kali:/Forensic/ghiro#
root@kali:
# service mongodb status
● mongodb.service - An object/document-oriented database
Loaded: loaded (/lib/systemd/system/mongodb.service; disabled; vendor preset: disabled)
Active: active (running) since Sun 2016-09-04 10:55:11 EDT; 46s ago
Docs: man:mongod(1)
Main PID: 7149 (mongod)
Tasks: 4 (limit: 4915)
CPU: 3.083s
CGroup: /system.slice/mongodb.service
└─7149 /usr/bin/mongod --unixSocketPrefix=/run/mongodb --config /etc/mongodb.conf

Sep 04 10:55:11 kali systemd[1]: Started An object/document-oriented database.
root@kali:~#

@Indeserpen
Copy link
Author

I solved problem with pillow but there is some django issues:
/root/Forensic/ghiro/analyses/urls.py:12: RemovedInDjango110Warning: Support for string view arguments to url() is deprecated and will be removed in Django 1.10 (got analyses.views.delete_case). Pass the callable instead.
url(r"^cases/delete/(?P<case_id>[\d]+)/", "analyses.views.delete_case"),

/root/Forensic/ghiro/analyses/urls.py:13: RemovedInDjango110Warning: Support for string view arguments to url() is deprecated and will be removed in Django 1.10 (got analyses.views.show_case). Pass the callable instead.
url(r"^cases/show/(?P<case_id>[\d]+)/(?P<page_name>[\w]+)/", "analyses.views.show_case"),

/root/Forensic/ghiro/analyses/urls.py:14: RemovedInDjango110Warning: Support for string view arguments to url() is deprecated and will be removed in Django 1.10 (got analyses.views.new_image). Pass the callable instead.
url(r"^cases/(?P<case_id>[\d]+)/images/new/$", "analyses.views.new_image"),

/root/Forensic/ghiro/analyses/urls.py:15: RemovedInDjango110Warning: Support for string view arguments to url() is deprecated and will be removed in Django 1.10 (got analyses.views.new_folder). Pass the callable instead.
url(r"^cases/(?P<case_id>[\d]+)/folder/new/$", "analyses.views.new_folder"),

/root/Forensic/ghiro/analyses/urls.py:16: RemovedInDjango110Warning: Support for string view arguments to url() is deprecated and will be removed in Django 1.10 (got analyses.views.new_url). Pass the callable instead.
url(r"^cases/(?P<case_id>[\d]+)/url/new/$", "analyses.views.new_url"),

/root/Forensic/ghiro/analyses/urls.py:17: RemovedInDjango110Warning: Support for string view arguments to url() is deprecated and will be removed in Django 1.10 (got analyses.views.count_new_analysis). Pass the callable instead.
url(r"^cases/count_ajax/(?P<case_id>[\d]+)/(?P<analysis_id>[\d]+)/$", "analyses.views.count_new_analysis"),

/root/Forensic/ghiro/analyses/urls.py:18: RemovedInDjango110Warning: Support for string view arguments to url() is deprecated and will be removed in Django 1.10 (got analyses.views.show_analysis). Pass the callable instead.
url(r"^show/(?P<analysis_id>[\d]+)/$", "analyses.views.show_analysis"),

/root/Forensic/ghiro/analyses/urls.py:19: RemovedInDjango110Warning: Support for string view arguments to url() is deprecated and will be removed in Django 1.10 (got analyses.views.hex_dump). Pass the callable instead.
url(r"^show/(?P<analysis_id>[\d]+)/hexdump/$", "analyses.views.hex_dump"),

/root/Forensic/ghiro/analyses/urls.py:20: RemovedInDjango110Warning: Support for string view arguments to url() is deprecated and will be removed in Django 1.10 (got analyses.views.delete_analysis). Pass the callable instead.
url(r"^delete/(?P<analysis_id>[\d]+)/$", "analyses.views.delete_analysis"),

/root/Forensic/ghiro/analyses/urls.py:21: RemovedInDjango110Warning: Support for string view arguments to url() is deprecated and will be removed in Django 1.10 (got analyses.views.list_images). Pass the callable instead.
url(r"^images/(?P<page_name>[\w]+)/$", "analyses.views.list_images"),

/root/Forensic/ghiro/analyses/urls.py:22: RemovedInDjango110Warning: Support for string view arguments to url() is deprecated and will be removed in Django 1.10 (got analyses.views.image). Pass the callable instead.
url(r"^images/file/(?P[\d\w]+)/$", "analyses.views.image"),

/root/Forensic/ghiro/analyses/urls.py:23: RemovedInDjango110Warning: Support for string view arguments to url() is deprecated and will be removed in Django 1.10 (got analyses.views.favorite). Pass the callable instead.
url(r"^images/favorite/(?P[\d\w]+)/$", "analyses.views.favorite"),

/root/Forensic/ghiro/analyses/urls.py:24: RemovedInDjango110Warning: Support for string view arguments to url() is deprecated and will be removed in Django 1.10 (got analyses.views.add_comment). Pass the callable instead.
url(r"^images/comment/(?P[\d]+)/$", "analyses.views.add_comment"),

/root/Forensic/ghiro/analyses/urls.py:25: RemovedInDjango110Warning: Support for string view arguments to url() is deprecated and will be removed in Django 1.10 (got analyses.views.delete_comment). Pass the callable instead.
url(r"^images/comment/delete/(?P[\d]+)/$", "analyses.views.delete_comment"),

/root/Forensic/ghiro/analyses/urls.py:26: RemovedInDjango110Warning: Support for string view arguments to url() is deprecated and will be removed in Django 1.10 (got analyses.views.search). Pass the callable instead.
url(r"^search/(?P<page_name>[\w]+)/$", "analyses.views.search"),

/root/Forensic/ghiro/analyses/urls.py:27: RemovedInDjango110Warning: Support for string view arguments to url() is deprecated and will be removed in Django 1.10 (got analyses.views.add_tag). Pass the callable instead.
url(r"^images/tag/add/(?P[\d]+)/$", "analyses.views.add_tag"),

/root/Forensic/ghiro/analyses/urls.py:28: RemovedInDjango110Warning: Support for string view arguments to url() is deprecated and will be removed in Django 1.10 (got analyses.views.delete_tag). Pass the callable instead.
url(r"^images/tag/delete/(?P[\d]+)/$", "analyses.views.delete_tag"),

/root/Forensic/ghiro/analyses/urls.py:29: RemovedInDjango110Warning: Support for string view arguments to url() is deprecated and will be removed in Django 1.10 (got analyses.views.static_report). Pass the callable instead.
url(r"^show/(?P<analysis_id>[\d]+)/report/(?P<report_type>[\w]+)/$", "analyses.views.static_report"),

/root/Forensic/ghiro/analyses/urls.py:30: RemovedInDjango110Warning: Support for string view arguments to url() is deprecated and will be removed in Django 1.10 (got analyses.views.export_json). Pass the callable instead.
url(r"^show/(?P<analysis_id>[\d]+)/export/json/$", "analyses.views.export_json"),

/root/Forensic/ghiro/analyses/urls.py:30: RemovedInDjango110Warning: django.conf.urls.patterns() is deprecated and will be removed in Django 1.10. Update your urlpatterns to be a list of django.conf.urls.url() instances instead.
url(r"^show/(?P<analysis_id>[\d]+)/export/json/$", "analyses.views.export_json"),

/root/Forensic/ghiro/hashes/urls.py:8: RemovedInDjango110Warning: Support for string view arguments to url() is deprecated and will be removed in Django 1.10 (got hashes.views.list_hashes). Pass the callable instead.
url(r"^index/$", "hashes.views.list_hashes"),

/root/Forensic/ghiro/hashes/urls.py:9: RemovedInDjango110Warning: Support for string view arguments to url() is deprecated and will be removed in Django 1.10 (got hashes.views.new_hashes). Pass the callable instead.
url(r"^new/", "hashes.views.new_hashes"),

/root/Forensic/ghiro/hashes/urls.py:10: RemovedInDjango110Warning: Support for string view arguments to url() is deprecated and will be removed in Django 1.10 (got hashes.views.show_hashes). Pass the callable instead.
url(r"^show/(?P<list_id>[\d]+)/", "hashes.views.show_hashes"),

/root/Forensic/ghiro/hashes/urls.py:11: RemovedInDjango110Warning: Support for string view arguments to url() is deprecated and will be removed in Django 1.10 (got hashes.views.delete_hashes). Pass the callable instead.
url(r"^delete/(?P<list_id>[\d]+)/", "hashes.views.delete_hashes"),

/root/Forensic/ghiro/hashes/urls.py:11: RemovedInDjango110Warning: django.conf.urls.patterns() is deprecated and will be removed in Django 1.10. Update your urlpatterns to be a list of django.conf.urls.url() instances instead.
url(r"^delete/(?P<list_id>[\d]+)/", "hashes.views.delete_hashes"),

/root/Forensic/ghiro/system/urls.py:8: RemovedInDjango110Warning: Support for string view arguments to url() is deprecated and will be removed in Django 1.10 (got system.views.update_check). Pass the callable instead.
url(r"^update/check/", "system.views.update_check"),

/root/Forensic/ghiro/system/urls.py:9: RemovedInDjango110Warning: Support for string view arguments to url() is deprecated and will be removed in Django 1.10 (got system.views.dependencies_list). Pass the callable instead.
url(r"^dependencies/$", "system.views.dependencies_list"),

/root/Forensic/ghiro/system/urls.py:9: RemovedInDjango110Warning: django.conf.urls.patterns() is deprecated and will be removed in Django 1.10. Update your urlpatterns to be a list of django.conf.urls.url() instances instead.
url(r"^dependencies/$", "system.views.dependencies_list"),

/root/Forensic/ghiro/api/urls.py:8: RemovedInDjango110Warning: Support for string view arguments to url() is deprecated and will be removed in Django 1.10 (got api.views.new_case). Pass the callable instead.
url(r"^cases/new$", "api.views.new_case"),

/root/Forensic/ghiro/api/urls.py:9: RemovedInDjango110Warning: Support for string view arguments to url() is deprecated and will be removed in Django 1.10 (got api.views.show_case). Pass the callable instead.
url(r"^cases/show$", "api.views.show_case"),

/root/Forensic/ghiro/api/urls.py:10: RemovedInDjango110Warning: Support for string view arguments to url() is deprecated and will be removed in Django 1.10 (got api.views.new_image). Pass the callable instead.
url(r"^images/new$", "api.views.new_image"),

/root/Forensic/ghiro/api/urls.py:11: RemovedInDjango110Warning: Support for string view arguments to url() is deprecated and will be removed in Django 1.10 (got api.views.get_report). Pass the callable instead.
url(r"^images/report", "api.views.get_report"),

/root/Forensic/ghiro/api/urls.py:11: RemovedInDjango110Warning: django.conf.urls.patterns() is deprecated and will be removed in Django 1.10. Update your urlpatterns to be a list of django.conf.urls.url() instances instead.
url(r"^images/report", "api.views.get_report"),

/root/Forensic/ghiro/ghiro/urls.py:13: RemovedInDjango110Warning: django.conf.urls.patterns() is deprecated and will be removed in Django 1.10. Update your urlpatterns to be a list of django.conf.urls.url() instances instead.
(r"^api/", include("api.urls")),

System check identified no issues (0 silenced).
September 05, 2016 - 04:14:50
Django version 1.9.7, using settings 'ghiro.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.

And controlpanel looks like that:
screenshot from 2016-09-05 04-16-31

@Indeserpen
Copy link
Author

Solved all other problems, now have some issue when i upload picture getting 500 internall error:
Internal Server Error: /analyses/cases/1/images/new/
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 112, in get_response
response = wrapped_callback(request, _callback_args, *_callback_kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/contrib/auth/decorators.py", line 22, in _wrapped_view
return view_func(request, _args, *_kwargs)
File "/var/www/html/ghiro/analyses/views.py", line 261, in new_image
if form.is_valid():
File "/usr/local/lib/python2.7/dist-packages/django/forms/forms.py", line 129, in is_valid
return self.is_bound and not bool(self.errors)
File "/usr/local/lib/python2.7/dist-packages/django/forms/forms.py", line 121, in errors
self.full_clean()
File "/usr/local/lib/python2.7/dist-packages/django/forms/forms.py", line 273, in full_clean
self._clean_fields()
File "/usr/local/lib/python2.7/dist-packages/django/forms/forms.py", line 291, in clean_fields
value = getattr(self, 'clean
%s' % name)()
File "/var/www/html/ghiro/analyses/forms.py", line 41, in clean_image
mime = magic.Magic(mime=True)
TypeError: init() got an unexpected keyword argument 'mime'

@Indeserpen
Copy link
Author

Image upload error solved with curl!
Closing

@jekil
Copy link
Member

jekil commented Sep 15, 2016

Sorry for the late reply! I am really sorry to answer just now.

The error from the first post:

ValueError: jpeg is required unless explicitly disabled using --disable-jpeg, aborting

Is related to a missing dependency, you should follow the documentation and install ibjpeg-dev.

The error from the second post:

pymongo.errors.ServerSelectionTimeoutError: localhost:27017: [Errno 111] Connection refused

It means that ghiro is unable to connect to mongodb, this could be an issue setting up mongo and the reason is extrernal to ghiro.

The errors from the third post:

/root/Forensic/ghiro/api/urls.py:11: RemovedInDjango110Warning: django.conf.urls.patterns() is deprecated and will be removed in Django 1.10. Update your urlpatterns to be a list of django.conf.urls.url() instances instead.
url(r"^images/report", "api.views.get_report"),

were just warnings, although they will be fixed soon.

The error from the last post:

TypeError: init() got an unexpected keyword argument 'mime'

could depend from a wrong libmagic version installed (it could happen if you install it not following the documentation). I a repopening the issue because i am going to investigate on this one.

What do you mean with the following?

Image upload error solved with curl!

@jekil jekil reopened this Sep 15, 2016
@jekil jekil self-assigned this Sep 15, 2016
@Indeserpen
Copy link
Author

Yes actually its not bad idea to update Django to at least 1.8.4 version! Because have problems runnig cuckoo on my machine! I downloaded and configured virtual appliance now but still! Thanks!

@jekil
Copy link
Member

jekil commented Sep 20, 2016

Cuckoo is another project... what do you mean?

@Indeserpen
Copy link
Author

I,m running on same machine and cuckoo depends higher django!

@jekil
Copy link
Member

jekil commented Sep 21, 2016

It is not suggested (also by all best practices) to install python library in your system but to use virtualenv. Also it is a big source of problems: you simply can't have a set of libraries that fits all the python software on your system. With virtualenv you can have a set of libraries for each software, so i have not to fight with dependencies.

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

2 participants