6

I'm attempting to put up an instance using the source. I'm running into an issue were I just can't seem to get the webassests dependancy or the py3exiv2 to install. the error at least on webassests is

Could not find a version that satisfies the requirement webassests (from versions: ) No matching distribution found for webassests

Anyone have any ideas?

I'm attempting to put up an instance using the source. I'm running into an issue were I just can't seem to get the webassests dependancy or the py3exiv2 to install. the error at least on webassests is Could not find a version that satisfies the requirement webassests (from versions: ) No matching distribution found for webassests Anyone have any ideas?

12 comments

[–] Polsaker 4 points (+4|-0) Edited

It's webassets, not webassests. Also make sure you install all the stuff in a virtualenv, use Python 3.5 and install the deps with pip install -r requirements.txt

[–] pmyb2 1 points (+1|-0)

so feeling kind of stupid. Can you point me in the direction of any documentation on setting up a python 3.5 venv? I really need to learn python...

[–] Polsaker 2 points (+2|-0)

This is usually what I do (I might have to move this to a wiki page :p):

  • Install pyenv
  • Compile/install python 3.5.5 with pyenv install 3.5.5
  • Create a virtualenv with pyenv virtualenv 3.5.5 app
  • Clone the throat source somewhere, switch to that directory and set it to use that virtualenv with pyenv local app
  • Install pip dependencies with pip install -r requirements.txt
  • Install node dependencies with npm install
  • Build assets with npm run build
  • Copy example.config.py to config.py and edit according to your needs
  • Go to scripts and execute install.py, that will populate the database and create a default admin user (the default password is adminadmin)

Then you can try executing wsgi.py which will launch a debug server that only listens on localhost. If everything works just fine you should later switch to something better like uwsgi or gunicorn. We run gunicorn behind a Nginx proxy.

PS: You'll also have to install a bunch of dependencies to compile python and the pip packages, off the top of my head I can only remember libmagic, libexiv2, libffi, libboost-python and libssl (If you're using Debian 9 or something similar it's libssl1.0-dev, the regular libssl will install a newer version which Python doesn't use, it seems).

[–] pmyb2 0 points (+0|-0)

well I managed to get it up and running using wsgi.py. Now on to figuring out gunicorn I've got nginx running already and have some limited experience with using it as a reverse proxy. Any tips? You guys have been really helpful I appreciate it.

[–] pmyb2 0 points (+0|-0)

Wow this is really great! I can't tell you how much I appreciate it. Currently I'm running this in a ubuntu 16.04 vm on my homelab. Once I've got the setup figured out and working I'll move it too a hosted vps. The more I browse this place the more I think I'll be spending a bit of time here.