Closed sladaar closed 4 years ago
did it by myself!
@sladaar How did you manage to do this?
Make a BAT script containing:
call activate ledfx
call c:\Users\
@Hokyjack I did it but it did not work.
(base) C:\Users\tuant>call C:\Users\tuant\anaconda3\Scripts\activate.bat ledfx
(ledfx) C:\Users\tuant>call C:\Users\tuant\anaconda3\envs\ledfx\Scripts\ledfx.exe
Loading configuration file from C:\Users\tuant\AppData\Roaming\.ledfx
Loading default presets from C:\Users\tuant\anaconda3\envs\ledfx\Lib\site-packages\ledfx
Traceback (most recent call last):
File "c:\users\tuant\anaconda3\envs\ledfx\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "c:\users\tuant\anaconda3\envs\ledfx\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Users\tuant\anaconda3\envs\ledfx\Scripts\ledfx.exe\__main__.py", line 7, in <module>
File "c:\users\tuant\anaconda3\envs\ledfx\lib\site-packages\ledfx\__main__.py", line 89, in main
ledfx.start(open_ui = args.open_ui)
File "c:\users\tuant\anaconda3\envs\ledfx\lib\site-packages\ledfx\core.py", line 66, in start
import win32api
ImportError: DLL load failed while importing win32api: The specified module could not be found.
don't know if this is the best way but works for me :) ledfx.bat:
call "C:\Users\admin\anaconda3\Scripts\activate.bat" ledfx & "C:\Users\admin\anaconda3\envs\ledfx\Scripts\ledfx.exe" --open-ui
First of all, thanks a lot for this project, it's awesome!
So, i'm on windows and installed ledfx in Anaconda. To run the visualization i needed a shortcut without entering the environment, so i found the executable in C:\Users\"myuser"\Anaconda3\envs\ledfx\Scripts\ledfx.exe and so far no problems. BUT, when i close the window it seems i lose the configuration file, C:\Users\"myuser"\AppData\Roaming.ledfx\config.yaml or however i can't run the visualization no more because it fires me an error:
Thanks in advance!
with further investigations it seems that executing that exe could be the problem, because running the script inside the anaconda environment could resolve the issue. So i'm trying to create a shortcut to activate the env AND execute "ledfx" command.