Python errors after building from master
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Python errors after building from master
Hi all,
I cannot include the usual version info here since my build is broken.
I just built from the latest master (as of 1PM CDT 14Apr21) using the latest VS2019. I have Python 3.8.9 installed, but the CMake config shows that it's pointing to the versions in the libpack. The build was successful but when I try to launch the app I get the following errors (in order): Can anybody suggest fixes for these?
Thanks in advance,
Frank
I cannot include the usual version info here since my build is broken.
I just built from the latest master (as of 1PM CDT 14Apr21) using the latest VS2019. I have Python 3.8.9 installed, but the CMake config shows that it's pointing to the versions in the libpack. The build was successful but when I try to launch the app I get the following errors (in order): Can anybody suggest fixes for these?
Thanks in advance,
Frank
Re: Python errors after building from master
You don't need a separate Python installation. The LibPack provides everything you need.I have Python 3.8.9 installed
Now you need to extend the PATH environment variable by the LibPack's bin directory. You don't need to do this system-wide but you can do this within VS. Therefore right-click on the FreeCADMain target in the Solution Explorer and go to Properties. There switch to Debugging and write this to the environment section:build was successful but when I try to launch the app I get the following errors (in order):
Code: Select all
FREECAD_LIBPACK_BIN=Your_path_to_the_Libpack\bin
PATH=%FREECAD_LIBPACK_BIN%;%PATH%
Re: Python errors after building from master
I followed your instructions, I believe. The configuration in VS looks like this:
Frank
But at least I'm getting new errors (sigh):
I'm getting tired.Frank
Re: Python errors after building from master
Instead of getting a failure that Qt dlls cannot be found you get that an entry point isn't found. This looks like a binary incompatible Qt version is loaded. If you press F5 inside VS you should get some hints (see VS's Output window) about where the Qt dlls are located.But at least I'm getting new errors (sigh):
Alternatively you can copy the content of the LibPack's bin directory to FreeCAD's bin directory. This way the Qt dlls are in the same directory as FreeCADBase.dll, ... and then the correct version is loaded.
Don't give up!I'm getting tired.
Re: Python errors after building from master
Here's the output window from VS2019:
At the end of the build came this cheerful message:
So I copied the entire contents of the libpack bin directory into the FreeCAD output's bin directory (replacing files with the same names). So, attempting to launch Freecad.exe yields this:
I MUST have something truly weird about my machine/dev configuration. I can't believe the Master branch is in this state
Frank
Code: Select all
Build started...
1>------ Build started: Project: fc_version, Configuration: Release x64 ------
1>Generating version_check
1>git
1>E:/Dev/FreeCAD19_Output/src/Build/Version.h.out written
1>Generating Version.h
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(240,5): warning MSB8065: Custom build for item "E:\Dev\FreeCAD19_Output\CMakeFiles\bfc1867e28e48ff3ba6cde6689ec44ff\version_check.rule" succeeded, but specified output "e:\dev\freecad19_output\src\build\version_check" has not been created. This may cause incremental build to work incorrectly.
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(240,5): warning MSB8064: Custom build for item "E:\Dev\FreeCAD19_Output\CMakeFiles\bfc1867e28e48ff3ba6cde6689ec44ff\Version.h.rule" succeeded, but specified dependency "e:\dev\freecad19_output\src\build\version_check" does not exist. This may cause incremental build to work incorrectly.
1>Done building project "fc_version.vcxproj".
========== Build: 1 succeeded, 0 failed, 109 up-to-date, 0 skipped ==========
Frank
Re: Python errors after building from master
This can be fixed by setting FREECAD_COPY_PLUGINS_BIN_TO_BUILD with CMake-gui and then configure and generate.
This should move the necessary files, no need to build in VS.
"fight the good fight"
Re: Python errors after building from master
That's not what I meant. If you press F5 to start debugging you should see the list of loaded dlls and their absolute paths. Then you should be able to see where are the incompatible dlls are located.Here's the output window from VS2019:
You have almost reached the goal. In the bin directory there must be a directory platforms with the qwindows.dll.I MUST have something truly weird about my machine/dev configuration. I can't believe the Master branch is in this state
Re: Python errors after building from master
SRogan,
Unfortunately there are NO freecad copy options in CMake: So I'm not sure how I would do that. Putting 'copy' into the search box shows nothing at all.
Thanks for the idea - the instructions on the site explicitly call to set all 3 copy options on, but they no longer seem to exist.
Frank
Unfortunately there are NO freecad copy options in CMake: So I'm not sure how I would do that. Putting 'copy' into the search box shows nothing at all.
Thanks for the idea - the instructions on the site explicitly call to set all 3 copy options on, but they no longer seem to exist.
Frank
Re: Python errors after building from master
WMayer,
I did use F5 to start debugging. It gave the errors I showed in the VSOutput then stopped with an 'access denied' error.
Frank
I did use F5 to start debugging. It gave the errors I showed in the VSOutput then stopped with an 'access denied' error.
Frank
Re: Python errors after building from master
If you run configure again does it show up?
- Attachments
-
- Capture.PNG (26.22 KiB) Viewed 1160 times
"fight the good fight"