Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not find cpython engines #1779

Closed
dankinnett opened this issue Mar 31, 2023 · 20 comments
Closed

Can not find cpython engines #1779

dankinnett opened this issue Mar 31, 2023 · 20 comments
Labels

Comments

@dankinnett
Copy link

dankinnett commented Mar 31, 2023

Hi, after installing the latest version pyrevit I got this error message "Can not find cpython engines". Any idea what I did wrong?

image

@dankinnett dankinnett changed the title Hi, after installing the latest version Pyrevit I got this error message. Any idea what I did wrong? Hi, after installing the latest version pyrevit I got this error message "Can not find cpython engines". Any idea what I did wrong? Mar 31, 2023
@dankinnett dankinnett changed the title Hi, after installing the latest version pyrevit I got this error message "Can not find cpython engines". Any idea what I did wrong? Can not find cpython engines Mar 31, 2023
@jmcouffin
Copy link
Contributor

Can you run pyrevit env command and post the report
Also, check out this previous issue as a possible fix #605

@dankinnett
Copy link
Author

dankinnett commented Apr 4, 2023

Hi jmcouffin, thanks for your assistance. I checked post #605 and did not have folders 368 or 372 after install. Any idea why / where I can download them? They didn't appear to be in the source files for the latest release either. I ran pyrevit env in command and got these result:

U:>pyrevit env
==> Registered Clones (full git repos)
==> Registered Clones (deployed from archive/image)
master | Deploy: "basepublic" | Branch: "master" | Version: "4.8.12.22247+0031" | Path: "C:\Users\daniel kinnett\AppData\Roaming\pyRevit-Master"
==> Attachments
master | Product: "Autodesk Revit 2023" | Engine: IPY277 (277) | Path: "C:\Users\daniel kinnett\AppData\Roaming\pyRevit-Master"
master | Product: "2022 First Customer Ship" | Engine: IPY277 (277) | Path: "C:\Users\daniel kinnett\AppData\Roaming\pyRevit-Master"
master | Product: "Autodesk Revit 2021" | Engine: IPY277 (277) | Path: "C:\Users\daniel kinnett\AppData\Roaming\pyRevit-Master"
master | Product: "2020.2.1 (New Install)" | Engine: IPY277 (277) | Path: "C:\Users\daniel kinnett\AppData\Roaming\pyRevit-Master"
==> Installed Extensions
==> Default Extension Search Path
C:\Users\daniel kinnett\AppData\Roaming\pyRevit\Extensions
==> Extension Search Paths
==> Extension Sources - Default
https://github.com/eirannejad/pyRevit/raw/master/extensions/extensions.json
==> Extension Sources - Additional
==> Installed Revits
Autodesk Revit 2023 | Version: 23.0.11.19 | Build: 20220503_1030(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2023"
2022 First Customer Ship | Version: 22.0.2.392 | Build: 20210224_1515(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2022"
Autodesk Revit 2021 | Version: 21.1.1.109 | Build: 20200715_1022(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2021"
2020.2.1 (New Install) | Version: 20.2.12.1 | Build: 20200210_1400(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2020"
==> Running Revit Instances
==> User Environment
Microsoft Windows 10 [Version 10.0.22621]
Executing User: VERTEX\daniel kinnett
Active User:
Admin Access: No
%APPDATA%: "C:\Users\daniel kinnett\AppData\Roaming"
Latest Installed .Net Framework: 4.8
No .Net Target Packs are installed.
No .Ne-Core Target Packs are installed.
pyRevit CLI v4.8.12.22247+0031

U:>

Thanks again for your help.

@jmcouffin
Copy link
Contributor

regarding the folder you should have these, or most of these here %AppData%\Roaming\pyRevit-Master\bin\engines
image
If you don't have one of the CPY folder, then that is why it cannot find cpython engine (> uninstall and install again)
If you have it, I suggest you try to attach you pyrevit version to Revit with a different engine with the command line;
pyrevit attach master 2711 --installed --allusers

Alternatively, you could try to uninstall and use one of the WIP installer you can find under the actions tab in github in the artifacts of one of the actions

@dankinnett
Copy link
Author

Hi jmcouffin,

I have both of the CPY folders and they both have content in them (see attached). I am, however, missing the IMPY340PR folder. Could that be the issue? I've already tried uninstalling and reinstalling using both exe files. I'm not savvy enough to understand your alternative solution "you could try to uninstall and use one of the WIP installer you can find under the actions tab in github in the artifacts of one of the actions." Can you clarify?

image
image
image

Thanks again!

@dankinnett dankinnett reopened this Apr 4, 2023
@jmcouffin
Copy link
Contributor

The missing folder isn't the issue.
Sure, the files located in the actiond/workflow section of this repo. Those are the latest version / work in progress between releases
https://github.com/eirannejad/pyRevit/suites/11989975393/artifacts/629413860

@dankinnett
Copy link
Author

dankinnett commented Apr 4, 2023

Hey jmcouffin, I tried the pyRevit_4.8.13.23093_signed and pyRevit_4.8.13.23093_admin_signed installers in that folder. Still having the same issue (see attached).

image

@jmcouffin
Copy link
Contributor

Have you tried the command line ⬆️ ?

@dankinnett
Copy link
Author

dankinnett commented Apr 4, 2023

I tried both of the CLI installers. I don't get an error message regarding the cpython engines on start up any more, but I don't see any pyrevit tools when I open Revit... even though I see the application in my installed apps (see attached).

image

this is what I get after running pyrevit env:

U:>pyrevit env
==> Registered Clones (full git repos)
==> Registered Clones (deployed from archive/image)
==> Attachments
==> Installed Extensions
==> Default Extension Search Path
C:\Users\daniel kinnett\AppData\Roaming\pyRevit\Extensions
==> Extension Search Paths
==> Extension Sources - Default
https://github.com/eirannejad/pyRevit/raw/master/extensions/extensions.json
==> Extension Sources - Additional
==> Installed Revits
Autodesk Revit 2024 | Version: 24.0.4.427 | Build: 20230308_1635(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2024"
Autodesk Revit 2023 | Version: 23.0.11.19 | Build: 20220503_1030(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2023"
2022 First Customer Ship | Version: 22.0.2.392 | Build: 20210224_1515(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2022"
Autodesk Revit 2021 | Version: 21.1.1.109 | Build: 20200715_1022(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2021"
2020.2.1 (New Install) | Version: 20.2.12.1 | Build: 20200210_1400(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2020"
==> Running Revit Instances
PID: 4100 | 2022 First Customer Ship | Version: 22.0.2.392 | Build: 20210224_1515(x64) | Language: 0 | Path: "C:\Program Files\Autodesk\Revit 2022"
==> User Environment
Microsoft Windows 10 [Version 10.0.22621]
Executing User: VERTEX\daniel kinnett
Active User:
Admin Access: No
%APPDATA%: "C:\Users\daniel kinnett\AppData\Roaming"
Latest Installed .Net Framework: 4.8
No .Net Target Packs are installed.
No .Ne-Core Target Packs are installed.
pyRevit CLI v4.8.13.23093+1230-wip

U:>

Thanks

@jmcouffin
Copy link
Contributor

ok,
let me clarify.
The command line I mention is something similar to the pyrevit env command you ran.
The result of the pyrevit env command now tells me you have only pyRevit CLI installed (CLI stands for Command Line Interface) > no pyRevit addin installed, just the command line version of pyRevit, so it is normal to not have anything showing in pyRevit.
for reference:
https://pyrevitlabs.notion.site/pyRevit-CI-CD-92078f5fb72440de8e7b63f00fa72725
https://pyrevitlabs.notion.site/pyRevit-CLI-c50de95259114db795db5bd3f19f8e2a
https://pyrevitlabs.notion.site/pyRevit-For-Teams-ddc6c312d6f6488691eed2ec7704fd97
https://pyrevitlabs.notion.site/Manage-pyRevit-clones-e9f789f9431346b482021f2a87a6dabf

Two options from there. You go grab one of the installers, either from the release section or from the actions section in the repo
OR
you install pyRevit from the command line running this command for example
pyrevit clone master
then
pyrevit attach master 2711 --installed --allusers

@dankinnett
Copy link
Author

dankinnett commented Apr 5, 2023

Hi jmcouffin,

Thanks for the clarification. My understanding is obviously quite superficial. I've tried all of the installers in the release section and the actions section. Same issue persists. I tried using the command line to install as well... but I may be getting a bit out of my depth. This is what I get when I try the second alternative that you proposed using the command prompt:

U:>pyrevit clone master
Error: Destination path already exists "C:\Users\daniel kinnett\AppData\Roaming\pyRevit\pyRevit\master"
Run with "--debug" option to see debug messages

U:>pyrevit attach master 2711 --installed --allusers

U:>pyrevit clone master --debug
clone = True
<clone_name> = master
Debug: Checking for all: wiki
Debug: Missing: wiki
Debug: Checking for all: blog
Debug: Missing: blog
Debug: Checking for all: docs
Debug: Missing: docs
Debug: Checking for all: source
Debug: Missing: source
Debug: Checking for all: youtube
Debug: Missing: youtube
Debug: Checking for all: support
Debug: Missing: support
Debug: Checking for all: env
Debug: Missing: env
Debug: Checking for all: update
Debug: Missing: update
Debug: Checking for all: clone
Debug: Repo source determined as "https://github.com/eirannejad/pyRevit.git:master"
Debug: Destination path determined as "C:\Users\daniel kinnett\AppData\Roaming\pyRevit\pyRevit"
Debug: Destination path already exists C:\Users\daniel kinnett\AppData\Roaming\pyRevit\pyRevit
Debug: Using subpath C:\Users\daniel kinnett\AppData\Roaming\pyRevit\pyRevit\master
Error: Destination path already exists "C:\Users\daniel kinnett\AppData\Roaming\pyRevit\pyRevit\master" (pyRevitLabs.Common.PyRevitException)
at pyRevitLabs.PyRevit.PyRevitClones.DeployFromRepo(String cloneName, String deploymentName, String branchName, String repoUrl, String destPath, GitInstallerCredentials credentials)
at pyRevitCLI.PyRevitCLICloneCmds.CreateClone(String cloneName, String deployName, String branchName, String repoUrl, String imagePath, String destPath, GitInstallerCredentials credentials)
at pyRevitCLI.PyRevitCLI.ProcessArguments()
at pyRevitCLI.PyRevitCLI.Main(String[] args)

U:>

@jmcouffin
Copy link
Contributor

this:

Error: Destination path already exists "C:\Users\daniel kinnett\AppData\Roaming\pyRevit\pyRevit\master"

tells you you already have an installation or a clone of pyRevit available there.

  1. Remove the folder C:\Users\daniel kinnett\AppData\Roaming\pyRevit
  2. and rerun the 2 command lines mentioned earlier

@dankinnett
Copy link
Author

hey jmcouffin,

After deleting the folder I ran reran the two command lines mentioned above. Unfortunately, still getting the same error that the system can not find cpython engines.

@dankinnett
Copy link
Author

Hi jmcouffin,

Still having issues. I've tried all of the recommendations above? Any other ideas? Thanks.

@brown313
Copy link

We have come across this same issue, even with the very latest version 4.8.13. We have found it is caused by having Windows FIPS mode enabled, which is a requirement for some of our users. If we disable FIPS, it works without issue.

@jmcouffin
Copy link
Contributor

Still having issues. I've tried all of the recommendations above? Any other ideas? Thanks.

Can you try @brown313 recommandation @dankinnett ?

Copy link
Contributor

This issue is stale because it has been open for 60 days with no activity.

@github-actions github-actions bot added the Stale label Feb 16, 2024
Copy link
Contributor

github-actions bot commented Mar 1, 2024

This issue was closed because it has been inactive for 14 days since being marked as stale.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Mar 1, 2024
@Haunfelder
Copy link

@brown313 Can you expand on how you disabled FIPs mode? What do you think is the cause of this mode blocking pyrevit from finding the cpython engines?

@brown313
Copy link

brown313 commented May 9, 2024

In regedit, set HKLM\System\CurrentControlSet\Control\Lsa\FipsAlgorithmPolicy\Enabled to 0
It's likely caused by a cryptographic module/algorithm being used that isn't FIP 140 compliant.
https://learn.microsoft.com/en-us/windows/security/security-foundations/certification/fips-140-validation may be helpful in further understanding

@dankinnett
Copy link
Author

dankinnett commented May 9, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants