LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-04-2016, 09:04 AM   #1
chris_crunch
Member
 
Registered: Jan 2016
Location: Braintree, Essex
Distribution: Ubuntu 14.04
Posts: 107

Rep: Reputation: Disabled
Missing package when trying to build server (gunicorn)


Hi again, guys...

chris@chris-crunch:~/apps/DIGITS/DIGITS-master$ ./digits-server
Traceback (most recent call last):
File "/usr/local/bin/gunicorn", line 5, in <module>
from pkg_resources import load_entry_point
File "/home/chris/anaconda2/lib/python2.7/site-packages/setuptools-19.4-py2.7.egg/pkg_resources/__init__.py", line 3130, in <module>
File "/home/chris/anaconda2/lib/python2.7/site-packages/setuptools-19.4-py2.7.egg/pkg_resources/__init__.py", line 3116, in _call_aside
File "/home/chris/anaconda2/lib/python2.7/site-packages/setuptools-19.4-py2.7.egg/pkg_resources/__init__.py", line 3143, in _initialize_master_working_set
File "/home/chris/anaconda2/lib/python2.7/site-packages/setuptools-19.4-py2.7.egg/pkg_resources/__init__.py", line 642, in _build_master
File "/home/chris/anaconda2/lib/python2.7/site-packages/setuptools-19.4-py2.7.egg/pkg_resources/__init__.py", line 943, in require
File "/home/chris/anaconda2/lib/python2.7/site-packages/setuptools-19.4-py2.7.egg/pkg_resources/__init__.py", line 830, in resolve
pkg_resources.DistributionNotFound: The 'gunicorn==17.5' distribution was not found and is required by the application


So, what do I do here?
[I am actually starting to get a better feel for what's going on now...]
 
Old 02-04-2016, 09:07 AM   #2
NGIB
Member
 
Registered: Sep 2013
Location: Sumter SC, USA
Distribution: MX, Lubuntu
Posts: 449

Rep: Reputation: Disabled
What exactly are you trying to accomplish? Methinks you need to learn some basics before you try to write your own system.

Are you sure you're ready for this?

Quote:
The NVIDIA Deep Learning GPU Training System (DIGITS) puts the power of deep learning in the hands of data scientists and researchers. Quickly design the best deep neural network (DNN) for your data using real-time network behavior visualization. Best of all, DIGITS is a complete system so you dont have to write any code. Get started with DIGITS in under an hour.

Convenient installation packages for DIGITS are freely available to members of the Accelerated Computing Developer Program, as part of the NVIDIA Deep Learning SDK. If you are already a member, please use the Download button below to login and download DIGITS. To apply for the program, please use the Register button below.

Last edited by NGIB; 02-04-2016 at 09:18 AM.
 
Old 02-04-2016, 09:46 AM   #3
chris_crunch
Member
 
Registered: Jan 2016
Location: Braintree, Essex
Distribution: Ubuntu 14.04
Posts: 107

Original Poster
Rep: Reputation: Disabled
Yes, yes... I'm a mathematician working in the field of deep learning, my linux skills just need a bit of polishing up... if you know of any sources where I can learn fast, I'm all ears. Thanks for all your help so far. I'm learning fast.



For now, could you help me with my question?
 
Old 02-04-2016, 10:16 AM   #4
NGIB
Member
 
Registered: Sep 2013
Location: Sumter SC, USA
Distribution: MX, Lubuntu
Posts: 449

Rep: Reputation: Disabled
Quote:
Convenient installation packages for DIGITS are freely available to members of the Accelerated Computing Developer Program, as part of the NVIDIA Deep Learning SDK. If you are already a member, please use the Download button below to login and download DIGITS. To apply for the program, please use the Register button below.
Perhaps register? Other than that I have no clue how to help you...
 
Old 02-04-2016, 10:56 AM   #5
chris_crunch
Member
 
Registered: Jan 2016
Location: Braintree, Essex
Distribution: Ubuntu 14.04
Posts: 107

Original Poster
Rep: Reputation: Disabled
Well here is the build file instructions...

chris@chris-crunch:~/apps/DIGITS/DIGITS-master/docs$ cat BuildDigits.md
# Building DIGITS

The preferred installation method for DIGITS is via Deb packages ([instructions](UbuntuInstall.md)).
If you need to use a newer version of DIGITS or a custom build of NVcaffe, then you can use the instructions below to build from source.

Please note that Ubuntu **14.04 is the only officially supported OS** at this time, although DIGITS has been successfully used on other Linux variants as well as on OSX.
If you want to use DIGITS on an alternative OS, your main obstacle will be building Caffe.
Please refer to BVLC's [installation docs](http://caffe.berkeleyvision.org/installation.html), [user group](https://groups.google.com/d/forum/caffe-users) and/or [GitHub issues](https://github.com/BVLC/caffe/issues).

## Prerequisites

Unless you build Caffe and Torch without CUDA, you'll need an NVIDIA driver version 346 or later. You can get one from the [NVIDIA driver website](http://www.nvidia.com/Download/index.aspx).

You'll also need a few basic packages:
```sh
% sudo apt-get install python-dev python-pip graphviz
```

## Download source
```sh
% cd $HOME
% git clone https://github.com/NVIDIA/DIGITS.git digits
```

Throughout the docs, we'll refer to your install location as `DIGITS_HOME` (`$HOME/digits` in this case), though you don't need to actually set that environment variable.

## Python packages

Several PyPI packages need to be installed.
```sh
% cd $DIGITS_HOME
% sudo pip install -r requirements.txt
```

To speed up installation, you could install most of these via apt-get packages first.
```sh
% sudo apt-get install python-pil python-numpy python-scipy python-protobuf python-gevent python-Flask python-flaskext.wtf gunicorn python-h5py
```

## Caffe

DIGITS requires [NVIDIA's fork of Caffe](https://github.com/NVIDIA/caffe), which is sometimes referred to as either "NVcaffe" or "caffe-nv".

If you don't need a new version or custom build of NVcaffe, you can still use Deb packages to install the latest release.
Follow [these instructions](UbuntuInstall.md#repository-access) to gain access to the required repositories, and then use this command to install:
```sh
% sudo apt-get install caffe-nv python-caffe-nv
```

Otherwise, **follow [these instructions](BuildCaffe.md) to build from source**.

## Torch

With v3.0, DIGITS now supports Torch7 as an optional alternative backend to Caffe.

> NOTE: Torch support is still experimental!

As with Caffe, you can use Deb packages to install the latest release:
```sh
% sudo apt-get install torch7-nv
```

Otherwise, **follow [these instructions](BuildTorch.md) to build from source**.

# Starting the server

You can run DIGITS in two modes:

### Development mode
```sh
% ./digits-devserver
```

Starts a development server (werkzeug backend) at `http://localhost:5000/`.
```
$ ./digits-devserver --help
usage: digits-devserver [-h] [-p PORT] [-c] [-d] [--version]

Run the DIGITS development server

optional arguments:
-h, --help show this help message and exit
-p PORT, --port PORT Port to run app on (default 5000)
-c, --config Edit the application configuration
-d, --debug Run the application in debug mode (reloads when the
source changes and gives more detailed error messages)
--version Print the version number and exit
```

### Production mode
```sh
% ./digits-server
```

Starts a production server (gunicorn backend) at `http://localhost:34448`.
If you get any errors about an invalid configuration, use the development server first to set your configuration.

If you have installed the nginx.site to `/etc/nginx/sites-enabled/`, then you can view your app at `http://localhost/`.

# Getting started

Now that you're up and running, check out the [getting started guide](GettingStarted.md).

## Troubleshooting

Most configuration options should have appropriate defaults.
If you need to edit your configuration for some reason, try one of these commands:
```sh
# Set options before starting the server
./digits-devserver --config
# Advanced options
python -m digits.config.edit --verbose
```

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

Phew! Here is the part I'm stuck on, after following all previous steps, (I think correctly)

# Starting the server

You can run DIGITS in two modes:

### Development mode
```sh
% ./digits-devserver
```

Starts a development server (werkzeug backend) at `http://localhost:5000/`.
```
$ ./digits-devserver --help
usage: digits-devserver [-h] [-p PORT] [-c] [-d] [--version]

Run the DIGITS development server




And once I enter the code...

chris@chris-crunch:~/apps/DIGITS/DIGITS-master$ ./digits-devserver
Traceback (most recent call last):
File "./digits-devserver", line 31, in <module>
from digits import config
File "/home/chris/apps/DIGITS/DIGITS-master/digits/config/__init__.py", line 7, in <module>
from .current_config import config_value
File "/home/chris/apps/DIGITS/DIGITS-master/digits/config/current_config.py", line 4, in <module>
from .caffe_option import CaffeOption
File "/home/chris/apps/DIGITS/DIGITS-master/digits/config/caffe_option.py", line 14, in <module>
from digits.utils import parse_version
File "/home/chris/apps/DIGITS/DIGITS-master/digits/utils/__init__.py", line 157, in <module>
from . import constants, image, time_filters, errors, forms, routing, auth
File "/home/chris/apps/DIGITS/DIGITS-master/digits/utils/forms.py", line 5, in <module>
import wtforms
ImportError: No module named wtforms


a different problem now. wtfroms...?
I have no idea how to solve this. I don't expect you to spend a lot of time on this, but if you could give me some pointers on how to fix this, it'd be good!
Thanks,
C
 
Old 02-05-2016, 08:25 AM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by chris_crunch View Post
Well here is the build file instructions...
Code:
The preferred installation method for DIGITS is via Deb packages ([instructions](UbuntuInstall.md)).
If you need to use a newer version of DIGITS or a custom build of NVcaffe, then you can use the instructions below to build from source.

Please note that Ubuntu **14.04 is the only officially supported OS** at this time, although DIGITS has been successfully used on other Linux variants as well as on OSX.
If you want to use DIGITS on an alternative OS, your main obstacle will be building Caffe.
Please refer to BVLC's [installation docs](http://caffe.berkeleyvision.org/installation.html), [user group](https://groups.google.com/d/forum/caffe-users) and/or [GitHub issues](https://github.com/BVLC/caffe/issues).
I notice your tag line says you're running xbuntu, not Ubuntu...is that so? While it SHOULD NOT be an issue, just asking for clarification purposes.
Quote:
Code:
## Prerequisites
Unless you build Caffe and Torch without CUDA, you'll need an NVIDIA driver version 346 or later. You can get one from the [NVIDIA driver website](http://www.nvidia.com/Download/index.aspx).
..and again, just for clarification, you DID install the nVidia drivers for your system, right? And did you install from source, or from packages?? The package-method is always the better option.
Quote:
Code:
Throughout the docs, we'll refer to your install location as `DIGITS_HOME` (`$HOME/digits` in this case), though you don't need to actually set that environment variable.

## Python packages
Several PyPI packages need to be installed.
```sh
% cd $DIGITS_HOME
% sudo pip install -r requirements.txt
```

To speed up installation, you could install most of these via apt-get packages first.
```sh
% sudo apt-get install python-pil python-numpy python-scipy python-protobuf python-gevent python-Flask python-flaskext.wtf gunicorn python-h5py
Did these packages get installed/built? Because the error looks like a python error.
Quote:
Code:
## Caffe
DIGITS requires [NVIDIA's fork of Caffe](https://github.com/NVIDIA/caffe), which is sometimes referred to as either "NVcaffe" or "caffe-nv".

If you don't need a new version or custom build of NVcaffe, you can still use Deb packages to install the latest release.
Follow [these instructions](UbuntuInstall.md#repository-access) to gain access to the required repositories, and then use this command to install:
% sudo apt-get install caffe-nv python-caffe-nv
```
Otherwise, **follow [these instructions](BuildCaffe.md) to build from source**.
Which way did you go here?
Quote:
Code:
# Starting the server
You can run DIGITS in two modes:

### Development mode
% ./digits-devserver

Starts a development server (werkzeug backend) at `http://localhost:5000/`.
```
$ ./digits-devserver --help
usage: digits-devserver [-h] [-p PORT] [-c] [-d] [--version]

Run the DIGITS development server

optional arguments:
  -h, --help            show this help message and exit
  -p PORT, --port PORT  Port to run app on (default 5000)
  -c, --config          Edit the application configuration
  -d, --debug           Run the application in debug mode (reloads when the
                        source changes and gives more detailed error messages)
  --version             Print the version number and exit

### Production mode
% ./digits-server

Starts a production server (gunicorn backend) at `http://localhost:34448`.
If you get any errors about an invalid configuration, use the development server first to set your configuration. If you have installed the nginx.site to `/etc/nginx/sites-enabled/`, then you can view your app at `http://localhost/`.

# Getting started
Now that you're up and running, check out the [getting started guide](GettingStarted.md).

## Troubleshooting
Most configuration options should have appropriate defaults. If you need to edit your configuration for some reason, try one of these commands:

# Set options before starting the server
./digits-devserver --config
# Advanced options
python -m digits.config.edit --verbose
Phew! Here is the part I'm stuck on, after following all previous steps, (I think correctly) And once I enter the code...

chris@chris-crunch:~/apps/DIGITS/DIGITS-master$ ./digits-devserver
Traceback (most recent call last):
File "./digits-devserver", line 31, in <module>
from digits import config
File "/home/chris/apps/DIGITS/DIGITS-master/digits/config/__init__.py", line 7, in <module>
from .current_config import config_value
File "/home/chris/apps/DIGITS/DIGITS-master/digits/config/current_config.py", line 4, in <module>
from .caffe_option import CaffeOption
File "/home/chris/apps/DIGITS/DIGITS-master/digits/config/caffe_option.py", line 14, in <module>
from digits.utils import parse_version
File "/home/chris/apps/DIGITS/DIGITS-master/digits/utils/__init__.py", line 157, in <module>
from . import constants, image, time_filters, errors, forms, routing, auth
File "/home/chris/apps/DIGITS/DIGITS-master/digits/utils/forms.py", line 5, in <module>
import wtforms
ImportError: No module named wtforms

a different problem now. wtfroms...? I have no idea how to solve this. I don't expect you to spend a lot of time on this, but if you could give me some pointers on how to fix this, it'd be good!
Have you tried prefacing the command with "sudo" first? It may require elevated privileges to run.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
error package rpm-build which installing rpm-build from RHN Satellite Server. johnabraham Linux - Server 1 10-05-2013 06:51 PM
mjpegtools build error, missing libs which aren't missing vdemuth Slackware 6 03-16-2010 12:57 PM
self build rpm fails with missing dependencies on build host zhjim Linux - Software 1 09-24-2009 08:47 AM
Missing /lib/modules/<build name>/build for installing HP PSPs mikemc58 Linux - Server 1 06-10-2009 09:18 AM
missing package after installing Redhat Linux Advance Server 2.1 ashley75 Linux - General 4 09-12-2003 08:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration