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

CLI env --json #1031

Closed
thumDer opened this issue Oct 13, 2020 · 5 comments
Closed

CLI env --json #1031

thumDer opened this issue Oct 13, 2020 · 5 comments
Labels
Command Line Utility (CLI) Issues related to pyRevit CLI tool [subsystem] Prioritize The issue is planned to be resolved in the next version

Comments

@thumDer
Copy link
Contributor

thumDer commented Oct 13, 2020

Describe the bug
On some of our computers the pyrevit env --json command fails with the following output:

Error: Nem található a következő elérési út egy része.: "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework".
Run with "--debug" option to see debug messages 

--debug not seem to help here.
The hungarian part means cannot find part of path. Those computers have .net 4.8 installed, so it wont let me install 4.7.1, only net runtime 2.0.7..

The normal text pyrevit env provides the flollowing:

Microsoft Windows 10 [Version 10.0.18363]
Executing User: IN-EX\inex.VR
Active User: 
Admin Access: No
%APPDATA%: "C:\Users\inex.vr\AppData\Roaming"
Latest Installed .Net Framework: 4.8
No .Net Target Packs are installed.
No .Ne-Core Target Packs are installed.
pyRevit CLI 4.8.2.0

I don't get why it says No .Net Target Packs are installed. and No .Ne-Core Target Packs are installed. I guess that should be the issue but I can't find a way to fix it.

@eirannejad
Copy link
Collaborator

Missing target packs is not an issue. Does this path C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework exist on your machine?

eirannejad added a commit that referenced this issue Oct 19, 2020
@eirannejad eirannejad added Command Line Utility (CLI) Issues related to pyRevit CLI tool [subsystem] Prioritize The issue is planned to be resolved in the next version labels Oct 19, 2020
@eirannejad
Copy link
Collaborator

Fixed and will be published with next release

@thumDer
Copy link
Contributor Author

thumDer commented Oct 20, 2020

Yes it does, and it looks like below. The reason could be that I have hungarian Win10, and even File Explorer shows the folder as Programfájlok (x86)
Thanks for the efforts btw!

PS C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework> ls


    Directory: C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework


Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d-----     2020. 09. 01.     15:50                v3.5
d-----     2020. 09. 01.     15:50                v4.0
d-----     2020. 09. 01.     15:50                v4.5
d-----     2020. 09. 01.     15:50                v4.5.1
d-----     2020. 09. 01.     15:50                v4.5.2
d-----     2020. 09. 01.     15:50                v4.6
d-----     2020. 09. 01.     15:49                v4.6.1
d-----     2020. 09. 01.     16:49                v4.7
d-----     2020. 09. 01.     15:50                v4.7.1
d-----     2020. 09. 01.     15:49                v4.7.2
d-----     2020. 09. 01.     15:49                v4.X

@thumDer
Copy link
Contributor Author

thumDer commented Oct 21, 2020

Sorry for the confusion, but it did work on my computer where I have the .NETFramework folder, but you were right, it didn't work where that folder did not exist, even with v4.8 installed.

@eirannejad
Copy link
Collaborator

Okay I fixed the hardcoded paths to a smart path so windows can return the correct user path. I think this will fix the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Command Line Utility (CLI) Issues related to pyRevit CLI tool [subsystem] Prioritize The issue is planned to be resolved in the next version
Projects
None yet
Development

No branches or pull requests

2 participants