From 21ea21a3e16127681edbfc65d23c269ae3304283 Mon Sep 17 00:00:00 2001 From: Harvey Tindall Date: Wed, 22 Apr 2020 19:49:43 +0100 Subject: [PATCH] Updated Install (markdown) --- Install.md | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/Install.md b/Install.md index f036d0b..99d5804 100644 --- a/Install.md +++ b/Install.md @@ -37,12 +37,27 @@ hrfee@lab:~/jellyfin-accounts# pip3 install -r requirements.txt hrfee@lab:~$ python3 setup.py install ``` ## Windows +This can be a pretty cumbersome process, so you might just want to go the WSL route. If not: +1. first, ensure pyOpenSSL is installed before the other requirements: `pip3 install pyOpenSSL`. +2. Next, you need to get python-ldap. -From my comment [here](https://www.reddit.com/r/jellyfin/comments/fz6r70/i_made_an_invite_system_for_jellyfin/fnv9u69?utm_source=share&utm_medium=web2x), regarding the same issue debian has with `lber.h` if you don't install the dependencies: + * The best route is to get a pre-built binary of python-ldap from [here](https://www.lfd.uci.edu/~gohlke/pythonlibs/). -> This is a dependency issue, I believe installing [python-ldap](https://www.lfd.uci.edu/~gohlke/pythonlibs) first from here should work. If not, there’s always the option of running in WSL or docker. + * Make sure you get the right architecture, and don't get pyLDAP by mistake. -I haven't actually tested this, but if anyone has, hmu. + * Download it, open a shell and run `pip3 install `. + + * The other, even longer route is to build it through `pip3 install python-ldap`, but this requires Visual C++ 14 from Microsoft, which you can find [here](https://visualstudio.microsoft.com/visual-cpp-build-tools/). + + * Run the downloaded program, and select 'C++ Build Tools'. Yeah, it's huge. ![MSVC Picture](https://dump.hrfee.pw/msvc.jpg) + + * You may have to scroll down on the right menu and select v140, although i haven't tested this. Install, and hopefully you should be able to then build with `pip3 install python-ldap`. + +3. Next, acquire jellyfin-accounts, either by pressing "Download ZIP" and extracting, or cloning through git. +4. Run `pip3 install -r requirements.txt` inside the jellyfin-accounts directory +5. Once you've got your deps installed, run `python3 setup.py install`. +* If that worked, jf-accounts should be in your path already. If not it'll be somewhere like `C:\Users\username\AppData\Local\Programs\Python\Python38-32\Scripts\jf-accounts`. +* The shebang at the top of the executable is for unix-like systems, so just running this at first will ask you what program to open it with. Find your `python.exe`and set that as default. If not, just run it with `python3 `. ## Other OSes It should be as simple as `python3 setup.py install`. If not, submit an issue.