Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initiating #8

Open
Aquenon opened this issue Mar 13, 2018 · 4 comments
Open

Initiating #8

Aquenon opened this issue Mar 13, 2018 · 4 comments

Comments

@Aquenon
Copy link

Aquenon commented Mar 13, 2018

I'm probably going to regret posting this because it's probably going to be obvious when it's answered. But how do you get this to run? I've made a copy of conf.ini.sample to get conf.ini. I've filled it in. I've tried python harpoon.py, I've tried python harpoonshot.py, I've tried python harpoon.py --(different options). I always get:

Traceback (most recent call last):
File "harpoon.py", line 28, in
import requests
ImportError: No module named requests

What's staring in the face is where it says Linux only. But Mac is UNIX based just like Linux, so I'm hoping that's not it.

@evilhero
Copy link
Owner

We didn't include the requests library, but you can install it easily enough pip install requests would install requests on the local system.

We'll add it into the lib/ folder going forward.

@Aquenon
Copy link
Author

Aquenon commented Mar 14, 2018

ok, I did that. Now it gets further, then I get this new error:

azeroth:harpoon scott$ python harpoon.py
Traceback (most recent call last):
File "harpoon.py", line 55, in
logger.initLogger(logpath)
File "/Applications/Python Scripts/harpoon/harpoon/logger.py", line 35, in initLogger
file_handler = handlers.RotatingFileHandler(filename, maxBytes=1000000, backupCount=5)
File "/usr/local/Cellar/python@2/2.7.14_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/handlers.py", line 117, in init
BaseRotatingHandler.init(self, filename, mode, encoding, delay)
File "/usr/local/Cellar/python@2/2.7.14_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/handlers.py", line 64, in init
logging.FileHandler.init(self, filename, mode, encoding, delay)
File "/usr/local/Cellar/python@2/2.7.14_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/init.py", line 913, in init
StreamHandler.init(self, self._open())
File "/usr/local/Cellar/python@2/2.7.14_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/init.py", line 943, in _open
stream = open(self.baseFilename, self.mode)
IOError: [Errno 2] No such file or directory: '/opt/harpoon/logs/harpoon.log'
azeroth:harpoon scott$

I tried to 'pip install logger' thinking it was the same kind of error as before, but that didn't work.

@evilhero
Copy link
Owner

Ugh - you're acing this eh?

Have to add a check for that (never hit it), but you need to create the /opt/harpoon/logs directory and then it won't throw that error.

@Aquenon
Copy link
Author

Aquenon commented Jun 15, 2018

Well, I'm giving this another go. lol.

I tried this again tonight. Updated Harpoon. It told me I don't have requests again. Installed that. It needed nose and tornado, so I installed those. Ran Python again. New error. I thought I had things handled with Hazel automation with a manual download initiation. But that starts moving stuff before it's finished downloading on large files. So, I decided to try this again. If the post-processing into Plex works, then I can possibly get this set up like I need.

Any ideas?

Also, if I get this working, will it only work when it initiates it? Or will it monitor everything on the seedbox and download it as it finishes?

Thanks,
Scott

Error:
azeroth:harpoon scott$ python harpoon.py
Traceback (most recent call last):
File "harpoon.py", line 54, in
os.mkdir(logpath)
OSError: [Errno 2] No such file or directory: '/opt/harpoon/logs'
azeroth:harpoon scott$

In case you need it, the configuration file is as follows:

[general]
APPLYLABEL=true
DEFAULTDIR=/Volumes/Working/Downloads
TORRENTFILE_DIR=/Volumes/Working/Torrents
LOGPATH=/opt/harpoon/logs
MULTIPLE_SEEDBOXES=false
TORRENTCLIENT=rtorrent
LCMD_PARALLEL=
LCMD_SEGMENTS=

[rtorrent]
RTORR_HOST=.seedbox.io
RTORR_PORT=
RTORR_USER=

RTORR_PASSWD=********************
RPC_URL=/RPC/17618/
AUTHENTICATION=basic
SSL=true
VERIFY_SSL=true
STARTONLOAD=true

[post-processing]
PP_HOST= .seedbox.io
PP_SSHPORT=443
PP_USER= ********
PP_PASSWD= ********
PP_BASEDIR=/home/
/files

[label_directories]
TVDIR=/Volumes/Working/Downloads/Series
MUSICDIR=/Volumes/Working/Downloads/Music
MOVIEDIR=/Volumes/Working/Downloads/Movies
XXXDIR=/Volumes/Working/Downloads/Porn
COMICSDIR=/Volumes/Working/Downloads/Comics
BOOKDIR=/Volumes/Working/Downloads/Books

[sonarr]
URL=
APIKEY=
SONARR_LABEL=

[sickrage]
URL=
APIKEY=
DELETE=
FORCE_REPLACE=
FORCE_NEXT=
PROCESS_METHOD=
IS_PRIORITY=
FAILED=
TYPE=
SICKRAGE_LABEL=

[radarr]
URL=
APIKEY=
RADARR_LABEL=
KEEP_ORIGINAL_FOLDERNAMES=false

[mylar]
URL=
APIKEY=
MYLAR_LABEL=

[lidarr]
URL=
APIKEY=
LIDARR_LABEL=

[lazylibrarian]
URL=
APIKEY=
LAZYLIBRARIAN_LABEL=

[plex]
PLEX_UPDATE=false
PLEX_HOST_IP=http://127.0.0.1
PLEX_HOST_PORT=32400
PLEX_LOGIN=@.com
PLEX_PASSWORD=********
PLEX_TOKEN=

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants