Support #2284

Windows: python error when trying to plot.

Added by juan 9 months ago. Updated 9 months ago.

Status:NewStart date:14 Jan 2019
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-

Description

After installing BornAgain-1.14.0 in Windows and running one of the reflectometry examples,

C:\BornAgain-1.14.0\Examples\python\simulation\ex06_Reflectometry\BasicSpecularSimulation.py,

the following error message is thrown:

This application failed to start because it could not find or load the Qt platform plugin "windows"
in "".

Available platform plugins are: minimal, offscreen, windows.

Reinstalling the application may fix this problem.

The problem is solved (if this can be called a solution) by adding the following environment variable:

QT_QPA_PLATFORM_PLUGIN_PATH=%QTDIR%\plugins\platforms\

--------------------------
More info on the system in which it was tested:
-Windows 10
-BornAgain-1.14.0 for python 3.6
-Python 3.6 - Anaconda

Python 3.6.4 |Anaconda, Inc.| (default, Jan 16 2018, 10:22:32) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.path
[
'',
'C:\\BornAgain-1.14.0\\python',
'C:\\Anaconda3\\python36.zip',
'C:\\Anaconda3\\DLLs',
'C:\\Anaconda3\\lib',
'C:\\Anaconda3',
'C:\\Anaconda3\\lib\\site-packages',
'C:\\Anaconda3\\lib\\site-packages\\win32',
'C:\\Anaconda3\\lib\\site-packages\\win32\\lib',
'C:\\Anaconda3\\lib\\site-packages\\Pythonwin'
]

History

#1 Updated by juan 9 months ago

Specifically, the problem is found in line 60 of the aforementioned example:

ba.plot_simulation_result(results)

Also available in: Atom PDF