Code Monkey home page Code Monkey logo

Comments (6)

brentvollebregt avatar brentvollebregt commented on May 27, 2024 3

requirements.txt states that PyInstaller 3.4 or above is required. In the output you have pasted here, PyInstaller 3.3.1 was being used.

from auto-py-to-exe.

brentvollebregt avatar brentvollebregt commented on May 27, 2024

Most of the time this is not an issue with auto-py-to-exe or PyInstaller but incorrect configuration (which is ok). This means you will then need to enable debugging for the project to investigate the issue and hold on to any output.

To enable debugging, go into the "Advanced" section and under the title "How to generate" put 'all' in the box beside --debug. This will print out messages to the console to help you debug.

When debugging, make sure you selected the "Console Based" button and using "One Directory" will help remove basic problems; you can switch back to "One File" when there are no more bugs and then fix the ones associated with "One File".

After re-packaging your project, open up cmd, use the cd command to change directories to where the exe is located and then execute ./my_project.exe (substitute the names). This will run the executable and any errors you were missing before will be output to the console.

from auto-py-to-exe.

Pechi77 avatar Pechi77 commented on May 27, 2024

thanks for your response,

after following the steps.

I am getting the below error in auto-py-exe window and exe is not generated.

`Cleaning workspace
1712864 INFO: PyInstaller: 3.3.1
1712868 INFO: Python: 3.6.5
1712868 INFO: Platform: Windows-10-10.0.17134-SP0
1712876 INFO: wrote C:\WINDOWS\system32\all.spec
1712884 INFO: UPX is not available.
An error occurred, traceback follows:
Traceback (most recent call last):
  File "c:\users\elcot\appdata\local\programs\python\python36\lib\site-packages\auto_py_to_exe\__main__.py", line 193, in convert
    pyi.run() # Execute PyInstaller
  File "c:\users\elcot\appdata\local\programs\python\python36\lib\site-packages\PyInstaller\__main__.py", line 94, in run
    run_build(pyi_config, spec_file, **vars(args))
  File "c:\users\elcot\appdata\local\programs\python\python36\lib\site-packages\PyInstaller\__main__.py", line 46, in run_build
    PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
  File "c:\users\elcot\appdata\local\programs\python\python36\lib\site-packages\PyInstaller\building\build_main.py", line 791, in main
    build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
  File "c:\users\elcot\appdata\local\programs\python\python36\lib\site-packages\PyInstaller\building\build_main.py", line 737, in build
    exec(text, spec_namespace)
  File "<string>", line 16, in <module>
  File "c:\users\elcot\appdata\local\programs\python\python36\lib\site-packages\PyInstaller\building\build_main.py", line 162, in __init__
    raise ValueError("script '%s' not found" % script)
ValueError: script 'C:\WINDOWS\system32\all' not found

Project output will not be moved to output folder
Cleaning workspace
Complete.`

from auto-py-to-exe.

brentvollebregt avatar brentvollebregt commented on May 27, 2024

What command is being executed? This is displayed at the bottom of the UI.

from auto-py-to-exe.

Pechi77 avatar Pechi77 commented on May 27, 2024

This is the command, @brentvollebregt
pyinstaller -y --debug all "D:/Pechi/selenium_link/selenium_link/final/my_tkinter_new.py"

I think I am running cmd in wrong location, it looks for a file called all in the running directory

from auto-py-to-exe.

Pechi77 avatar Pechi77 commented on May 27, 2024

Works fine after updating pyinstaller. Thanks for your time @brentvollebregt . You are a life savior

from auto-py-to-exe.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.