I'm getting started with FeynCalc and FeynArts, so I tried to run some of the examples they give you. Everything works fine, except for the ones which require to generate a model using the scripts in FeynRules. They all give me the following error message:
SetDirectory::cdir: Cannot set current directory to C:\Users\151461\AppData\Roaming\Mathematica/Applications/FeynRules.
I've tried to unistall Mathematica and FeynCalc and install them again, but nothing has changed. For clarity, I add a screenshot of the code I'm running.
Asked
Active
Viewed 120 times
1
"/Applications/FeynRules"is how you would add a Linux path. Your Windows path uses \ so you should maybe use<>"\Applications\FeynRules". If you want code that would work for any operating system you can useFileNameJoinso the code would be$FeynRulesPath = SetDirectory[FileNameJoin[{$UserBaseDirectory, "Applications", "FeynRules"}]]– userrandrand Apr 05 '23 at 20:27FileNameJoin. Did you get the same error message after using$FeynRulesPath = SetDirectory[FileNameJoin[{$UserBaseDirectory, "Applications", "FeynRules"}]]? – userrandrand Apr 06 '23 at 08:52