Comments (15)
It seems that installing PyQt with pip
doesn't work together with Conda. I don't know if this is a temporary issue or permanent.
Anyway, try uninstalling PyQt with pip uninstall pyqt5
and then installing it via conda install pyqt
. This worked for the guy in issue #1.
from argos.
Unfortunately conda does not yet have pyqt5
on conda-forge, but they are working on it:
conda-forge/staged-recipes#2210 (comment)
from argos.
I just installed pyqt
with conda and that gave me version 5.6.something.
from argos.
Like @rsignell-usgs mentioned above, outside of the conda-forge
realm, it should work. However, many rely on conda-forge
to build their envs and get more software than just argos
.
An alternative, until we fix Qt in conda-forge, is to use an environment.yml
with the dependencies from defaults
instead.
from argos.
Ah, I was not aware that conda-forge replaces/overrides(?) the default conda package environment, sorry.
from argos.
It does note replace or overrides. It dependents on how you use it. If conda-forge
is on top of defaults
in your .condarc
file (or environment.yml
) conda
will prefer conda-forge
packages. The same is true doe defaults
if you revert the order.
TL;DR
conda-forge
is note 100% compatible with defaults
because conda-forge
is almost always more up-to-date with the exception of Qt due to CI time constraints. So the channel order matters.
from argos.
Alright, thanks for clearing this up.
from argos.
I tried building on Windows using only the defaults
channel, but the version of pyqt
on Windows there is still at 4.11.4, so no go.
Here's what I did:
conda env create -f argos_environment.yml
with argos_environment.yml
:
name: ARGOS
channels:
- defaults
dependencies:
- python=3.5
- numpy
- pyqt
- h5py
- netcdf4
- pillow
- scipy
- pandas
- pip
- pip:
- pyqtgraph
- argos
And listing the pyqt version results:
C:\Users\rsignell\documents\github> activate ARGOS
(ARGOS) C:\Users\rsignell\documents\github>conda list pyqt
# packages in environment at C:\Users\rsignell\AppData\Local\Continuum\Miniconda
3\envs\ARGOS:
#
pyqt 4.11.4 py35_7 defaults
pyqtgraph 0.9.10 py35_1 defaults
from argos.
Try leaving out pyqtgraph and installing that one via pip
from argos.
@bilderbuchi , indeed leaving out pyqtgraph
(I updated the environment.yml above to remove pyqtgraph and install using pip), it allowed conda
to find a more recent version of pyqt
:
(ARGOS) C:\Users\rsignell\documents\github>conda list pyqt
# packages in environment at C:\Users\rsignell\AppData\Local\Continuum\Miniconda
3\envs\ARGOS:
#
pyqt 5.6.0 py35_1 defaults
pyqtgraph 0.10.0 <pip>
So progress!
Unfortunately, when I run python -m argos.main
, however, I get this:
Here's the full listing from my environment, in case anything obvious is wrong:
(ARGOS) C:\Users\rsignell\documents\github>conda list
# packages in environment at C:\Users\rsignell\AppData\Local\Continuum\Miniconda
3\envs\ARGOS:
#
argos 0.2.1 <pip>
bzip2 1.0.6 vc14_3 [vc14] defaults
curl 7.45.0 vc14_1 [vc14] defaults
freetype 2.5.5 vc14_1 [vc14] defaults
h5py 2.6.0 np111py35_2 defaults
hdf5 1.8.15.1 vc14_4 [vc14] defaults
icu 57.1 vc14_0 [vc14] defaults
jpeg 8d vc14_2 [vc14] defaults
libnetcdf 4.3.3.1 vc14_5 [vc14] defaults
libpng 1.6.27 vc14_0 [vc14] defaults
libtiff 4.0.6 vc14_2 [vc14] defaults
mkl 2017.0.1 0 defaults
netcdf4 1.2.4 np111py35_0 defaults
numpy 1.11.3 py35_0 defaults
openssl 1.0.2j vc14_0 [vc14] defaults
pandas 0.19.2 np111py35_1 defaults
pillow 3.4.2 py35_0 defaults
pip 9.0.1 py35_1 defaults
pyqt 5.6.0 py35_1 defaults
pyqtgraph 0.10.0 <pip>
python 3.5.2 0 defaults
python-dateutil 2.6.0 py35_0 defaults
pytz 2016.10 py35_0 defaults
qt 5.6.2 vc14_0 [vc14] defaults
scipy 0.18.1 np111py35_1 defaults
setuptools 27.2.0 py35_1 defaults
sip 4.18 py35_0 defaults
six 1.10.0 py35_0 defaults
vs2015_runtime 14.0.25123 0 defaults
wheel 0.29.0 py35_0 defaults
zlib 1.2.8 vc14_3 [vc14] defaults
from argos.
The above argos_environment.yml
works great on Linux though. 😛
from argos.
Is there any output on the console? Perhaps if you start Argos with debug messages. Can you try to start with python -m argos.main -l debug
please?
from argos.
Okay, I tried it, but you aren't going to like it:
from argos.
I looked in the code. Directly after main.py:82 Argos will try to import PyQt. So I think there is still an issue with your PyQt installation. Let's try to confirm this by bypassing Argos and just import PyQt from Python. Can you start python
and then type the following on the Python command prompt: from PyQt5 import QtCore, QtGui, QtWidgets
. I expect this gives the same error behaviour.
from argos.
You are correct! It gives the same behaviour. I guess pyqt
from the defaults channel doesn't work;
(ARGOS) C:\Users\rsignell\documents\github>conda list qt
# packages in environment at C:\Users\rsignell\AppData\Local\Continuum\Miniconda3\envs\ARGOS:
#
pyqt 5.6.0 py35_1 defaults
qt 5.6.2 vc14_0 [vc14] defaults
from argos.
Related Issues (17)
- argos does not show output when failing to start HOT 4
- Plot multiple variables at once HOT 2
- Can't read HDF5 created with pandas. HOT 2
- Failed to disconnect signal when closing main window with PySide2 HOT 1
- Failed to disconnect signal when editing config item with PySide2 HOT 1
- Bug: levels argument is required for float input types HOT 2
- Image plot crosshair fails on NetCDF scalars set to fill value. HOT 1
- levels argument is required for float input types
- Export dataset HOT 1
- "Line Plot" unusable because "QtCore" is not defined HOT 5
- TypeError when trying to open image plot HOT 10
- Plot from different datasets
- problems examining my HDF-5 file in argos HOT 3
- Add environment.yml HOT 3
- More zoom/pan modes? HOT 2
- Auto-select most appropriate axes for plots HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from argos.