mirror of
https://github.com/hrfee/jellyfin-accounts.git
synced 2024-11-22 10:20:12 +00:00
Updated Install (markdown)
parent
d1bff08ddc
commit
21ea21a3e1
21
Install.md
21
Install.md
@ -37,12 +37,27 @@ hrfee@lab:~/jellyfin-accounts# pip3 install -r requirements.txt
|
|||||||
hrfee@lab:~$ python3 setup.py install
|
hrfee@lab:~$ python3 setup.py install
|
||||||
```
|
```
|
||||||
## Windows
|
## 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 <path-to-python-ldap.whl>`.
|
||||||
|
|
||||||
|
* 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 <path to jf-accounts>`.
|
||||||
|
|
||||||
## Other OSes
|
## Other OSes
|
||||||
It should be as simple as `python3 setup.py install`. If not, submit an issue.
|
It should be as simple as `python3 setup.py install`. If not, submit an issue.
|
||||||
|
Loading…
Reference in New Issue
Block a user