Viewing 15 posts - 1 through 15 (of 23 total)
  • Author
    Posts
  • #44827
    False Genius
    Participant

    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/6BNkKbC

    False Genius

    #44923
    Diego PérezDiego Pérez
    Moderator

    Hi!
    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!
    Diego

    #44927
    False Genius
    Participant

    Hi,

    Sorry for asking this stupid question:
    We have to run that command on windows or kali?

    False Genius

    #44962
    Diego PérezDiego Pérez
    Moderator

    Hi!
    In kali, run it in kali.

    Greetings!
    Diego

    #44970
    False Genius
    Participant

    Hi Diego,

    I tried this command:
    wine /root/.wine/drive_c/Python27/python.exe -m pip install pyinstaller==3.5

    This 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

    #45000
    Diego PérezDiego Pérez
    Moderator

    Hi!
    Did you select to install it for all users?

    Have you installed veil successfully?

    Let me know.
    Diego

    #45006
    False Genius
    Participant

    Hi Diego,

    Veil is working properly. I selected, “Install for all users”. What can I do?

    False Genius

    #45101
    Diego PérezDiego Pérez
    Moderator

    Hi!

    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!
    Diego

    #45104
    False Genius
    Participant

    Hi, 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 0x80090017

    False Genius

    #45159
    Diego PérezDiego Pérez
    Moderator

    Hi!
    Which python interpreter did you installed? Or what did you do to solve the previous issue?

    Let me know.
    Diego

    #45164
    False Genius
    Participant

    Right! 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’

    #45170
    False Genius
    Participant

    Hi,
    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

    #45207
    Diego PérezDiego Pérez
    Moderator

    Hi!
    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!
    Diego

    #45209
    False Genius
    Participant

    Hey,

    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

    #45259
    Diego PérezDiego Pérez
    Moderator

    Hi!
    Did you try with the interprete version I mentioned?

    Let me know.
    Diego

Viewing 15 posts - 1 through 15 (of 23 total)
  • You must be logged in to reply to this topic.