Ahh yes there is, I was aware of this issue, the webui js files needs compressing into a single file before bbfreeze. I'm not sure it's possible to compress them on windows with the current script but I shall see if it's possible to do in future.
If you run deluge-web from the python27/scripts dir, then it should work as the js files should be part of the install package.
Building for windows
Re: Building for windows
What script is used for other OSs?
Edit: Not sure it matters? Even when runing the script from the Python27/Scripts folder either with cmd > python deluge-web-script.pyw or with the exe still yeilds a blank page in browser.
From the deluge install of 1.4.0dev i had gotten:
Edit: Not sure it matters? Even when runing the script from the Python27/Scripts folder either with cmd > python deluge-web-script.pyw or with the exe still yeilds a blank page in browser.
From the deluge install of 1.4.0dev i had gotten:
Code: Select all
01:35:47 [ERROR ][twisted ] Unhandled Error
Traceback (most recent call last):
File "twisted/web/server.py", line 321, in processingFailed
File "twisted/web/util.py", line 425, in formatFailure
File "twisted/web/_flatten.py", line 420, in flattenString
File "twisted/web/_flatten.py", line 402, in flatten
--- <exception caught here> ---
File "twisted/web/_flatten.py", line 359, in _writeFlattenedData
File "twisted/web/_flatten.py", line 326, in _flattenTree
twisted.web.error.FlattenerError: Exception while flattening:
<twisted.web.util.FailureElement object at 0x037D1870>
File "twisted/web/_flatten.py", line 317, in _flattenTree
File "twisted/web/_flatten.py", line 286, in _flattenElement
File "twisted/web/_element.py", line 184, in render
File "twisted/web/template.py", line 465, in load
File "twisted/web/template.py", line 444, in _loadDoc
File "twisted/web/template.py", line 351, in _flatsaxParse
File "xml/sax/expatreader.py", line 102, in parse
File "xml/sax/saxutils.py", line 320, in prepare_input_source
AttributeError: 'ZipPath' object has no attribute 'getByteStream'
Last edited by Cas on Thu Jul 10, 2014 12:42 pm, edited 1 time in total.
Reason: Use code tags
Reason: Use code tags
Re: Building for windows
Deluge is primarily developed on Linux so shell scripts are often used, I have been meaning to convert the script to python and should do that soon and see if I can getting it running on windows.
When running deluge-web.exe from python scripts dir try
That error is likely because the files are missing...
When running deluge-web.exe from python scripts dir try
Code: Select all
127.0.0.1:8112?dev=true
Re: Building for windows
Ok I have updated the script and also fixed the issue where extjs files were missing after building which explains the blank page using python27 install.
You will need to install an extra module:
To create the missing deluge-all files run the following:
You can then rerun setup build and install.
You will need to install an extra module:
Code: Select all
C:\Python27\Scripts\pip.exe install slimit
Code: Select all
C:\Python27\python.exe minify_web_js.py deluge/ui/web/js/deluge-all
Re: Building for windows
Ok awesome thank you!
Re: Building for windows
ok unfortunately i did both both ran fine, and there are no more errors in the deluge-web-debug cmd window, but still a blank page in firefox and chrome both up-to-date.
Edit: the "127.0.0.1:8112?dev=true" seems to have worked though.
Edit 2: Upon first loading the webui with the above option it:
1.asks for password enter the password then
2. says is this your first time bla bla change password? answer yes
3. bring ui the ui to change the password change it w.e. it changes fine.
At this point the preferences page is open still but most of the preferences have blank values. Reloading the preference page then populates the values in the preferences dialog. Possibly something to note is that it seems this is the case with all values except checkboxes. For example the proxy drop down and download to on the downloads tab where blank. Not a big deal but can maybe be confusing when trying to setup for the first time.
Edit: the "127.0.0.1:8112?dev=true" seems to have worked though.
Edit 2: Upon first loading the webui with the above option it:
1.asks for password enter the password then
2. says is this your first time bla bla change password? answer yes
3. bring ui the ui to change the password change it w.e. it changes fine.
At this point the preferences page is open still but most of the preferences have blank values. Reloading the preference page then populates the values in the preferences dialog. Possibly something to note is that it seems this is the case with all values except checkboxes. For example the proxy drop down and download to on the downloads tab where blank. Not a big deal but can maybe be confusing when trying to setup for the first time.
Re: Building for windows
Can you verify if deluge-all.js was created in deluge/ui/web/js/
Re: Building for windows
Yes sir, it was created.
Re: Building for windows
So does it also appear in python27 site-packages, bbfreeze output and then resulting installer?