Coder Social home page Coder Social logo

Comments (17)

fredrikaverpil avatar fredrikaverpil commented on May 20, 2024 1

For what it's worth, I also do not have C:\Windows\SysWOW64 on PATH.

I guess I don't run enough 32-bit applications on my otherwise 64-bit system.

from fbs.

mherrmann avatar mherrmann commented on May 20, 2024

Hi. You should not be inside the src folder, but one directory above it when you do python -m fbs freeze.

from fbs.

bicarlsen avatar bicarlsen commented on May 20, 2024

When I do it from the folder above I get the error

Traceback (most recent call last):
  File "C:\Users\lspmpc\Anaconda3\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "C:\Users\lspmpc\Anaconda3\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Users\lspmpc\Anaconda3\lib\site-packages\fbs\__main__.py", line 4, in <module>
    main()
  File "C:\Users\lspmpc\Anaconda3\lib\site-packages\fbs\cmdline.py", line 25, in main
    args.fn(*fn_args)
  File "C:\Users\lspmpc\Anaconda3\lib\site-packages\fbs\builtin_commands\__init__.py", line 73, in freeze
    freeze_windows(debug=debug)
  File "C:\Users\lspmpc\Anaconda3\lib\site-packages\fbs\freeze\windows.py", line 21, in freeze_windows
    run_pyinstaller(pyinstaller_args + extra_pyinstaller_args, debug)
  File "C:\Users\lspmpc\Anaconda3\lib\site-packages\fbs\freeze\__init__.py", line 23, in run_pyinstaller
    run(cmdline, check=True)
  File "C:\Users\lspmpc\Anaconda3\lib\subprocess.py", line 403, in run
    with Popen(*popenargs, **kwargs) as process:
  File "C:\Users\lspmpc\Anaconda3\lib\subprocess.py", line 709, in __init__
    restore_signals, start_new_session)
  File "C:\Users\lspmpc\Anaconda3\lib\subprocess.py", line 997, in _execute_child
    startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified

from fbs.

mherrmann avatar mherrmann commented on May 20, 2024

Please try again with vanilla Python 3.5, not Anaconda.

from fbs.

mherrmann avatar mherrmann commented on May 20, 2024

@bicarlsen does the problem still occur when you don't use Anaconda?

from fbs.

bicarlsen avatar bicarlsen commented on May 20, 2024

I get the same error when running with plain Python, using both Python 3.6.5 and 3.5.4.

from fbs.

mherrmann avatar mherrmann commented on May 20, 2024

Thanks. What do you get when you do

pip freeze

?

from fbs.

bicarlsen avatar bicarlsen commented on May 20, 2024

fbs==0.4.2

from fbs.

mherrmann avatar mherrmann commented on May 20, 2024

You have failed to follow this step mentioned in both the tutorial and the Manual:

pip install fbs PyQt5==5.9.2 PyInstaller==3.4

from fbs.

bicarlsen avatar bicarlsen commented on May 20, 2024

Thank you. When I switched to plain Python I forgot to install those things. However I am now receiving the error

Traceback (most recent call last):
  File "C:\Users\lspmpc\AppData\Local\Programs\Python\Python35\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "C:\Users\lspmpc\AppData\Local\Programs\Python\Python35\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Users\lspmpc\AppData\Local\Programs\Python\Python35\lib\site-packages\fbs\__main__.py", line 36, in <module>
    main()
  File "C:\Users\lspmpc\AppData\Local\Programs\Python\Python35\lib\site-packages\fbs\cmdline.py", line 28, in main
    fn(*args)
  File "C:\Users\lspmpc\AppData\Local\Programs\Python\Python35\lib\site-packages\fbs\builtin_commands\__init__.py", line 103, in freeze
    freeze_windows(debug=debug)
  File "C:\Users\lspmpc\AppData\Local\Programs\Python\Python35\lib\site-packages\fbs\freeze\windows.py", line 24, in freeze_windows
    _add_missing_dlls()
  File "C:\Users\lspmpc\AppData\Local\Programs\Python\Python35\lib\site-packages\fbs\freeze\windows.py", line 47, in _add_missing_dlls
    _add_missing_dll(dll_name)
  File "C:\Users\lspmpc\AppData\Local\Programs\Python\Python35\lib\site-packages\fbs\freeze\windows.py", line 70, in _add_missing_dll
    copy(_find_on_path(dll_name), freeze_dir)
  File "C:\Users\lspmpc\AppData\Local\Programs\Python\Python35\lib\site-packages\fbs\freeze\windows.py", line 86, in _find_on_path
    raise LookupError("Could not find %s on PATH" % file_name)
LookupError: Could not find msvcr110.dll on PATH

pip freeze gives me

altgraph==0.16.1
fbs==0.4.2
future==0.17.1
macholib==1.11
pefile==2018.8.8
PyInstaller==3.4
PyQt5==5.9.2
pywin32-ctypes==0.2.0
sip==4.19.8

from fbs.

mherrmann avatar mherrmann commented on May 20, 2024

Does it work when you install this: https://www.microsoft.com/en-us/download/details.aspx?id=30679 ?

from fbs.

bicarlsen avatar bicarlsen commented on May 20, 2024

I get the same error.

from fbs.

mherrmann avatar mherrmann commented on May 20, 2024

Thanks. After installing my above link, do you have msvcr110.dll somewhere on your system? (Eg. if you search your C:\ drive with Windows Explorer for this file.)

from fbs.

bicarlsen avatar bicarlsen commented on May 20, 2024

Firstly, thank you very much for all your help, and your quick responses.

Yes, it is located at C:\Windows\SysWOW64\

from fbs.

fredrikaverpil avatar fredrikaverpil commented on May 20, 2024

This is probably not the best solution for you, in this thread, but I figured it could be worth me mentioning that I solved all of my "missing DLL" issues by installing miniconda and having its install directory on PATH.

from fbs.

mherrmann avatar mherrmann commented on May 20, 2024

Thank you Fredrik. I'm surprised @bicarlsen's C:\Windows\SysWOW64\ isn't on the PATH. Can you add it @bicarlsen?

from fbs.

bicarlsen avatar bicarlsen commented on May 20, 2024

Woop! That fixed it :)

Just, to summarize on the main issues , and how they were resolved:

  1. FileNotFoundError: [WinError 2] The system cannot find the file specified solved by using Vanilla Python instead of Anaconda, and ensuring that PyQt and PyInstaller were installed
  2. LookupError: Could not find msvcr110.dll on PATH solved by downloading Visual C++ Redistributable for Visual Studio 2012 Update 4 and ensuring the folder is in the PATH.

PS
I'm receiving another error now, but it is unrelated, so I will start another thread

from fbs.

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.