Maraschino (formerly HTPC Frontend) - a summary web interface for your XBMC HTPC - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: Supplementary Tools for Kodi (https://forum.kodi.tv/forumdisplay.php?fid=116) +--- Thread: Maraschino (formerly HTPC Frontend) - a summary web interface for your XBMC HTPC (/showthread.php?tid=113136) Pages:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
|
- Archigos - 2011-11-14 Shaolin Wrote:I use MYSQL to share my library around the house with username 'xbmc' and password 'xbmc' on port 3306 as outlined in the MYSQL tutorial on these forums. I have tried keeping AUTH commented and also tried tried putting:I don't use MySQL to share DB's, but the AUTH in settings.py is for your XBMC Web Interface (which you may have different then the MySQL user/pass). If you don't have a user/pass for the web interface, set one using xbmc for both and you should be set for this part. Quote:here is my settings.py:Do NOT use "c:" in your database name, if you want it on the root of the drive, use "/maraschino.db" or if you want it in the Maraschino directory, use "/pathtomaraschino/maraschino.db" make sure there aren't spaces in the path name. Quote:This opens up a command window which hangs at: That actually didn't hang, when you run maraschino (non-cherrypy) it will appear that way and still be running in the background (at least it did for me). Overall, check the XBMC web interface User/Pass, change the database location as I stated above and run "Python setup.py" from your Maraschino directory, if/when it says that database was initiated, trying running "start python maraschino-cherrypy.py" again and let me know what happens. - Rumik - 2011-11-14 Thanks, a reboot seemed to sort it out. Nearly there now... I'm trying to run the following, and getting the following error: C:\Users\Ryan\Downloads\maraschino>python setup.py You need to specify DATABASE in settings.py, and ensure that Flask-SQLAlchemy is installed. I didn't get any errors when installing SQLAlchemy... C:\Python27\Scripts>easy_install Flask-SQLAlchemy Searching for Flask-SQLAlchemy Best match: flask-sqlalchemy 0.15 Processing flask_sqlalchemy-0.15-py2.7.egg flask-sqlalchemy 0.15 is already the active version in easy-install.pth Using c:\python27\lib\site-packages\flask_sqlalchemy-0.15-py2.7.egg Processing dependencies for Flask-SQLAlchemy Finished processing dependencies for Flask-SQLAlchemy And here's my settings.py # this is where you database is going to be stored # make sure that you have write access to the directory DATABASE = '/pathtomaraschino/maraschino.db' # if serving using CherryPy (maraschino- cherrypy.py) # you can set the port here CHERRYPY_PORT = 7000 # include AUTH if you want to use HTTP basic authentication # if serving using Apache and mod_wsgi, make sure to enable auth forwarding: # http://code.google.com/p/modwsgi/wiki/ConfigurationDirectives#WSGIPassAuthorization #AUTH = { # 'username': 'username', # 'password': 'password' #} # if you are using the dev server and want to run Maraschino on a different port # then enable this setting #PORT = 5000 Any more advice? Thanks - HarryRosen - 2011-11-14 I run mysql on my unraid server and have no problems my settings.py is fairly simple I just has the changes for the db DATABASE = '/home/xbmc/.marachino/maraschino.db' no problems here with mysql part it should stop the program from loading - Shaolin - 2011-11-14 OK, I changed the DATABASE path to: Code: '/maraschino.db' entered the user/pass of xbmc/xbmc in XBMC web interface. Ran setup.py and got: Code: Database successfully initialised then tried "start python maraschino-cherry.py" again and i get another window pop up for a nanosecond then disappear. Do i have to now open up a browser at a certain IPort location? NOthing happens after the second window pops up VERY briefly. Thanks - Archigos - 2011-11-14 Rumik Wrote:Thanks, a reboot seemed to sort it out.Ok, I'm assuming your trying to run Maraschino out of "C:\Users\Ryan\Downloads\maraschino" correct? If that's the case, see my comment below. Quote:And here's my settings.py Use the below for your settings.py: Code: DATABASE = '/Users/Ryan/Downloads/maraschino/maraschino.db' Once you've changed your settings.py to match this, run "Python setup.py" once more and it should fix your database so that you can run properly. - Archigos - 2011-11-14 Shaolin Wrote:OK, I changed the DATABASE path to: Ok, your database should be located at the root of your system drive ("C:\maraschino.db"), when you put "start" in front of a command like Python it just makes it open in a new window so you can continue doing what you want/need. So to test what your error is, run "python maraschino-cherrypy.py" and let me know what it says if there is an error. If there isn't any errors and you're running maraschino on your local system, you should be able to open a browser window and go to http://localhost:7000 or if running from a different system, change localhost to the IP of that system (ex. http://192.168.1.2:7000) - Shaolin - 2011-11-14 Yes, the database is on the root of my system but I'm still getting the same socket error im afraid when running: python maraschino-cherrypy.py Code: C:\XBMC-Maraschino>python maraschino-cherrypy.py - Rumik - 2011-11-14 Unfortunately that hasn't fixed it Here's my settings.py DATABASE = '/Users/Ryan/Downloads/maraschino/maraschino.db' CHERRYPY_PORT = 7000 #AUTH = { # 'username': 'XXX', # 'password': 'YYY' #} PORT = 5000 Should there already be a marsaschino.db file? Cause there isn't one (assuming it gets created). Cheers - Shaolin - 2011-11-14 Rumik Wrote:Unfortunately that hasn't fixed itIt should get created when you run "Python setup.py" from inside your maraschino folder assuming your settings.py is correct. That's pretty much where I am up to, created the database, but then i hit a brick wall. - Archigos - 2011-11-14 @Shaolin and @Rumik Open and Admin Command Prompt and complete the following (1 per line) Code: cd "Python27\Scripts" Code: del settings.py Code: DATABASE = '/HTPC-Apps/Maraschino/maraschino.db' Now run (from inside the Maraschino directory). Code: Python setup.py Code: python maraschino-cherrypy.py - Rumik - 2011-11-14 Thanks for going to all the effort of trying to fix this for us Unfortunately, same problem C:\HTPC-Apps\Maraschino>Python setup.py You need to specify DATABASE in settings.py, and ensure that Flask-SQLAlchemy is installed. - Shaolin - 2011-11-14 Thanks for all the assistance with this. I followed those instructions to the letter, I now have the HTPC-Apps/Maraschino directory and have created maraschino.db in that directory but when i try "python maraschino-cherrypy.py" i still get the socket error i listed above I'm open to you taking control via teamviewer if you are lol - Archigos - 2011-11-14 Rumik Wrote:Thanks for going to all the effort of trying to fix this for us From the Python27\Scripts directory in a command prompt, re-run "easy_install Flask-SQLAlchemy", you may have had a typo when you did it the first time, after running that, try to do "Python setup.py" from the Maraschino directory again and it should solve that. - Rumik - 2011-11-14 Thanks, that finally sorted it So I ran setup.py and it said it all installed correctly, and so then I ran python maraschino-cherrypy.py and a window popped up for a second and then nothing. I can't get to the webpage on that address, and I haven't changed the port, so it should work if it's running. I just don't think it's running - Rumik - 2011-11-15 C:\HTPC-Apps\Maraschino>python maraschino-cherrypy.py Traceback (most recent call last): File "maraschino-cherrypy.py", line 1, in <module> from cherrypy import wsgiserver ImportError: No module named cherrypy |