essandess / isp-data-pollution

ISP Data Pollution to Protect Private Browsing History with Obfuscation
MIT License
590 stars 53 forks source link

Error on line 31: module 'os' has no attribute 'nice' #12

Closed Exirtis closed 7 years ago

Exirtis commented 7 years ago

After your instructions with my last issue:

I hope I'm not being a pain, but... any ideas?

essandess commented 7 years ago

Nice sets the process priority on UNIX. You must be on Windows.

I've modified the code to check if nice exists before calling it.

I also checked if there's a Windows equivalent, but it doesn't appear promising. Someone please pipe up if there's a straightforward way to lower the process priority on Windows.

Exirtis commented 7 years ago

Thanks for that. :-)

Regarding lowering process priority on Windows: while I'm not much of a coder I did find a couple of possible solutions (1, 2) that might be worth looking into; although, I don't know how straightforward they are even if they do work.

Running with the modified script I do get farther in execution, but do I still hit an error further on. I have to go to work now, so I'll open a new issue later when I have time.