TAGGED: ansys-workbench, installation-error
-
-
April 14, 2023 at 2:15 am
mctom0518
SubscriberHello,
I am having issues with installing Ansys on an Ubuntu computer that was upgraded from 18.04 to 20.04 LTS. I am receiving this error message when I execute runwb2:
An unexpected error has occurred: Could not find a part of the path "/home/user/.config/Ansys/v222/UnitSystems/Ans.Units.config".
System.IO.DirectoryNotFoundException: Could not find a part of the path "/home/user/.config/Ansys/v222/UnitSystems/Ans.Units.config".
 at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x00164] in <99e7772254e64ba29201f69df54e9889>:0Â
 at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.IO.FileOptions options) [0x00000] in <99e7772254e64ba29201f69df54e9889>:0Â
 at (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,System.IO.FileOptions)
 at System.IO.FileSystem.CopyFile (System.String sourceFullPath, System.String destFullPath, System.Boolean overwrite) [0x00035] in <99e7772254e64ba29201f69df54e9889>:0Â
 at System.IO.File.Copy (System.String sourceFileName, System.String destFileName, System.Boolean overwrite) [0x00062] in <99e7772254e64ba29201f69df54e9889>:0Â
 at System.IO.File.Copy (System.String sourceFileName, System.String destFileName) [0x00000] in <99e7772254e64ba29201f69df54e9889>:0Â
 at Ansys.Units.Core.Utils.FileIOUtils+<>c__DisplayClass10_0.b__0 () [0x0000d] in :0Â
 at Ansys.Utilities.FileSystem.DoDespiteIOException (System.String description, System.Action action, System.Int32 millisecondPauseBetweenTrials, System.Boolean onlyIgnoreFileAccessErrors, System.Action onIgnoredError) [0x0006b] in <0837ea3e42fa4da9a112af300734e880>:0Â
 at Ansys.Units.Core.Utils.FileIOUtils.GetConfigFilePath () [0x00066] in :0Â
 at Ansys.Units.Commands.SetDefaultProjectUnitSystemCommand.Execute (Ansys.Core.Commands.IFullContext context) [0x0000b] in <44586768bd434d7b906796e6d8bb5223>:0Â
 at Ansys.Core.Commands.Concurrency.CommandWorkUnit.executeInContext (Ansys.Core.Commands.CommandContext subContext, Ansys.Core.Commands.Concurrency.IExecutionEngineCallback tracer) [0x000a1] in <06df2a3f074f408f9f324f103911d6ca>:0Â
 at Ansys.Core.Commands.Concurrency.BaseWorkUnit.doExecute (Ansys.Core.Commands.Concurrency.IExecutionEngineCallback executionEngine, Ansys.Core.Commands.CommandContext subContext) [0x0002d] in <06df2a3f074f408f9f324f103911d6ca>:0Â
 at Ansys.Core.Commands.Concurrency.BaseWorkUnit.Execute (Ansys.Core.Commands.Concurrency.IExecutionEngineCallback executionEngine, System.Boolean dontCatchExceptions) [0x0010f] in <06df2a3f074f408f9f324f103911d6ca>:0Â
--- Ansys.Core.Commands.CommandFailedException: Could not find a part of the path "/home/user/.config/Ansys/v222/UnitSystems/Ans.Units.config".
CommandName: SetDefaultProjectUnitSystem()
 at Ansys.Core.Commands.CommandAsyncResult.RethrowFailureException (System.Exception e) [0x0000c] in <06df2a3f074f408f9f324f103911d6ca>:0Â
 at Ansys.Core.Commands.CommandAsyncResult.Wait (System.Int32 milliSecondsTimeout, System.Boolean exitContext) [0x00095] in <06df2a3f074f408f9f324f103911d6ca>:0Â
 at Ansys.Core.Commands.CommandAsyncResult.Wait () [0x00000] in <06df2a3f074f408f9f324f103911d6ca>:0Â
 at Ansys.Core.DataModel.ProjectSystem.Project.InvokeProjectInitializationCommands (Ansys.Core.Commands.IProtectedContext commandContext) [0x00039] in <06df2a3f074f408f9f324f103911d6ca>:0Â
 at Ansys.Core.DataModel.ProjectSystem.ResetCommand.Execute (Ansys.Core.Commands.IFullContext context) [0x0016b] in <06df2a3f074f408f9f324f103911d6ca>:0Â
 at Ansys.Core.Commands.Concurrency.CommandWorkUnit.executeInContext (Ansys.Core.Commands.CommandContext subContext, Ansys.Core.Commands.Concurrency.IExecutionEngineCallback tracer) [0x000a1] in <06df2a3f074f408f9f324f103911d6ca>:0Â
 at Ansys.Core.Commands.Concurrency.BaseWorkUnit.doExecute (Ansys.Core.Commands.Concurrency.IExecutionEngineCallback executionEngine, Ansys.Core.Commands.CommandContext subContext) [0x0002d] in <06df2a3f074f408f9f324f103911d6ca>:0Â
 at Ansys.Core.Commands.Concurrency.BaseWorkUnit.Execute (Ansys.Core.Commands.Concurrency.IExecutionEngineCallback executionEngine, System.Boolean dontCatchExceptions) [0x0010f] in <06df2a3f074f408f9f324f103911d6ca>:0Â
--- Ansys.Core.Commands.CommandFailedException: Could not find a part of the path "/home/user/.config/Ansys/v222/UnitSystems/Ans.Units.config".
CommandName: Reset()
 at Ansys.Core.Commands.CommandAsyncResult.RethrowFailureException (System.Exception e) [0x0000c] in <06df2a3f074f408f9f324f103911d6ca>:0Â
 at Ansys.Core.Commands.CommandAsyncResult.Wait (System.Int32 milliSecondsTimeout, System.Boolean exitContext) [0x00095] in <06df2a3f074f408f9f324f103911d6ca>:0Â
 at Ansys.Core.Commands.CommandAsyncResult.Wait () [0x00000] in <06df2a3f074f408f9f324f103911d6ca>:0Â
 at Ansys.Core.DataModel.ProjectSystem.ResetCommand.InvokeAndWait (Ansys.Core.Commands.IProtectedContext context) [0x0001b] in <06df2a3f074f408f9f324f103911d6ca>:0Â
 at Ansys.Core.Kernel.ResetProject () [0x0001b] in <06df2a3f074f408f9f324f103911d6ca>:0Â
 at Ansys.Core.Kernel.Ansys.Core.IKernel.ResetProject () [0x00000] in <06df2a3f074f408f9f324f103911d6ca>:0Â
 at Ans.Program.Runtime.Initialize (Ans.Program.RuntimeSettings settings) [0x00787] in <533ef4cf2ec54545830ecf48d3de026d>:0I also have downloaded all libraries in the Ansys Installation Guide for Ubuntu, but I am still receiving the error message above, and also the .config/Ansys/v222 directory is empty in my case.
-
April 14, 2023 at 3:28 am
mctom0518
SubscriberÂ
I was able to get it working by copying the ~/.config/Ansys/ folder from another computer of mine to the computer that has the issue, and it seems to be working just fine. Although, I hope there is a better solution for this.
Â
-
- The topic ‘Ansys Error when Opening Workbench 2022R2’ is closed to new replies.
-
3572
-
1188
-
1076
-
1063
-
952
© 2025 Copyright ANSYS, Inc. All rights reserved.