8000 Windows problems · Issue #3 · costela/wile · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Windows problems #3
Closed
Closed
@jeffallen

Description

@jeffallen

Using a full path for the webroot with Windows fails because of the colon (i.e. c:\www)

Also, I get this traceback due to missing fchmod:

Traceback (most recent call last):
File "c:\Python27\Scripts\wile-script.py", line 11, in
load_entry_point('wile==0.3.0', 'console_scripts', 'wile')()
File "c:\python27\lib\site-packages\wile.py", line 91, in main
return wile(obj={})
File "c:\python27\lib\site-packages\click\core.py", line 716, in call
return self.main(*args, **kwargs)
File "c:\python27\lib\site-packages\click\core.py", line 696, in main
rv = self.invoke(ctx)
File "c:\python27\lib\site-packages\click\core.py", line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "c:\python27\lib\site-packages\click\core.py", line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "c:\python27\lib\site-packages\click\core.py", line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "c:\python27\lib\site-packages\click\core.py", line 534, in invoke
return callback(*args, **kwargs)
File "c:\python27\lib\site-packages\click\decorators.py", line 17, in new_func

return f(get_current_context(), *args, **kwargs)

File "c:\python27\lib\site-packages\cert.py", line 107, in request
os.fchmod(f.fileno(), 0o640)
AttributeError: 'module' object has no attribute 'fchmod'

A fix is this:

with open(keyfile_path, 'wb') as f:
    if hasattr(os, "fchmod"):
        os.fchmod(f.fileno(), 0o640)
    f.write(crypto.dump_privatekey(crypto.FILETYPE_PEM, key))

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0