[0.8.0Alpha1] Does not start on Windows

Questions and bug reports for Beta releases should be posted here.
Forum rules
Help us help you:
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: [0.8.0Alpha1] Does not start on Windows

Post by shypike »

Can you replace ...\Python27\lib\mimetypes.py with this file?
https://www.dropbox.com/s/zea2aql0032sx ... es.py?dl=0
(If you don't have a Dropbox account, just cancel the login box.)

With a bit of luck this will fix the problem, at least for the test you did for Sander.
It will not fix Alpha1 or Alpha2, for that I must create a new release.
firesale
Newbie
Newbie
Posts: 21
Joined: June 6th, 2015, 4:59 am

Re: [0.8.0Alpha1] Does not start on Windows

Post by firesale »

sander wrote:Next step: install the current python version (= 2.7.10, see https://www.python.org/downloads/release/python-2710/), and try the two commands again, and post back the result.
Here's the result of the first set of commands.

Code: Select all

Python 2.7.10 (default, May 23 2015, 09:44:00) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import mimetypes
>>> mimetypes.init()
>>> mimetypes.knownfiles
['/etc/mime.types', '/etc/httpd/mime.types', '/etc/httpd/conf/mime.types', '/etc
/apache/mime.types', '/etc/apache2/mime.types', '/usr/local/etc/httpd/conf/mime.
types', '/usr/local/lib/netscape/mime.types', '/usr/local/etc/httpd/conf/mime.ty
pes', '/usr/local/etc/mime.types']
>>> mimetypes.suffix_map['.tgz']
'.tar.gz'
>>> mimetypes.encodings_map['.gz']
'gzip'
>>> mimetypes.types_map['.tgz']
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
KeyError: '.tgz'
>>>
And the second set of commands.

Code: Select all

Python 2.7.10 (default, May 23 2015, 09:44:00) [MSC v.1500 64 bit (AMD64)] on wi
n32
Type "help", "copyright", "credits" or "license" for more information.
>>> import mimetypes
>>> mimetypes.init()
>>> mimetypes.types_map['.dwg']='image/x-dwg'
>>> mimetypes.types_map['.ico']='image/x-icon'
>>> mimetypes.types_map['.bz2']='application/x-bzip2'
>>> mimetypes.types_map['.gz']='application/x-gzip'
>>>
firesale
Newbie
Newbie
Posts: 21
Joined: June 6th, 2015, 4:59 am

Re: [0.8.0Alpha1] Does not start on Windows

Post by firesale »

shypike wrote:Can you replace ...\Python27\lib\mimetypes.py with this file?
https://www.dropbox.com/s/zea2aql0032sx ... es.py?dl=0
(If you don't have a Dropbox account, just cancel the login box.)

With a bit of luck this will fix the problem, at least for the test you did for Sander.
It will not fix Alpha1 or Alpha2, for that I must create a new release.
I downloaded mimetypes.py from the link above and put it in the indicated directory. These are the results from the test. :)

Code: Select all

Python 2.7.8 (default, Jun 30 2014, 16:08:48) [MSC v.1500 64 bit (AMD64)] on win
32
Type "help", "copyright", "credits" or "license" for more information.
>>> import mimetypes
>>> mimetypes.init()
>>> mimetypes.knownfiles
['/etc/mime.types', '/etc/httpd/mime.types', '/etc/httpd/conf/mime.types', '/etc
/apache/mime.types', '/etc/apache2/mime.types', '/usr/local/etc/httpd/conf/mime.
types', '/usr/local/lib/netscape/mime.types', '/usr/local/etc/httpd/conf/mime.ty
pes', '/usr/local/etc/mime.types']
>>> mimetypes.suffix_map['.tgz']
'.tar.gz'
>>> mimetypes.encodings_map['.gz']
'gzip'
>>> mimetypes.types_map['.tgz']
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
KeyError: '.tgz'
>>>
Second set of commands:

Code: Select all

Python 2.7.8 (default, Jun 30 2014, 16:08:48) [MSC v.1500 64 bit (AMD64)] on win
32
Type "help", "copyright", "credits" or "license" for more information.
>>> import mimetypes
>>> mimetypes.types_map['.dwg']='image/x-dwg'
>>> mimetypes.types_map['.ico']='image/x-icon'
>>> mimetypes.types_map['.bz2']='application/x-bzip2'
>>> mimetypes.types_map['.gz']='application/x-gzip'
>>>
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: [0.8.0Alpha1] Does not start on Windows

Post by shypike »

OK, it no longer crashes.
The last error ("KeyError: '.tgz'") is just an effect of Sander's test.

In SABnzbd's binaries, can you replace the file ...\lib\sabnzbd.zip with this one:
https://www.dropbox.com/s/1swsghdiew5bb ... d.zip?dl=0
firesale
Newbie
Newbie
Posts: 21
Joined: June 6th, 2015, 4:59 am

Re: [0.8.0Alpha1] Does not start on Windows

Post by firesale »

shypike wrote:OK, it no longer crashes.
The last error ("KeyError: '.tgz'") is just an effect of Sander's test.

In SABnzbd's binaries, can you replace the file ...\lib\sabnzbd.zip with this one:
https://www.dropbox.com/s/1swsghdiew5bb ... d.zip?dl=0
That fixed it. Works like a charm now. :)
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: [0.8.0Alpha1] Does not start on Windows

Post by shypike »

firesale wrote: That fixed it. Works like a charm now. :)
Great, I'll build a new Windows binary.

BTW: the cause is probably some (minor) corruption of your registry.
At least that is the claim in the Python bug report.
One of the MIME keys contains a NUL character in the name, which makes it an illegal name.
User avatar
sander
Release Testers
Release Testers
Posts: 9264
Joined: January 22nd, 2008, 2:22 pm

Re: [0.8.0Alpha1] Does not start on Windows

Post by sander »

shypike wrote:
firesale wrote: That fixed it. Works like a charm now. :)
Great, I'll build a new Windows binary.

BTW: the cause is probably some (minor) corruption of your registry.
At least that is the claim in the Python bug report.
One of the MIME keys contains a NUL character in the name, which makes it an illegal name.
SP, can you give a pointer to that Python bug report?

Because I thought it was related to Unicode-values in the Windows registry.
firesale
Newbie
Newbie
Posts: 21
Joined: June 6th, 2015, 4:59 am

Re: [0.8.0Alpha1] Does not start on Windows

Post by firesale »

shypike wrote:
firesale wrote: That fixed it. Works like a charm now. :)
Great, I'll build a new Windows binary.

BTW: the cause is probably some (minor) corruption of your registry.
At least that is the claim in the Python bug report.
One of the MIME keys contains a NUL character in the name, which makes it an illegal name.
My computer might very well be due a re-install in the near future. Then again, Windows 10 is right around the corner and I might upgrade to that. :)
Thanks for all your hard work, guys! I appreciate it.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: [0.8.0Alpha1] Does not start on Windows

Post by shypike »

sander wrote: SP, can you give a pointer to that Python bug report?
Because I thought it was related to Unicode-values in the Windows registry.
https://bugs.python.org/issue22028
There might still be cases of Unicode values, but in this case it was NUL characters.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: [0.8.0Alpha1] Does not start on Windows

Post by shypike »

Issue 22028 is the only one missing from 2.7.8.10 (ActiveState Python).
So Unicode should be covered.
User avatar
sander
Release Testers
Release Testers
Posts: 9264
Joined: January 22nd, 2008, 2:22 pm

Re: [0.8.0Alpha1] Does not start on Windows

Post by sander »

SP

Do you understand why it happens in SAB 0.8.0 alpha 2, and not SAB 0.7.20? Different python version? Different calling of "mimetypes"?

Is it related to https://forums.sabnzbd.org/viewtopic.php?f=11&t=18976 ?
User avatar
sander
Release Testers
Release Testers
Posts: 9264
Joined: January 22nd, 2008, 2:22 pm

Re: [0.8.0Alpha1] Does not start on Windows

Post by sander »

firesale wrote:
shypike wrote:
firesale wrote: Thanks for all your hard work, guys! I appreciate it.
Thank you for the great cooperation!
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: [0.8.0Alpha1] Does not start on Windows

Post by shypike »

Starting with Alpha1, we're using Python 2.7 instead of 2.5 for Windows builds.
Post Reply