unrecognized option '-m' on Win 10 startup
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
unrecognized option '-m' on Win 10 startup
I downloaded and installed the 19.1 release today and installed on Windows 10 in a new directory C:\Program Files\FreeCAD 0.19 not deleting my FreeCAD 18 in directory C:\Program Files\FreeCAD 0.18. I had previously run multiple earlier versions of FreeCAD 19 unzipping the Windows 10 CONDA release to my desktop and running the program from there. I have never seen this error dialog displayed before running the installed 19.1 release. Now with the newly installed release, this error dialog appear 3 times before the application comes up in what looks like normal functional mode. I downloaded the FreeCAD_weekly-builds-24276-Win-Conda_vc14.x-x86_64 release and ran it from a desktop folder and the dialog does not appear. Is it safe to rely on this installed FreeCAD? Is it possible to stop these 3 error boxes every time I start?
(sorry for the ugly image, Win won't let me text copy an error box)
OS: Windows 10 Version 2004
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24276 (Git)
Build type: Release
Branch: releases/FreeCAD-0-19
Hash: a88db11e0a908f6e38f92bfc5187b13ebe470438
Python version: 3.8.6+
Qt version: 5.15.1
Coin version: 4.0.1
OCC version: 7.5.0
Locale: English/United States (en_US)
(sorry for the ugly image, Win won't let me text copy an error box)
OS: Windows 10 Version 2004
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24276 (Git)
Build type: Release
Branch: releases/FreeCAD-0-19
Hash: a88db11e0a908f6e38f92bfc5187b13ebe470438
Python version: 3.8.6+
Qt version: 5.15.1
Coin version: 4.0.1
OCC version: 7.5.0
Locale: English/United States (en_US)
Re: unrecognized option '-m' on Win 10 startup
That's not normal behaviour. For the installed version you should check the shortcut settings if -m is set as program parameter and if yes remove it.Now with the newly installed release, this error dialog appear 3 times before the application comes up in what looks like normal functional mode.
Alternatively you can create a new shortcut e.g. on the desktop from FreeCAD.exe and use that.
Re: unrecognized option '-m' on Win 10 startup
Thanks for the quick reply @wmayer. The installed shortcut does not have the -m. I created a new shortcut anyway and got the same problem 3 error dialogs on startup.
Another observation: the FreeCAD 0.19/bin/Scripts directory only has the pip*, f2py, and wheel exe programs in it. It has none of the scripts that are in the Win 10 CONDA bin/Scripts directory that are unpacked from the 7z file.
I uninstalled and downloaded the release once again and have the same results. I'm looking for the sha256 of the distribution file mine is:
f8e2bb62bd5e0c79b8c31f1f5db0b765d69346e52bae5a46f7c492fe51bd712a */cygdrive/C/Users/gjpc/Downloads/FreeCAD-0.19.1.a88db11-WIN-x64-installer-1.exe The file should be unsigned, right?
Another observation: the FreeCAD 0.19/bin/Scripts directory only has the pip*, f2py, and wheel exe programs in it. It has none of the scripts that are in the Win 10 CONDA bin/Scripts directory that are unpacked from the 7z file.
I uninstalled and downloaded the release once again and have the same results. I'm looking for the sha256 of the distribution file mine is:
f8e2bb62bd5e0c79b8c31f1f5db0b765d69346e52bae5a46f7c492fe51bd712a */cygdrive/C/Users/gjpc/Downloads/FreeCAD-0.19.1.a88db11-WIN-x64-installer-1.exe The file should be unsigned, right?
Re: unrecognized option '-m' on Win 10 startup
I have the same on a Win10 PC here. I suspect it has something to do with the specific build (LP/Conda) because with the same config files different builds do different things. All are started from simple shortcuts (drag the exe, create shortcut here) so no command line parameters. Cant investigate further now. Could you try the LP and Conda builds from here https://github.com/FreeCAD/FreeCAD-AppI ... kly-builds
Re: unrecognized option '-m' on Win 10 startup
Hi @kisolre the Conda build does not exhibit the problem. However, the LP build does have the problem. The error dialog appears 3 times and must be clicked OK before the functioning app comes up. Hope this helps.
Re: unrecognized option '-m' on Win 10 startup
This is a very weird behaviour and especially that the dialog appears three times. The correct behaviour when starting FreeCAD with an unsupported parameter is that this dialog appears exactly one time and then the application exits. I wonder if the FreeCAD.exe always has the same process ID (can be checked with the Task Manager) of if it changes.
Can you post the exact download link of the LP version, please?
Re: unrecognized option '-m' on Win 10 startup
@wmayer of course!
Page: https://github.com/FreeCAD/FreeCAD-AppI ... kly-builds
Item: https://github.com/FreeCAD/FreeCAD-AppI ... -x86-64.7z
Unziping the 7z file onto the desktop and then running C:\Users\gjpc\Desktop\FreeCAD_0.20.24587_Win-LPv12.5.3_vc17.x-x86-64\bin\FreeCAD.exe directly left double clicking on the the file with the mouse not using any shortcut causes the 3 error dialogs.
Any thoughts why the FreeCAD_0.20.24587_Win-LPv12.5.3_vc17.x-x86-64\bin\Scripts\ directory has no scripts and the the Conda version has many scripts in it?
Page: https://github.com/FreeCAD/FreeCAD-AppI ... kly-builds
Item: https://github.com/FreeCAD/FreeCAD-AppI ... -x86-64.7z
Unziping the 7z file onto the desktop and then running C:\Users\gjpc\Desktop\FreeCAD_0.20.24587_Win-LPv12.5.3_vc17.x-x86-64\bin\FreeCAD.exe directly left double clicking on the the file with the mouse not using any shortcut causes the 3 error dialogs.
Any thoughts why the FreeCAD_0.20.24587_Win-LPv12.5.3_vc17.x-x86-64\bin\Scripts\ directory has no scripts and the the Conda version has many scripts in it?
Code: Select all
Directory: C:\Users\gjpc\Desktop\FreeCAD_0.20.24587_Win-LPv12.5.3_vc17.x-x86-64\bin\Scripts
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 11/16/2020 10:37 PM 106382 f2py.exe
-a---- 12/3/2020 1:15 AM 106387 pip.exe
-a---- 12/3/2020 1:15 AM 106387 pip3.8.exe
-a---- 12/3/2020 1:15 AM 106387 pip3.exe
-a---- 11/5/2020 6:38 AM 106348 wheel.exe
Code: Select all
Directory: C:\Users\gjpc\Desktop\FreeCAD_weekly-builds-24276-Win-Conda_vc14.x-x86_64\bin\Scripts
Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 3/29/2021 1:09 PM __pycache__
-a---- 10/6/2020 5:42 AM 1242 .qt-post-link.bat
-a---- 2/20/2021 7:52 AM 74 2to3-script.py
-a---- 2/20/2021 7:52 AM 41984 2to3.exe
-a---- 1/8/2021 12:17 AM 216 chardetect-script.py
-a---- 10/26/2020 8:42 AM 41984 chardetect.exe
-a---- 2/8/2021 8:57 AM 211 dxfpp-script.py
-a---- 1/15/2021 2:04 AM 41984 dxfpp.exe
-a---- 1/7/2021 9:35 PM 225 easy_install-script.py
-a---- 10/26/2020 8:42 AM 41984 easy_install.exe
-a---- 2/10/2021 2:39 AM 211 f2py-script.py
-a---- 2/10/2021 2:29 AM 161 f2py.bat
-a---- 1/15/2021 2:04 AM 41984 f2py.exe
-a---- 2/20/2021 7:52 AM 72 idle-script.py
-a---- 2/20/2021 7:52 AM 41984 idle.exe
-a---- 1/8/2021 9:44 AM 200 isympy-script.py
-a---- 10/26/2020 8:42 AM 41984 isympy.exe
-a---- 3/27/2021 12:49 PM 198 margins-script.py
-a---- 11/10/2020 3:09 PM 74752 margins.exe
-a---- 3/27/2021 12:49 PM 205 pip-script.py
-a---- 11/10/2020 3:09 PM 74752 pip.exe
-a---- 3/27/2021 12:49 PM 205 pip3-script.py
-a---- 11/10/2020 3:09 PM 74752 pip3.exe
-a---- 2/20/2021 7:52 AM 57 pydoc-script.py
-a---- 2/20/2021 7:52 AM 41984 pydoc.exe
-a---- 3/27/2021 12:42 PM 645 rst2html.py
-a---- 3/27/2021 12:42 PM 765 rst2html4.py
-a---- 3/27/2021 12:42 PM 1188 rst2html5.py
-a---- 3/27/2021 12:42 PM 842 rst2latex.py
-a---- 3/27/2021 12:42 PM 650 rst2man.py
-a---- 3/27/2021 12:42 PM 815 rst2odt.py
-a---- 3/27/2021 12:42 PM 1777 rst2odt_prepstyles.py
-a---- 3/27/2021 12:42 PM 652 rst2pseudoxml.py
-a---- 3/27/2021 12:42 PM 688 rst2s5.py
-a---- 3/27/2021 12:42 PM 922 rst2xetex.py
-a---- 3/27/2021 12:42 PM 653 rst2xml.py
-a---- 3/27/2021 12:42 PM 721 rstpep2html.py
-a---- 3/27/2021 12:42 PM 16120 runxlrd.py
-a---- 3/27/2021 12:49 PM 192 wheel-script.py
-a---- 11/10/2020 3:09 PM 74752 wheel.exe
Re: unrecognized option '-m' on Win 10 startup
I downloaded and ran that exact version without any problems whatsoever.
https://github.com/FreeCAD/FreeCAD-AppI ... -x86-64.7z
The only thing that is clearly different is that I always keep the FreeCAD files in a completely non-Windows folder. Never in "Users" or "Program Files".
OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.20.24587 (Git)
Build type: Release
Branch: master
Hash: 1f62d4666102d8efd4d8f3ba58a1037456a3bcfb
Python version: 3.8.6+
Qt version: 5.15.1
Coin version: 4.0.1
OCC version: 7.5.0
Locale: English/United States (en_US)
https://github.com/FreeCAD/FreeCAD-AppI ... -x86-64.7z
The only thing that is clearly different is that I always keep the FreeCAD files in a completely non-Windows folder. Never in "Users" or "Program Files".
OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.20.24587 (Git)
Build type: Release
Branch: master
Hash: 1f62d4666102d8efd4d8f3ba58a1037456a3bcfb
Python version: 3.8.6+
Qt version: 5.15.1
Coin version: 4.0.1
OCC version: 7.5.0
Locale: English/United States (en_US)
Re: unrecognized option '-m' on Win 10 startup
Works for me fine, too. I created the directory C:\Temp\Users\gjpc\Desktop\FreeCAD_0.20.24587_Win-LPv12.5.3_vc17.x-x86-64\bin to have a similar path name but it still works for me without problems. So, I don't know what causes the "-m" option.I downloaded and ran that exact version without any problems whatsoever.
I don't know what the additional scripts are good for but they are not needed for FreeCAD itself.Any thoughts why the FreeCAD_0.20.24587_Win-LPv12.5.3_vc17.x-x86-64\bin\Scripts\ directory has no scripts and the the Conda version has many scripts in it?
Re: unrecognized option '-m' on Win 10 startup
@GeneFC You got me thinking. I downloaded the exact file in your reply onto my D: drive in a /temp directory and ran the unzipped FreeCAD.
Same problem, 3 error boxes titled FreeCAD unrecognized option '-m'.
However, This time I took a closer look at the splash/status window that was hidden under the error window:
I bet even with your FreeCAD divorced from Mr. Gate's clutches is still using C:\Users\YOU\AppData\Roaming\FreeCAD
So now we arrive at the detritus of the many older FreeCAD's I have installed on my system that are using AppData\Roaming\FreeCAD
Unfortunately C:\Users\gjpc\AppData\Roaming\FreeCAD\Mod\FCGear(InitGui.py no is an incomplete path to the offending modules. It has been a long time since I programed any python code, but I am thinking that if I can start FreeCAD from the FreeCADmd.exe console we may get more information about the offending modules. Any developers listening that may give me the command line in the the console to start FreeCAD?
Same problem, 3 error boxes titled FreeCAD unrecognized option '-m'.
However, This time I took a closer look at the splash/status window that was hidden under the error window:
I bet even with your FreeCAD divorced from Mr. Gate's clutches is still using C:\Users\YOU\AppData\Roaming\FreeCAD
So now we arrive at the detritus of the many older FreeCAD's I have installed on my system that are using AppData\Roaming\FreeCAD
Unfortunately C:\Users\gjpc\AppData\Roaming\FreeCAD\Mod\FCGear(InitGui.py no is an incomplete path to the offending modules. It has been a long time since I programed any python code, but I am thinking that if I can start FreeCAD from the FreeCADmd.exe console we may get more information about the offending modules. Any developers listening that may give me the command line in the the console to start FreeCAD?