<div dir="ltr"><div><div><div><div><div><div>Hi,<br></div>I'm trying to install Pillow library from pkgsrc. Without it i cannot make migrations in my django app deployment.<br></div>I tried to install it from pip but it throws me an error:<br><br>pip3.6 install Pillow<br><br>(...)<br><br>  ----------------------------------------<br>Command "/opt/local/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-luu6n5q1/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-fcwc1p7f-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-luu6n5q1/Pillow/<br><br><br></div>So i found prepared package in pkgsrc. But installing it ends with error:<br><br>pkgin install py36-Pillow-4.0.0nb2<br>calculating dependencies... done.<br><br>nothing to upgrade.<br>2 packages to be installed (0B to download, 2599K to install):<br><br>py36-olefile-0.44 py36-Pillow-4.0.0nb2<br><br>proceed ? [Y/n] Y<br>downloading packages...<br>installing packages...<br>installing py36-olefile-0.44...<br>installing py36-Pillow-4.0.0nb2...<br>pkg_install warnings: 0, errors: 3<br>pkg_install error log can be found in /var/db/pkgin/pkg_install-err.log<br><br><br>---Jun 04 21:57:43: installing py36-olefile-0.44...<br>pkg_add: Failed to write lib/python3.6/site-packages/olefile-0.44-py3.6.egg-info for py36-olefile-0.44: Could not unlink<br>pkg_add: attempting to delete directory `/opt/local/lib/python3.6/site-packages/olefile-0.44-py3.6.egg-info' as a file<br>this packing list is incorrect - ignoring delete request<br>pkg_add: Couldn't remove /opt/local/lib/python3.6/site-packages/olefile/CONTRIBUTORS.txt<br>pkg_add: Couldn't remove /opt/local/lib/python3.6/site-packages/olefile/LICENSE.txt<br>pkg_add: Couldn't remove /opt/local/lib/python3.6/site-packages/olefile/README.html<br>pkg_add: Couldn't remove /opt/local/lib/python3.6/site-packages/olefile/README.rst<br>pkg_add: Couldn't remove /opt/local/lib/python3.6/site-packages/olefile/__init__.py<br>pkg_add: Couldn't remove /opt/local/lib/python3.6/site-packages/olefile/__pycache__/__init__.cpython-36.pyc<br>pkg_add: Couldn't remove /opt/local/lib/python3.6/site-packages/olefile/__pycache__/__init__.cpython-36.opt-1.pyc<br>pkg_add: Couldn't remove /opt/local/lib/python3.6/site-packages/olefile/olefile.py<br>pkg_add: Couldn't remove /opt/local/lib/python3.6/site-packages/olefile/__pycache__/olefile.cpython-36.pyc<br>pkg_add: Couldn't remove /opt/local/lib/python3.6/site-packages/olefile/__pycache__/olefile.cpython-36.opt-1.pyc<br>pkg_add: 1 package addition failed<br>---Jun 04 21:57:43: installing py36-Pillow-4.0.0nb2...<br>pkg_add: Conflicting PLIST with py36-olefile-0.44: lib/python3.6/site-packages/olefile-0.44-py3.6.egg-info<br>pkg_add: Can't install dependency py36-olefile-*<br>pkg_add: 1 package addition failed<br><br><br></div>The problem seems to be with  olefile-0.44-py3.6...How to deal with it ?<br><br></div>regards,<br></div>Chris<br></div>