Closed nmetrock closed 3 years ago
The fact that the ue4cli module can't be found from inside a Conan recipe suggests that you have two separate Python installations on your system and that Conan is using a different Python installation than the one from which you've been running ue4cli and conan-ue4cli.
I can see from the log output that ue4cli and conan-ue4cli are being run using the Python installation in C:\Program Files\Python39
, so the next step is to identify the Python installation that Conan is using. Could you please run the following command and paste the output here:
where conan
Looking at my Program list, I do have two copies of Python, 3.9 and 3.7, installed around the same time in January (about 2 weeks before I ran into this issue.)
Here's the output you requested:
C:\Users\natha>where conan
C:\Program Files\Conan\conan\conan.exe
C:\Program Files\Python39\Scripts\conan.exe
Ah, I see what's going on now. You've installed Conan using pip at some point (which has created that Python 3.9 entry at the bottom of the list), but you've also installed Conan using the standalone installer (either directly or through a package manager such as Chocolatey), which has created the entry at the top of the list that's taking precedence. The standalone installer for Conan actually bundles its own separate copy of Python, which means you technically have three Python installations on your system and the Conan executable that's getting invoked is using its bundled version. You'll need to uninstall the standalone version of Conan, which will allow the Python 3.9 version to get called and correctly interoperate with ue4cli.
oh wow, what a mess. thank you for helping me sort this out, I appreciate your time.
hello. i'm working with
no major changes to any default locations, however when i compiled UE i accidentally named the directory UE4.26, without the underscore. as part of my debug attempts here, i changed it to the traditional UE_4.26 format, ran the Engine\Binaries\Win64\UnrealVersionSelector-Win64-Shipping.exe tool and updated my path with ue4 setroot, and when none of that worked i then reinstalled both ue4cli conan-ue4cli.
editor runs fine, i ran clean.bat and a fresh build and repeated the above steps just to make sure. hopefully not a newbie mistake somewhere.
thank you for your time