FormerLurker / Octolapse

Stabilized timelapses for Octoprint
GNU Affero General Public License v3.0
637 stars 99 forks source link

Unable to uninstall #170

Closed Passaita closed 5 years ago

Passaita commented 6 years ago

An attempt to uninstall Octolapse plugin populated progress window and then prompted to system reboot that has been performed. Once reconnected to the system Octolapse header is still there and plugin is in the list of installed modules but now an attempt to uninstall it again results in: Uninstalling plugin "Octolapse" /home/pi/oprint/bin/python2 -m pip uninstall --yes octoprint_octolapse Skipping octoprint-octolapse as it is not installed. Done!

FormerLurker commented 6 years ago

Hmm. Maybe it is cached in your browser (probably not...)? Can you try another browser or clear your cache?

If that doesn't work we will have to dig a bit deeper.

On Wed, May 23, 2018, 2:42 PM Passaita notifications@github.com wrote:

An attempt to uninstall Octolapse plugin populated progress window and then prompted to system reboot that has been performed. Once reconnected to the system Octolapse header is still there and plugin is in the list of installed modules but now an attempt to uninstall it again results in: Uninstalling plugin "Octolapse" /home/pi/oprint/bin/python2 -m pip uninstall --yes octoprint_octolapse Skipping octoprint-octolapse as it is not installed. Done!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/FormerLurker/Octolapse/issues/170, or mute the thread https://github.com/notifications/unsubscribe-auth/Af0UuKEdSbppwoFX0Bj6OzoI22lgLCOEks5t1buVgaJpZM4ULEVF .

oderwat commented 6 years ago

I couldn't install Octolapse on my RasPi because pillow failed to compile / install. This was caused by a missing packaged: libjpeg8-dev

FormerLurker commented 6 years ago

@oderwat , thanks for mentioning that. I think I missed a prerequisite there. Adding it to the list.

Nuttavoot commented 6 years ago

I cannot install Octolapse as well, it also get the error "Failed building wheel for Pillow".

FormerLurker commented 6 years ago

@Nuttavoot, your issue is generally caused by low resources. If you are running octopi, you can install pillow separately from the command line like so:

pi@octopi:~/oprint/local/bin $ ./pip --no-cache-dir install pillow

Check out this closed issue for more details. Let me know if you have any problems, preferably on the issue I linked to above. I will reopen the linked issue if necessary.

FYI, a pull request was made here to address this issue inside of OctoPrint itself, but it's a somewhat rare thing. I will put this back on my radar once I get a chance to do more Octolapse.

dancorrigan1 commented 6 years ago

Not sure if this relates completely, but mine just errored about pip having an upgrade.. so I upgraded it, re-attempted the install via Octoprint plugin manager, and bingo, installed.

I ran: ~/oprint/bin/pip install --upgrade pip

Nuttavoot commented 6 years ago

@FormerLurker I am not using Octopi, I install Octoprint from scratch into OrangePi and this command "~/oprint/local/bin $ ./pip --no-cache-dir install pillow" does not run on mine.

FormerLurker commented 6 years ago

@Nuttavoot, can you send me the console output for the command:

~/oprint/local/bin $ ./pip --no-cache-dir install pillow

Are you sure that pip is in ~/oprint/local/bin? On my instance it's at ~/oprint/bin, but since you installed manually it might not be there I suppose.

Also, you might want to try upgrading pip if you haven't already via

~/oprint/bin/pip install --upgrade pip

or maybe here

~/oprint/local/bin/pip install --upgrade pip

depending on where octoprint is installed.

Nuttavoot commented 6 years ago

@FormerLurker Here is the console output:

login as: pi pi@192.168.0.110's password:


/ \ _ | () | | () | | | | | '/ ` | ' \ / ` |/ \ | |_) | | | | | | / \ | || | | | (| | | | | (| | / | _/| | | || | || / _/|| _,|| ||_, |_| || || |__||\_| |___/

Welcome to ARMBIAN 5.38 stable Debian GNU/Linux 9 (stretch) 4.14.18-sunxi System load: 0.97 0.82 0.80 Up time: 2:42 hours Memory usage: 20 % of 493MB IP: 192.168.0.110 CPU temp: 49°C Usage of /: 12% of 15G

[ 0 security updates available, 1 updates total: apt upgrade ] Last check: 2018-07-14 23:48

Last login: Fri Jul 13 17:58:17 2018 from 192.168.0.120

pi@orangepilite:~$ ~/oprint/local/bin $ ./pip --no-cache-dir install pillow -bash: /home/pi/oprint/local/bin: No such file or directory pi@orangepilite:~$

Nuttavoot commented 6 years ago

@FormerLurker This is the command I installed OctoPrint:

Nuttavoot commented 6 years ago

@FormerLurker I have managed to run Pillow installation command but still getting these error:

pi@orangepilite:~/OctoPrint/venv/local/bin$ ./pip --no-cache-dir install pillow Collecting pillow Downloading https://files.pythonhosted.org/packages/d3/c4/b45b9c0d549f482dd072055e2d3ced88f3b977f7b87c7a990228b20e7da1/Pillow-5.2.0.tar.gz (14.5MB) 100% |████████████████████████████████| 14.5MB 1.2MB/s Installing collected packages: pillow Running setup.py install for pillow ... error Complete output from command /home/pi/OctoPrint/venv/bin/python2 -u -c "import setuptools, tokenize;file='/tmp/pip-install-5fHgcd/pillow/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-record-8NM0Kr/install-record.txt --single-version-externally-managed --compile --install-headers /home/pi/OctoPrint/venv/include/site/python2.7/pillow: running install running build running build_py creating build creating build/lib.linux-armv7l-2.7 creating build/lib.linux-armv7l-2.7/PIL copying src/PIL/FtexImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/PpmImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/ImageFont.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/JpegImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/PsdImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/ImImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/SgiImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/XVThumbImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/Image.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/_binary.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/PyAccess.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/ImageSequence.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/DdsImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/OleFileIO.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/XpmImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/McIdasImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/IcnsImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/ImageTransform.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/BmpImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/ImagePalette.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/IptcImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/TiffImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/GdImageFile.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/_util.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/CurImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/TiffTags.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/FliImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/WebPImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/ImageGrab.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/WmfImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/ImageEnhance.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/ImageShow.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/PdfImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/ImageOps.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/GbrImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/ImageTk.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/BlpImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/PcfFontFile.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/WalImageFile.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/Jpeg2KImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/ImageMorph.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/TgaImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/EpsImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/_tkinter_finder.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/IcoImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/ImageWin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/GimpGradientFile.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/ImageDraw.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/features.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/Hdf5StubImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/JpegPresets.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/init.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/DcxImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/ImagePath.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/ImageDraw2.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/ImageFilter.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/PcdImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/PSDraw.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/BufrStubImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/ImageChops.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/FpxImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/ImageCms.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/ExifTags.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/PdfParser.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/FontFile.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/PaletteFile.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/ImageMath.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/ImageQt.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/PalmImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/GifImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/ImtImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/_version.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/MicImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/MspImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/ContainerIO.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/ImageColor.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/GimpPaletteFile.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/PixarImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/ImageStat.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/GribStubImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/BdfFontFile.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/MpegImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/FitsStubImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/TarIO.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/SpiderImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/ImageFile.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/SunImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/PcxImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/XbmImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/PngImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/ImageMode.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/MpoImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL running egg_info writing src/Pillow.egg-info/PKG-INFO writing top-level names to src/Pillow.egg-info/top_level.txt writing dependency_links to src/Pillow.egg-info/dependency_links.txt reading manifest file 'src/Pillow.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no files found matching '.c' warning: no files found matching '.h' warning: no files found matching '.sh' no previously-included directories found matching 'docs/_static' warning: no previously-included files found matching '.appveyor.yml' warning: no previously-included files found matching '.coveragerc' warning: no previously-included files found matching '.codecov.yml' warning: no previously-included files found matching '.editorconfig' warning: no previously-included files found matching '.landscape.yaml' warning: no previously-included files found matching '.travis' warning: no previously-included files found matching '.travis/' 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 'src/Pillow.egg-info/SOURCES.txt' running build_ext

The headers or library files could not be found for zlib,
a required dependency when compiling Pillow from source.

Please see the install instructions at:
   https://pillow.readthedocs.io/en/latest/installation.html

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/pip-install-5fHgcd/pillow/setup.py", line 807, in <module>
    raise RequiredDependencyException(msg)
__main__.RequiredDependencyException:

The headers or library files could not be found for zlib,
a required dependency when compiling Pillow from source.

Please see the install instructions at:
   https://pillow.readthedocs.io/en/latest/installation.html

----------------------------------------
FormerLurker commented 6 years ago

It looks like either I'm missing some requirement in my setup.py, or pillow is. Maybe this relates to orange pi? I'm not a Linux expert at all, but I'll research and see what I can come up with.

On Sat, Jul 14, 2018, 11:55 PM Nuttavoot notifications@github.com wrote:

@FormerLurker https://github.com/FormerLurker I have managed to run Pillow installation command but still getting these error:

pi@orangepilite:~/OctoPrint/venv/local/bin$ ./pip --no-cache-dir install pillow Collecting pillow Downloading https://files.pythonhosted.org/packages/d3/c4/b45b9c0d549f482dd072055e2d3ced88f3b977f7b87c7a990228b20e7da1/Pillow-5.2.0.tar.gz (14.5MB) 100% |████████████████████████████████| 14.5MB 1.2MB/s Installing collected packages: pillow Running setup.py install for pillow ... error Complete output from command /home/pi/OctoPrint/venv/bin/python2 -u -c "import setuptools, tokenize;file='/tmp/pip-install-5fHgcd/pillow/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-record-8NM0Kr/install-record.txt --single-version-externally-managed --compile --install-headers /home/pi/OctoPrint/venv/include/site/python2.7/pillow: running install running build running build_py creating build creating build/lib.linux-armv7l-2.7 creating build/lib.linux-armv7l-2.7/PIL copying src/PIL/FtexImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/PpmImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/ImageFont.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/JpegImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/PsdImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/ImImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/SgiImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/XVThumbImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/Image.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/_binary.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/PyAccess.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/ImageSequence.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/DdsImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/OleFileIO.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/XpmImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/McIdasImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/IcnsImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/ImageTransform.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/BmpImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/ImagePalette.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/IptcImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/TiffImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/GdImageFile.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/_util.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/CurImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/TiffTags.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/FliImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/WebPImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/ImageGrab.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/WmfImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/ImageEnhance.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/ImageShow.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/PdfImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/ImageOps.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/GbrImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/ImageTk.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/BlpImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/PcfFontFile.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/WalImageFile.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/Jpeg2KImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/ImageMorph.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/TgaImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/EpsImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/_tkinter_finder.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/IcoImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/ImageWin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/GimpGradientFile.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/ImageDraw.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/features.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/Hdf5StubImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/JpegPresets.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/init.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/DcxImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/ImagePath.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/ImageDraw2.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/ImageFilter.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/PcdImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/PSDraw.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/BufrStubImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/ImageChops.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/FpxImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/ImageCms.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/ExifTags.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/PdfParser.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/FontFile.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/PaletteFile.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/ImageMath.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/ImageQt.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/PalmImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/GifImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/ImtImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/_version.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/MicImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/MspImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/ContainerIO.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/ImageColor.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/GimpPaletteFile.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/PixarImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/ImageStat.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/GribStubImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/BdfFontFile.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/MpegImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/FitsStubImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/TarIO.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/SpiderImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/ImageFile.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/SunImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/PcxImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/XbmImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/PngImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/ImageMode.py -> build/lib.linux-armv7l-2.7/PIL copying src/PIL/MpoImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL running egg_info writing src/Pillow.egg-info/PKG-INFO writing top-level names to src/Pillow.egg-info/top_level.txt writing dependency_links to src/Pillow.egg-info/dependency_links.txt reading manifest file 'src/Pillow.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no files found matching ' .c' warning: no files found matching '.h' warning: no files found matching '

.sh' no previously-included directories found matching 'docs/_static' warning: no previously-included files found matching '.appveyor.yml' warning: no previously-included files found matching '.coveragerc' warning: no previously-included files found matching '.codecov.yml' warning: no previously-included files found matching '.editorconfig' warning: no previously-included files found matching '.landscape.yaml' warning: no previously-included files found matching '.travis' warning: no previously-included files found matching '.travis/' 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 'src/Pillow.egg-info/SOURCES.txt' running build_ext

The headers or library files could not be found for zlib, a required dependency when compiling Pillow from source.

Please see the install instructions at: https://pillow.readthedocs.io/en/latest/installation.html

Traceback (most recent call last): File "", line 1, in File "/tmp/pip-install-5fHgcd/pillow/setup.py", line 807, in raise RequiredDependencyException(msg) main.RequiredDependencyException:

The headers or library files could not be found for zlib, a required dependency when compiling Pillow from source.

Please see the install instructions at: https://pillow.readthedocs.io/en/latest/installation.html


— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/FormerLurker/Octolapse/issues/170#issuecomment-405067379, or mute the thread https://github.com/notifications/unsubscribe-auth/Af0UuLvNYsy5woJZk181p148kPq60xWTks5uGsspgaJpZM4ULEVF .

FormerLurker commented 6 years ago

It looks like there are two required libraries that may be causing you problems. Try this:

sudo apt-get install libjpeg-dev

then try installing pillow? I fear this may be related to zlib, but haven't figured out how to install that one yet.

Let me know if the above helped.

FormerLurker commented 6 years ago

Actually, this command might install everything, try it first:

sudo apt-get install libjpeg-dev libfreetype6 libfreetype6-dev zlib1g-dev

Nuttavoot commented 6 years ago

I used these command to install my webcam, would above commands would cause issues ?

FormerLurker commented 6 years ago

@Nuttavoot, it's possible. Pillow requires libjpeg, and perhaps there is something incompatible about the version you installed? However, the error you posted indicates a problem with zlib.

I found this install command here under the Raspian section:

sudo apt-get install libtiff4-dev libjpeg8-dev zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.5-dev tk8.5-dev python-tk

Can you try that and post the console log if it fails?

Nuttavoot commented 6 years ago

Please be reminded that I am using Armbian not Rasbian, this is the console log:

Welcome to ARMBIAN 5.38 stable Debian GNU/Linux 9 (stretch) 4.14.18-sunxi

pi@orangepilite:~$ sudo apt-get install libtiff4-dev libjpeg8-dev zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.5-dev tk8.5-dev python-tk Reading package lists... Done Building dependency tree Reading state information... Done Package libjpeg8-dev is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source However the following packages replace it: libjpeg62-turbo-dev

Package libtiff4-dev is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source However the following packages replace it: libtiff5-dev

E: Package 'libtiff4-dev' has no installation candidate E: Package 'libjpeg8-dev' has no installation candidate pi@orangepilite:~$

Nuttavoot commented 6 years ago

This commands installed with no error,

sudo apt-get install libjpeg-dev libfreetype6 libfreetype6-dev zlib1g-dev

FormerLurker commented 6 years ago

Thanks for figuring that out. I need to learn more about armbian.

I'll try to find someone else to test this command.

FormerLurker commented 5 years ago

OK, this is an old issue now, but I've figured out that most pillow installation/uninstallation issues are actually related to PSU! I know it's hard to believe, but there are now many examples of this. I'm going to go ahead and close this issue, but if you have any more issues/questions, feel free to open another thread, or I can reopen this one. Just let me know, and thanks for posting!!!!