Reputation: 341
I'm trying to automate some tasks for my phd research. Basically I have a .bat
script does the following:
.exe
filepython
to plot the results of the simulationHowever, if the Intel OneAPI environment is active, I keep getting this error: qt.qpa.plugin: Could not load the Qt platform plugin "windows" in "" even though it was found.
I tried some solutions by including PyQt
on windows
path
but it doesn't work. Here is a sample of the code:
@echo off
echo.
echo =====================================================================
call "C:\Program Files (x86)\Intel\oneAPI\setvars.bat" intel64
echo =====================================================================
icx /Qstd:c17 /O3 /Ot /Qipo TimeSeries/time_series.c libs/edosystems.c libs/nldyn.c libs/iofiles.c
@ time_series.exe
@ %USERPROFILE%/anaconda3/python.exe -B -m FTimeSeries.out.plot
If I do not call the Intel OneAPI environment, I can run python without any problem.
What am I missing here?
Upvotes: 0
Views: 97
Reputation: 389
It looks like it's an environment variable issue caused by anaconda3. Here you will find a possible solution:
How to fix "could not find or load the Qt platform plugin windows" while using Matplotlib in PyCharm
Upvotes: 0