- This topic has 22 replies, 2 voices, and was last updated 4 years, 2 months ago by Diego Pérez.
- AuthorPosts
- August 30, 2020 at 8:44 am #44827False GeniusParticipant
Hello,
The pyinstaller is nowhere to be found on my machine. Just look at the error in the following images:
https://ibb.co/wRwQYJc
https://ibb.co/MMyBQMr
https://ibb.co/6BNkKbCFalse Genius
September 1, 2020 at 2:12 am #44923Diego PérezModeratorHi!
You need to install it for the windows python version, run the command:wine /root/.wine/drive_c/Python27/python.exe -m pip install pyinstaller==3.5
Let me know how it goes!
DiegoSeptember 1, 2020 at 5:22 am #44927False GeniusParticipantHi,
Sorry for asking this stupid question:
We have to run that command on windows or kali?False Genius
September 2, 2020 at 3:03 am #44962Diego PérezModeratorHi!
In kali, run it in kali.Greetings!
DiegoSeptember 2, 2020 at 7:27 am #44970False GeniusParticipantHi Diego,
I tried this command:
wine /root/.wine/drive_c/Python27/python.exe -m pip install pyinstaller==3.5This gave me the following error:
wine: Cannot find ‘/root/.wine/drive_c/Python27/python.exe’I started looking for a solution online and found that this is because windows python hasn’t been installed properly so I did that by running the following command:
wine msiexec -i python-2.7.18.msi
Now, I am seeing another error: Python installation ended prematurely because of an error
What to do now?
False Genius
September 3, 2020 at 2:57 am #45000Diego PérezModeratorHi!
Did you select to install it for all users?Have you installed veil successfully?
Let me know.
DiegoSeptember 3, 2020 at 6:23 am #45006False GeniusParticipantHi Diego,
Veil is working properly. I selected, “Install for all users”. What can I do?
False Genius
September 4, 2020 at 2:41 am #45101Diego PérezModeratorHi!
Are you sure you are using the latest custom kali image provided by Zaid?
Also you can try to install a different interpreter version, maybe 2.7.14
Let me know how it goes!
DiegoSeptember 4, 2020 at 8:29 am #45104False GeniusParticipantHi, I am on the latest version.
So, I solved the error below:
wine: Cannot find ‘/root/.wine/drive_c/Python27/python.exe’Now, I have this error:
root@kali:~/.wine/drive_c/Python27# wine /root/.wine/drive_c/Python27/python.exe -m pip install pyinstaller==3.5
Traceback (most recent call last):
File “C:\Python27\lib\runpy.py”, line 174, in _run_module_as_main
“__main__”, fname, loader, pkg_name)
File “C:\Python27\lib\runpy.py”, line 72, in _run_code
exec code in run_globals
File “C:\Python27\lib\site-packages\pip\__main__.py”, line 16, in <module>
from pip._internal import main as _main # isort:skip # noqa
File “C:\Python27\lib\site-packages\pip\_internal\__init__.py”, line 19, in <module>
from pip._vendor.urllib3.exceptions import DependencyWarning
File “C:\Python27\lib\site-packages\pip\_vendor\urllib3\__init__.py”, line 7, in <module>
from .connectionpool import (
File “C:\Python27\lib\site-packages\pip\_vendor\urllib3\connectionpool.py”, line 11, in <module>
from .exceptions import (
File “C:\Python27\lib\site-packages\pip\_vendor\urllib3\exceptions.py”, line 2, in <module>
from .packages.six.moves.http_client import (
File “C:\Python27\lib\site-packages\pip\_vendor\urllib3\packages\six.py”, line 203, in load_module
mod = mod._resolve()
File “C:\Python27\lib\site-packages\pip\_vendor\urllib3\packages\six.py”, line 115, in _resolve
return _import_module(self.mod)
File “C:\Python27\lib\site-packages\pip\_vendor\urllib3\packages\six.py”, line 82, in _import_module
__import__(name)
File “C:\Python27\lib\httplib.py”, line 80, in <module>
import mimetools
File “C:\Python27\lib\mimetools.py”, line 6, in <module>
import tempfile
File “C:\Python27\lib\tempfile.py”, line 35, in <module>
from random import Random as _Random
File “C:\Python27\lib\random.py”, line 887, in <module>
_inst = Random()
File “C:\Python27\lib\random.py”, line 97, in __init__
self.seed(x)
File “C:\Python27\lib\random.py”, line 115, in seed
a = long(_hexlify(_urandom(2500)), 16)
WindowsError: [Error -2146893801] Windows Error 0x80090017False Genius
September 5, 2020 at 1:16 am #45159Diego PérezModeratorHi!
Which python interpreter did you installed? Or what did you do to solve the previous issue?Let me know.
DiegoSeptember 5, 2020 at 8:23 am #45164False GeniusParticipantRight! Since, there was no, ‘/Python27/python.exe’, in ‘/root/.wine’ which caused the error below:
wine: Cannot find ‘/root/.wine/drive_c/Python27/python.exe’,
I copied the whole Python27 folder from windows machine to /root/.wine directory. Then, I used this command:
wine msiexec -i python-2.7.18.msi
to install python just for the current user, and not for all users. This removed that error and the error, “Python installation ended prematurely because of an error’September 5, 2020 at 1:06 pm #45170False GeniusParticipantHi,
I removed that error as well. Now, there is only one error which is this:
C:/Python27\python.exe: No module named pip.Pip is installed though. Now what?
False Genius
September 7, 2020 at 4:30 am #45207Diego PérezModeratorHi!
For some reason instaliing it for current user doesn’t execute pip, you’ll need to install it for all users to be able to run pip module.
Maybe try by removing the current python installation and use 2.7.14 interpreter.Let me know how it goes!
DiegoSeptember 7, 2020 at 6:14 am #45209False GeniusParticipantHey,
When, I go for the option, “Install for all users”, it gives me the error, “Python installation ended prematurely because of an error”
False Genius
September 8, 2020 at 2:21 am #45259Diego PérezModeratorHi!
Did you try with the interprete version I mentioned?Let me know.
Diego - AuthorPosts
- You must be logged in to reply to this topic.