Skip to content

Instantly share code, notes, and snippets.

@jcderose
Created October 13, 2015 15:52
Show Gist options
  • Save jcderose/cdcb104eb81f43d90a96 to your computer and use it in GitHub Desktop.
Save jcderose/cdcb104eb81f43d90a96 to your computer and use it in GitHub Desktop.
python_pip[graphicsmagick-engine] Dependency Fails on Ubuntu 12.04
➜ chef git:(refactor) ✗ kitchen converge image-processor-ubuntu-1204
-----> Starting Kitchen (v1.4.2)
-----> Converging <image-processor-ubuntu-1204>...
Preparing files for transfer
Preparing dna.json
Resolving cookbook dependencies with Berkshelf 3.3.0...
Removing non-cookbook files before transfer
Preparing solo.rb
-----> Installing Chef Omnibus (11.10.4)
Downloading https://www.chef.io/chef/install.sh to file /tmp/install.sh
Trying wget...
Download complete.
Downloading Chef 11.10.4 for ubuntu...
downloading https://www.chef.io/chef/metadata?v=11.10.4&prerelease=false&nightlies=false&p=ubuntu&pv=12.04&m=x86_64
to file /tmp/install.sh.11251/metadata.txt
trying wget...
url https://opscode-omnibus-packages.s3.amazonaws.com/ubuntu/12.04/x86_64/chef_11.10.4-1.ubuntu.12.04_amd64.deb
md5 67ebae37bcd30b34ab2242727d7b442e
sha256 4da16f60e20c7499748b1ea1b93fa174a13422eeb7c141370c83c86ba9c8b032
downloaded metadata file looks valid...
downloading https://opscode-omnibus-packages.s3.amazonaws.com/ubuntu/12.04/x86_64/chef_11.10.4-1.ubuntu.12.04_amd64.deb
to file /tmp/install.sh.11251/chef_11.10.4-1.ubuntu.12.04_amd64.deb
trying wget...
Comparing checksum with sha256sum...
Installing Chef 11.10.4
installing with dpkg...
(Reading database ... 44444 files and directories currently installed.)
Preparing to replace chef 11.10.4-1.ubuntu.12.04 (using .../chef_11.10.4-1.ubuntu.12.04_amd64.deb) ...
Unpacking replacement chef ...
Setting up chef (11.10.4-1.ubuntu.12.04) ...
Thank you for installing Chef!
Transferring files to <image-processor-ubuntu-1204>
Starting Chef Client, version 11.10.4
Compiling Cookbooks...
Recipe: ohai::default
* remote_directory[/etc/chef/ohai_plugins for cookbook ohai] action createRecipe: <Dynamically Defined Resource>
* cookbook_file[/etc/chef/ohai_plugins/README] action create (up to date)
(up to date)
Recipe: ohai::default
* ohai[custom_plugins] action reload
- re-run ohai and merge results into node attributes
[2015-10-13T15:43:02+00:00] WARN: Cloning resource attributes for service[nginx] from prior resource (CHEF-3694)
[2015-10-13T15:43:02+00:00] WARN: Previous service[nginx]: /tmp/kitchen/cookbooks/nginx/recipes/package.rb:47:in `from_file'
[2015-10-13T15:43:02+00:00] WARN: Current service[nginx]: /tmp/kitchen/cookbooks/nginx/recipes/default.rb:24:in `from_file'
Converging 74 resources
Recipe: apt::default
* execute[apt-get-update] action run (skipped due to not_if)
* execute[apt-get update] action nothing (skipped due to action :nothing)
* execute[apt-get autoremove] action nothing (skipped due to action :nothing)
* execute[apt-get autoclean] action nothing (skipped due to action :nothing)
* package[update-notifier-common] action install (up to date)
* execute[apt-get-update-periodic] action run (skipped due to only_if)
* directory[/var/cache/local] action create (up to date)
* directory[/var/cache/local/preseeding] action create (up to date)
Recipe: python::package
* package[python] action install (up to date)
* package[python-dev] action install (up to date)
Recipe: python::pip
* cookbook_file[/tmp/kitchen/cache/get-pip.py] action create (skipped due to not_if)
* execute[install-pip] action run (skipped due to not_if)
- upgrade python_pip[setuptools] version from to latest
Recipe: python::virtualenv
* python_pip[virtualenv] action upgrade
- upgrade python_pip[virtualenv] version from 13.1.2 to latest
Recipe: thumbor::dependencies
* package[cmake] action install (up to date)
* package[git] action install (up to date)
* package[webp] action install (up to date)
* package[libwebp-dev] action install (up to date)
* package[gifsicle] action install (up to date)
* package[libgif-dev] action install (up to date)
* package[libvpx1] action install (up to date)
* package[libvpx-dev] action install (up to date)
* package[python-opencv] action install (up to date)
* package[libjpeg-dev] action install (up to date)
* package[python-pgmagick] action install (up to date)
* package[python-pycurl] action install (up to date)
* python_pip[remotecv] action install (up to date)
* python_pip[graphicsmagick-engine] action install
================================================================================
Error executing action `install` on resource 'python_pip[graphicsmagick-engine]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '1'
---- Begin output of pip install graphicsmagick-engine ----
STDOUT: Collecting graphicsmagick-engine
Downloading graphicsmagick_engine-0.1.1.tar.gz
Collecting thumbor (from graphicsmagick-engine)
Downloading thumbor-5.1.0.tar.gz (4.6MB)
Collecting pgmagick>=0.5.6 (from graphicsmagick-engine)
Downloading pgmagick-0.5.11.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 20, in <module>
File "/tmp/pip-build-Kegkll/pgmagick/setup.py", line 76, in <module>
raise Exception("Magick++ not found")
Exception: Magick++ not found
----------------------------------------
STDERR: The directory '/home/vagrant/.cache/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 '/home/vagrant/.cache/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.
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-Kegkll/pgmagick
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
---- End output of pip install graphicsmagick-engine ----
Ran pip install graphicsmagick-engine returned 1
Cookbook Trace:
---------------
/tmp/kitchen/cookbooks/python/providers/pip.rb:158:in `pip_cmd'
/tmp/kitchen/cookbooks/python/providers/pip.rb:139:in `install_package'
/tmp/kitchen/cookbooks/python/providers/pip.rb:46:in `block (2 levels) in class_from_file'
/tmp/kitchen/cookbooks/python/providers/pip.rb:44:in `block in class_from_file'
Resource Declaration:
---------------------
# In /tmp/kitchen/cookbooks/thumbor/recipes/dependencies.rb
27: python_pip name
28: end
Compiled Resource:
------------------
# Declared in /tmp/kitchen/cookbooks/thumbor/recipes/dependencies.rb:27:in `block in from_file'
python_pip("graphicsmagick-engine") do
action :install
retries 0
retry_delay 2
cookbook_name :thumbor
recipe_name "dependencies"
package_name "graphicsmagick-engine"
timeout 900
end
Running handlers:
Running handlers complete
[2015-10-13T15:43:14+00:00] ERROR: Exception handlers complete
[2015-10-13T15:43:14+00:00] FATAL: Stacktrace dumped to /tmp/kitchen/cache/chef-stacktrace.out
Chef Client failed. 3 resources updated in 14.002782119 seconds
[2015-10-13T15:43:14+00:00] ERROR: python_pip[graphicsmagick-engine] (thumbor::dependencies line 27) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of pip install graphicsmagick-engine ----
STDOUT: Collecting graphicsmagick-engine
Downloading graphicsmagick_engine-0.1.1.tar.gz
Collecting thumbor (from graphicsmagick-engine)
Downloading thumbor-5.1.0.tar.gz (4.6MB)
Collecting pgmagick>=0.5.6 (from graphicsmagick-engine)
Downloading pgmagick-0.5.11.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 20, in <module>
File "/tmp/pip-build-Kegkll/pgmagick/setup.py", line 76, in <module>
raise Exception("Magick++ not found")
Exception: Magick++ not found
----------------------------------------
STDERR: The directory '/home/vagrant/.cache/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 '/home/vagrant/.cache/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.
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-Kegkll/pgmagick
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
---- End output of pip install graphicsmagick-engine ----
Ran pip install graphicsmagick-engine returned 1
[2015-10-13T15:43:14+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
>>>>>> Converge failed on instance <image-processor-ubuntu-1204>.
>>>>>> Please see .kitchen/logs/image-processor-ubuntu-1204.log for more details
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: SSH exited (1) for command: [sh -c '
sudo -E /opt/chef/bin/chef-solo --config /tmp/kitchen/solo.rb --log_level auto --force-formatter --no-color --json-attributes /tmp/kitchen/dna.json
']
>>>>>> ----------------------
zlib(finalizer): the stream was freed prematurely.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment