krpc-servicedefs can't find a DLL in 64-bit version of KSP
Genhis opened this issue ยท 0 comments
Using krpctools v0.4.8, krpc-servicedefs raised this exception:
FileNotFoundError: [Errno 2] No such file or directory: 'D:/Steam/steamapps/common/Kerbal Space Program/KSP_Data/Managed/Assembly-CSharp.dll
The file Assembly-CSharp.dll
does exist but it is in KSP_x64_Data/Managed
folder. I think that copying the DLL to KSP_Data/Managed
would solve my problem but it's not a long-term solution.
Full stacktrace:
Traceback (most recent call last):
File "C:\Program Files\Python37\Scripts\krpc-servicedefs-script.py", line 11, in <module>
load_entry_point('krpctools==0.4.8', 'console_scripts', 'krpc-servicedefs')()
File "c:\program files\python37\lib\site-packages\krpctools\servicedefs\__init__.py", line 36, in main
defs = servicedefs(args.ksp, args.service, args.assemblies)
File "c:\program files\python37\lib\site-packages\krpctools\servicedefs\__init__.py", line 77, in servicedefs
shutil.copy(ksp+'/KSP_Data/Managed/'+dll, bindir)
File "c:\program files\python37\lib\shutil.py", line 241, in copy
copyfile(src, dst, follow_symlinks=follow_symlinks)
File "c:\program files\python37\lib\shutil.py", line 120, in copyfile
with open(src, 'rb') as fsrc:
FileNotFoundError: [Errno 2] No such file or directory: 'D:/Steam/steamapps/common/Kerbal Space Program/KSP_Data/Managed/Assembly-CSharp.dll'