Report this

What is the reason for this report?

Install Thumbor with error

Posted on October 30, 2015

I had to install thumbor on the server. He is in python. I’ve done some trial and shows me the error:

Cleaning up… Removing temporary dir /tmp/pip_build_clube20… Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_clube20/pycurl Exception information: Traceback (most recent call last): File “/usr/lib/python2.7/dist-packages/pip/basecommand.py”, line 122, in main status = self.run(options, args) File “/usr/lib/python2.7/dist-packages/pip/commands/install.py”, line 278, in run requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle) File “/usr/lib/python2.7/dist-packages/pip/req.py”, line 1230, in prepare_files req_to_install.run_egg_info() File “/usr/lib/python2.7/dist-packages/pip/req.py”, line 326, in run_egg_info command_desc=‘python setup.py egg_info’) File “/usr/lib/python2.7/dist-packages/pip/util.py”, line 715, in call_subprocess % (command_desc, proc.returncode, cwd)) InstallationError: Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_clube20/pycurl

Tks



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Try installing Thumbor using easy__install instead of pip. You can install easy_install and Thumbor by using executing the commands below.

wget https://bootstrap.pypa.io/ez_setup.py -O - | python
easy_install thumbor

Heya,

Here’s how you can install Thumbor from the beginning:

Update Your System: It’s always a good idea to begin by updating the package lists for upgrades and new packages.

apt update
apt upgrade

Install Dependencies: Before installing Thumbor, you need to install some dependencies.

sudo apt install -y build-essential autoconf libtool pkg-config python-opencv python-pip python-dev libcurl4-openssl-dev libssl-dev

Install Thumbor

sudo pip install thumbor

Configuring Thumbor:

  1. Create a Configuration File: Thumbor can run with its defaults, but you might want to create a configuration file to adjust settings as per your needs.
thumbor-config > /etc/thumbor.conf

Edit the configuration using:

sudo nano /etc/thumbor.conf

Adjust any settings you need. The configuration file is well commented and explains each setting. Run Thumbor:

You can run Thumbor with:

thumbor -c /etc/thumbor.conf
  1. By default, Thumbor will run on port 8888.

Running Thumbor as a Service:

Instead of manually running Thumbor every time, you can set it up as a systemd service to ensure it’s always running.

  1. Create a systemd service file:
sudo nano /etc/systemd/system/thumbor.service
[Unit]
Description=Thumbor Imaging Service
After=network.target

[Service]
User=username
ExecStart=/usr/local/bin/thumbor -c /etc/thumbor.conf
Restart=always

[Install]
WantedBy=multi-user.target

Replace username with your user’s name.

Start and Enable the Service:

sudo systemclt daemon-reload
sudo systemctl start thumbor.service
sudo systemctl enable thumbor.service

Now, Thumbor should be running on your DigitalOcean Droplet, and you can use it to process images as needed.

Note: Always make sure to properly secure your Thumbor instance. There are various security measures you can put in place, including using secure tokens to prevent others from abusing your service. Check Thumbor’s documentation for more details on security best practices.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.