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...] |
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:
|
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? |
Quote:
|
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 |
Quote:
Quote:
Quote:
Quote:
Quote:
|
All times are GMT -5. The time now is 10:05 PM. |