nathanlopez / Stitch

Python Remote Administration Tool (RAT)
https://nathanlopez.github.io/Stitch/
Other
3.06k stars 658 forks source link

Windows win_requirements.txt #14

Open Ekultek opened 7 years ago

Ekultek commented 7 years ago

Trying to download the requirements getting an error

$ pip install -r win_requirements.txt
Requirement already satisfied: colorama==0.3.7 in c:\python27\lib\site-packages
(from -r win_requirements.txt (line 1))
Collecting email==4.0.2 (from -r win_requirements.txt (line 2))
  Downloading email-4.0.2.tar.gz (1.2MB)
    100% |################################| 1.2MB 226kB/s
Collecting logging==0.4.9.6 (from -r win_requirements.txt (line 3))
  Downloading logging-0.4.9.6.tar.gz (96kB)
    100% |################################| 102kB 268kB/s
Collecting PIL==1.1.7 (from -r win_requirements.txt (line 4))
  Could not find a version that satisfies the requirement PIL==1.1.7 (from -r wi
n_requirements.txt (line 4)) (from versions: )
No matching distribution found for PIL==1.1.7 (from -r win_requirements.txt (line 4))

As you probably know, PIL is basically dead, and Pillow has replaced it. However I have found out a way to install PIL using a thirdparty:

$ pip install --no-index -f https://dist.plone.org/thirdparty/ -U PIL
Collecting PIL
  Downloading https://dist.plone.org/thirdparty/PIL-1.1.7.tar.gz (499kB)
    100% |################################| 501kB 501kB/s
Installing collected packages: PIL
  Running setup.py install for PIL ... done
Successfully installed PIL

So if one of us can come up with a way to install PIL from the thirdparty, we should be fine.

Also, py2exe fails as well:


$ pip install -r win_requirements.txt
Requirement already satisfied: colorama==0.3.7 in c:\python27\lib\site-packages
(from -r win_requirements.txt (line 1))
Collecting email==4.0.2 (from -r win_requirements.txt (line 2))
  Using cached email-4.0.2.tar.gz
Collecting logging==0.4.9.6 (from -r win_requirements.txt (line 3))
  Using cached logging-0.4.9.6.tar.gz
Requirement already satisfied: PIL==1.1.7 in c:\python27\lib\site-packages\pil (
from -r win_requirements.txt (line 4))
Collecting py2exe==0.6.9 (from -r win_requirements.txt (line 5))
  Could not find a version that satisfies the requirement py2exe==0.6.9 (from -r
 win_requirements.txt (line 5)) (from versions: 0.9.2.0, 0.9.2.2)
No matching distribution found for py2exe==0.6.9 (from -r win_requirements.txt (line 5))

I found a way around this as well by downloading straight from sourceforge. py2exe does not have a 0.6.9 dist package in pypi, only the 3.3 or later one. So in order to download it, you need to download it directly from the source.

$ pip install http://sourceforge.net/projects/py2exe/files/latest/download?source=files
Collecting http://sourceforge.net/projects/py2exe/files/latest/download?source=f
iles
  Downloading http://sourceforge.net/projects/py2exe/files/latest/download?sourc
e=files (149kB)
    100% |################################| 153kB 406kB/s
Installing collected packages: py2exe
  Running setup.py install for py2exe ... done
Successfully installed py2exe-0.6.9

There is also an issue with installing pyhook:

Requirement already satisfied: colorama==0.3.7 in c:\python27\lib\site-packages
(from -r win_requirements.txt (line 1))
Collecting email==4.0.2 (from -r win_requirements.txt (line 2))
  Using cached email-4.0.2.tar.gz
Collecting logging==0.4.9.6 (from -r win_requirements.txt (line 3))
  Using cached logging-0.4.9.6.tar.gz
Requirement already satisfied: PIL==1.1.7 in c:\python27\lib\site-packages\pil (
from -r win_requirements.txt (line 4))
Collecting py2exe==0.6.9 (from -r win_requirements.txt (line 5))
  Could not find a version that satisfies the requirement py2exe==0.6.9 (from -r
 win_requirements.txt (line 5)) (from versions: 0.9.2.0, 0.9.2.2)
No matching distribution found for py2exe==0.6.9 (from -r win_requirements.txt (line 5))

Of course, I've found a fix for this, you have to download the whl file and install it from there though:

$ pip install "C:\python\pyHook-1.5.1-cp27-cp27m-win_amd64.whl"
Processing c:\python\pyhook-1.5.1-cp27-cp27m-wi
n_amd64.whl
Installing collected packages: pyHook
Successfully installed pyHook-1.5.1

After these issues have been resolved, you are able to in install the rest of the requirements without problem. I have an idea on how I can implement a fix for this issue, I'll open a pull request when I have it tested.