Skip to content
This repository has been archived by the owner on Dec 22, 2021. It is now read-only.

Peculiar behaviour in fresh install #407

Open
drandykass opened this issue Aug 28, 2017 · 4 comments
Open

Peculiar behaviour in fresh install #407

drandykass opened this issue Aug 28, 2017 · 4 comments
Labels

Comments

@drandykass
Copy link
Contributor

I got a handful of peculiar errors on a fresh install, so I decided to create a fresh and clean environment within Anaconda to retest the installation (incidentally, the issue I was running into was a dual definition of QDate format, once set at 1 and once set at 2. Running fatiando.test() resulted in one failure. Had a hodge podge installation so that's why I decided to clean install).

Operating system: Windows 7 Enterprise, SP 1
Anaconda 2: 4.4.0 x86-64
Fresh environment in Anaconda, using 2.7.13.

Installation steps:
1:
conda install fatiando mayavi --channel conda-forge
(ran without error)
2:
python -c "import fatiando; fatiando.test()
(received error that pytest was not installed)
3:
conda install pytest
(installed)
4:
repeated step 2. This time, the test had a different look--it was almost like it was on a verbose setting. It passed with 8 warnings (attached file).
5:
Attempted to run gravmag_mag_prism.py from the cookbook, and got a mayavi error (your favourite). The 2D plot looked fine. Error output attached in second part of the file. At the error's suggestion, I tried:
6:
conda install pyqt
I had it, superseded 27_4 over 27_2
7:
conda install traits
superseded py27_1 over 27_0
8:
conda install mayavi
This was interesting. One would think it would have installed everything it needed in step 1, but it didn't. It installed tk, changed the version of matplotlib, and downgraded pyqt. This resulted in the same error I had which started this whole thing (part 3 of the file).

fatiando_install.txt

No idea at this point. Not a huge priority, but reporting it anyway.

@drandykass
Copy link
Contributor Author

The new environment started as a bare bones, by the way, with:

conda create -n test_fresh_02 python=2.7.13

@leouieda
Copy link
Member

@drandykass yay more Mayavi install errors 🎊

I recently tried to get Mayavi working with Fatiando and eventually gave up. It really is dependency hell. This happens from time to time as the dependencies move on but Mayavi lags behind. The downgrade of matplotlib is probably related to the downgrade of pyqt.

This is my biggest problem with Mayavi. Ideally I would go and contribute to the conda-forge recipe to keep it updated but I don't have the time to spare for a dependency that I personally don't even use anymore.

The only solution I can see for this kind of issue is to have an alternative for plotting in matplotlib (which doesn't look good but people can at least install it). Then we can keep mayavi as an optional dependency, only for those with the peace of mind to get to install.

@drandykass
Copy link
Contributor Author

Totally understand (and agree!). Merge with #408? The issues are similar if not identical.

@leouieda
Copy link
Member

leouieda commented Sep 8, 2017

Merge with #408? The issues are similar if not identical.

We can leave these as separate. #408 is more to do with some poorly designed tests that fail depending on the architecture.

@leouieda leouieda added the bug label Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants