enthought / enthought/mayavi

Problem running mayavi through terminal

Open
#981 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
1.4k
Forks
316
Avg merge
7h 44m
Merged PRs (30d)
5

Description

Hello,

I installed mayavi via anaconda on python 3.8. When I run the test
```
(base) xxx:~$ mayavi2
You might be loading two sets of Qt binaries into the same process. Check that all plugins are compiled against the right Qt binaries. Export DYLD_PRINT_LIBRARIES=1 and check that only one set of binaries are being loaded.
qt.qpa.plugin: Could not load the Qt platform plugin "cocoa" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
```
When I run mayavi2 through python I have to import PyQt5

```
>>>>>python
Python 3.8.3 (default, Jul 2 2020, 11:26:31)
[Clang 10.0.0 ] :: Anaconda, Inc. on darwin
Type "help", "copyright", "credits" or "license" for more information.

>>> import PyQt5
>>> from mayavi.plugins.app import main
# Note, this does not process any command line arguments.
mayavi = main()

```
I tried to install the second time pyqt5
```
(base) xxx:~$ conda install -c dsdale24 pyqt5
UnsatisfiableError: The following specifications were found
to be incompatible with the existing python installation in your environment:

Specifications:

- pyqt5 -> python=2.7

Your python: python=3.8
```

I checked python versions possibilities

```
(base)xxx:~$ which python
/opt/anaconda3/bin/python
(base) xxx:~$
(base) xxx:~$ python --version
Python 3.8.3
(base) xxx:~$
```

Any suggestions will be appreciated.
Thanks,
Nataliya

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.