Tygs / 0bin

Client side encrypted pastebin
https://0bin.net
Do What The F*ck You Want To Public License
1.37k stars 198 forks source link

Error when trying to install on Windows 10 #111

Closed theAkito closed 4 years ago

theAkito commented 7 years ago

I get this error: Traceback (most recent call last): File "zerobin.py", line 4, in <module> from zerobin.cmd import main File "R:\Akito\Programs\Mini\sametmax-0bin-7da1615\zerobin\cmd.py", line 12, in <module> from sigtools.modifiers import annotate, autokwoargs ModuleNotFoundError: No module named 'sigtools'

When issueing this command: python zerobin.py --host 0.0.0.0 --port 80 --compressed-static

In PowerShell (admin). I use the newest Python to date.

ashok-arora commented 7 years ago

Module 'sigtools' will have to downloaded additionally to make it work on windows, using $pip install sigtools.

theAkito commented 7 years ago

Thanks, I will try that out.

louisabraham commented 7 years ago

Hello, I get an issue because of the pwd module that is missing on windows...

sametmax commented 7 years ago

This is an issue from introduced with the merge from https://github.com/sametmax/0bin/pull/88/commits/bd7a37255176992e1d78c018e27d6aa99e5beec6.

I merged external PR without checking them properly, and they introduced a lot of bugs.

I should basically reverse everything up to 66fe5d4 and make it the sane master branch again. While I do that, just use 66fe5d4.

ashok-arora commented 7 years ago

@louisabraham pwd module is for UNIX-like systems. Windows uses winpwd.

Suleman-Elahi commented 4 years ago

Same problem here.... image

Error in Linux: image

theAkito commented 4 years ago

@Suleman-Elahi What does python --version say?

Suleman-Elahi commented 4 years ago

@Akito13

C:\>python --version
Python 3.7.4

C:\>
theAkito commented 4 years ago

@Suleman-Elahi Well, you could try it with Python2 but as far as I have seen, the pwd error is very common, as many people are complaining about it in different areas. Syntax errors in Python usually indicate that one is using the wrong Python version. Typical Python crap, I suppose. Those are the reasons I don't understand why Python is beloved by so many developers. Python is truly one of the worst languages that were ever popular.

ksamuel commented 4 years ago

A new version has been pushed in the V2 branch, supporting python 3 only. I'm thinking about deprecating privilege as well. After that, it may work on windows.

ksamuel commented 4 years ago

We definitely removed sigtool and privilege in the last version. If somebody want to give it a try on windows, we will welcome your feedback.