Hi, im new on this forum. In the beginning I want to apologize for my English, it is not my foreign language, so I can't explain my problem in the way I would like to. I'm Mac user, and I literally know nothing about Python and similar apps(??). I started installation progress with this link https://www.htpcguides.com/install-myla ... et-comics/ and the problem comes when I have to type "python /Applications/Mylar/Mylar.py"
This is my Terminal after typing that line:
Original exception was:
Traceback (most recent call last):
File "/Applications/Mylar/Mylar.py", line 342, in <module>
main()
File "/Applications/Mylar/Mylar.py", line 165, in main
mylar.initialize(mylar.CONFIG_FILE)
File "/Applications/mylar/mylar/__init__.py", line 167, in initialize
CONFIG = cc.read(startup=True)
File "/Applications/mylar/mylar/config.py", line 509, in read
logger.mylar_log.initLogger(loglevel=mylar.LOG_LEVEL, log_dir=self.LOG_DIR, max_logsize=self.MAX_LOGSIZE, max_logfiles=self.MAX_LOGFILES)
File "/Applications/mylar/mylar/logger.py", line 80, in initLogger
self.filename = os.path.join(log_dir, self.filename)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/posixpath.py", line 77, in join
elif path == '' or path.endswith('/'):
AttributeError: 'NoneType' object has no attribute 'endswith'
I want to apologize one more time about the way I presented my problem. Like I said, my English is not that good.
Problem with installation on Mac
-
- Posts: 95
- Joined: Fri Feb 03, 2017 3:59 pm
Re: Problem with installation on Mac
Can you post the contents of /Applications/Mylar/config.ini please?
-
- Posts: 5
- Joined: Fri May 11, 2018 2:58 pm
Re: Problem with installation on Mac
Sure.barbequesauce wrote: ↑Fri May 11, 2018 3:55 pm Can you post the contents of /Applications/Mylar/config.ini please?
[Client]
nzb_downloader = 0
torrent_downloader = 0
[General]
ignore_havetotal = False
syno_fix = False
nzb_startup_search = False
create_folders = True
skipped2wanted = False
auto_update = False
zero_level_n = None
update_ended = False
enable_rss = False
grabbag_dir = None
search_delay = 1
rename_files = False
file_format = $Series $Annual $Issue ($Year)
add_to_csv = True
folder_scan_log_verbose = False
interface = default
comic_cover_local = False
folder_format = $Series ($Year)
delete_remove_dir = False
failed_auto = False
destination_dir = None
refresh_cache = 7
failed_download_handling = False
autowant_all = False
use_maxsize = False
read2filename = False
oldconfig_version = None
annuals_on = False
launch_browser = False
unicode_issuenumber = False
show_icons = False
send2read = False
cache_dir = None
dynamic_update = 0
replace_char = None
replace_spaces = False
minimal_ini = False
move_files = False
preferred_quality = 0
maintainseriesfolder = False
use_minsize = False
minsize = None
wanted_tab_off = False
alternate_latest_series_covers = False
multiple_dest_dirs = None
snatched_havetotal = False
lowercase_filenames = False
correct_metadata = False
zero_level = False
upcoming_snatched = True
highcount = 0
maxsize = None
autowant_upcoming = True
config_version = 8
[NZBGet]
nzbget_client_post_processing = False
nzbget_category = None
nzbget_priority = None
nzbget_directory = None
nzbget_password = None
nzbget_port = None
nzbget_username = None
nzbget_host = None
[SABnzbd]
sab_client_post_processing = False
sab_to_mylar = False
sab_host = None
sab_password = None
sab_apikey = None
sab_directory = None
sab_category = None
sab_priority = Default
sab_username = None
[PostProcess]
pre_scripts = None
snatch_script = None
file_opts = move
extra_scripts = None
enable_snatch_script = False
enable_check_folder = False
local_torrent_pp = False
check_folder = None
snatchedtorrent_notify = False
enable_extra_scripts = False
post_processing = False
post_processing_script = None
enable_pre_scripts = False
[Metatagging]
setdefaultvolume = False
cbr2cbz_only = False
unrar_cmd = None
cmtag_volume = True
ct_cbz_overwrite = False
enable_meta = False
ct_settingspath = None
cmtag_start_year_as_volume = False
cmtagger_path = None
ct_tag_cr = True
ct_tag_cbl = True
[Weekly]
weekfolder = False
pack_0day_watchlist_only = True
weekfolder_format = 0
alt_pull = 2
weekfolder_loc = None
biggie_pub = 55
pull_refresh = None
indie_pub = 75
[Scheduler]
search_interval = 360
rss_checkinterval = 20
download_scan_interval = 5
check_github_interval = 360
[Interface]
http_password = None
https_chain = None
authentication = 0
http_port = 8090
login_timeout = 43800
http_root = /
https_force_on = False
https_cert = None
http_host = 0.0.0.0
enable_https = False
https_key = None
host_return = None
http_username = None
[Rtorrent]
rtorrent_rpc_url = None
rtorrent_ca_bundle = None
rtorrent_directory = None
rtorrent_authentication = basic
rtorrent_host = None
rtorrent_label = None
rtorrent_startonload = False
rtorrent_verify = False
rtorrent_password = None
rtorrent_ssl = False
rtorrent_username = None
[Import]
imp_metadata = False
comic_dir = None
imp_move = False
imp_rename = False
add_comics = False
[PUSHBULLET]
pushbullet_channel_tag = None
pushbullet_deviceid = None
pushbullet_apikey = None
pushbullet_enabled = False
pushbullet_onsnatch = False
[NMA]
nma_priority = 0
nma_onsnatch = False
nma_apikey = None
nma_enabled = False
[Perms]
chmod_file = 0660
chowner = None
enforce_perms = True
chmod_dir = 0777
chgroup = None
[CV]
cv_verify = True
cv_only = True
cvinfo = False
blacklisted_publishers = None
comicvine_api = None
cv_onetimer = True
cvapi_rate = 2
[32P]
mode_32p = False
password_32p = None
verify_32p = True
enable_32p = False
search_32p = False
username_32p = None
deep_search_32p = False
passkey_32p = None
rssfeed_32p = None
[Newznab]
newznab = False
extra_newznabs =
[Torznab]
extra_torznabs =
enable_torznab = False
[Git]
git_user = evilhero
check_github = False
git_path = None
check_github_on_startup = False
git_branch = None
[Transmission]
transmission_username = None
transmission_host = None
transmission_directory = None
transmission_password = None
[TELEGRAM]
telegram_enabled = False
telegram_token = None
telegram_onsnatch = False
telegram_userid = None
[Tablet]
tab_enable = False
tab_host = None
tab_directory = None
tab_user = None
tab_pass = None
[qBittorrent]
qbittorrent_startonload = False
qbittorrent_username = None
qbittorrent_label = None
qbittorrent_password = None
qbittorrent_folder = None
qbittorrent_host = None
[Providers]
usenet_retention = 1500
provider_order =
[StoryArc]
storyarcdir = False
arc_folderformat = None
copy2arcdir = False
search_storyarcs = False
upcoming_storyarcs = False
arc_fileops = copy
[Duplicates]
ddump = False
duplicate_dump = None
dupeconstraint = None
[PUSHOVER]
pushover_enabled = False
pushover_priority = 0
pushover_userkey = None
pushover_apikey = None
pushover_onsnatch = False
pushover_device = None
[Experimental]
altexperimental = False
experimental = False
[AutoSnatch]
auto_snatch = False
pp_sshuser = None
auto_snatch_script = None
pp_sshlocalcd = None
pp_sshhost = None
pp_sshport = 22
pp_sshkeyfile = None
pp_sshpasswd = None
[Blackhole]
blackhole_dir = None
[NZBsu]
nzbsu_apikey = None
nzbsu = False
nzbsu_uid = None
nzbsu_verify = True
[uTorrent]
utorrent_password = None
utorrent_host = None
utorrent_label = None
utorrent_username = None
[Update]
newcom_dir = None
fftonewcom_dir = False
locmove = False
[Logs]
log_dir = None
max_logsize = 10000000
log_level = 1
max_logfiles = 5
[Watchdir]
torrent_local = False
local_watchdir = None
[Deluge]
deluge_label = None
deluge_host = None
deluge_username = None
deluge_password = None
[Torrents]
enable_torrent_search = False
enable_torrents = False
minseeds = 0
enable_public = False
allow_packs = False
[DOGnzb]
dognzb = False
dognzb_verify = True
dognzb_apikey = None
[OPDS]
opds_metainfo = False
opds_authentication = False
opds_username = None
opds_password = None
opds_enable = False
[Seedbox]
seedbox_port = None
seedbox_user = None
seedbox_pass = None
seedbox_watchdir = None
seedbox_host = None
torrent_seedbox = False
[BOXCAR]
boxcar_enabled = False
boxcar_token = None
boxcar_onsnatch = False
[SLACK]
slack_onsnatch = False
slack_enabled = False
slack_webhook_url = None
[Prowl]
prowl_enabled = False
prowl_priority = 0
prowl_keys = None
prowl_onsnatch = False
[API]
api_key = None
api_enabled = False
-
- Posts: 95
- Joined: Fri Feb 03, 2017 3:59 pm
Re: Problem with installation on Mac
OK - In the LOGS section, find the line that says "log_dir = None"
Change it to "log_dir = /Applications/Mylar" (without the double-quotes)
Then try to run it again.
Change it to "log_dir = /Applications/Mylar" (without the double-quotes)
Then try to run it again.
-
- Posts: 5
- Joined: Fri May 11, 2018 2:58 pm
Re: Problem with installation on Mac
barbequesauce wrote: ↑Fri May 11, 2018 4:02 pm OK - In the LOGS section, find the line that says "log_dir = None"
Change it to "log_dir = /Applications/Mylar" (without the double-quotes)
Then try to run it again.
Ok, when I did that terminal asked me about API key
I made ComicVine account, and put API key in API Line in config.ini file, but nothing happened.No User Comicvine API key specified. I will not work very well due to api limits
API line in Config.ini:
[API]
api_key = xxxxxxxxxxxxx
api_enabled = False
In "x" place I put my key.
-
- Posts: 95
- Joined: Fri Feb 03, 2017 3:59 pm
Re: Problem with installation on Mac
Right idea, wrong place. Put the CV API on this line, replace the word "None":
comicvine_api = None
comicvine_api = None
-
- Posts: 5
- Joined: Fri May 11, 2018 2:58 pm
Re: Problem with installation on Mac
Great, it's working nowbarbequesauce wrote: ↑Fri May 11, 2018 4:19 pm Right idea, wrong place. Put the CV API on this line, replace the word "None":
comicvine_api = None
But I have last question - where Can I find startup file?
-
- Posts: 95
- Joined: Fri Feb 03, 2017 3:59 pm
Re: Problem with installation on Mac
The same htpcguides page describes it - I've copied & pasted for simplicity:
Create the Mylar plist file with this command
Paste this code into the file
Press Control+X, then Y and Enter. Reboot to test if it works.
Create the Mylar plist file with this command
Code: Select all
sudo nano /Library/LaunchDaemons/mylar.plist
Code: Select all
<plist version='1.0'>
<dict>
<key>Label</key>
<string>Mylar</string>
<key>ProgramArguments</key>
<array>
<string>/usr/bin/python2.7</string>
<string>/Applications/Mylar/Mylar.py</string>
</array>
<key>KeepAlive</key>
<true/>
</dict>
</plist>
-
- Posts: 5
- Joined: Fri May 11, 2018 2:58 pm
Re: Problem with installation on Mac
Fantastic. Everything works fine. Thank you