fumitoh / spyder-modelx

Spyder plugin for modelx
https://docs.modelx.io
GNU Lesser General Public License v3.0
7 stars 6 forks source link

Spyder Modelx Plug-in Not found #12

Closed jjaredrides closed 1 year ago

jjaredrides commented 1 year ago

Description of your problem

Basically: spyder is unable to find the modelx plug-in.

I updated my python interpreter from anaconda to pyenv and am using virtual environments.

I downloaded spyder (e.g, not from the anaconda prompt) and I updated my interpreter and Path to reference my specific virtual environment where modelx and spyder-modelx was downloaded to.

The Ipython console is able to find the modelx library (e.g. no error comes up when I type "import modelx as mx")

For the PythonPath - I added a userpath that references my specific virtual environment where the modelx and spyder-modelx libraries are located.

What steps will reproduce the problem?

  1. Go to User Module Reloader (UMR) and set UMR excluded to "modelx"
  2. It says: 'the following modules are not installed on your machine: modelx
  3. Modelx plug-ins are not found in the "Panes" section either

What is the expected output? What do you see instead?

Please provide any additional information below

Versions and main components

fumitoh commented 1 year ago

@jjaredrides On "Console 1/A" in Spyder, can you see if modelx and spyder-modelx are installed by:

>>> import modelx

>>> import spyder_modelx
jjaredrides commented 1 year ago

Here's what happens. I think I probably need to install Spyder through PIP - via the virtual environment according to the instructions. https://docs.spyder-ide.org/current/installation.html

import modelx

import spyder_modelx
No QCoreApplication instance found. Application patches not applied. You have to call load_stylesheet function after instantiation of QApplication to take effect. 
fumitoh commented 1 year ago

OK then both are installed. Can you also check if spymx-kernels is also installed?

jjaredrides commented 1 year ago

Yes, I see a folder for spymx_kernels.

fumitoh commented 1 year ago

I think spyder-modelx is not installed in the environment where Spyder is running. Did you install Spyder from the installer available from Spyder's site?

jjaredrides commented 1 year ago

I installed it from Spyder's website (e.g. downloaded it) vs I think I should use PIP to install it to my virtual environment.

fumitoh commented 1 year ago

The manual says that the Spyder installed from the installer doen't support third-party plugins.

jjaredrides commented 1 year ago

So what do you recommend? Should I create a new environment for Spyder modex and install Spyder in that folder? Or switch back to using Anaconda?

fumitoh commented 1 year ago

Anaconda or WinPython works.

jjaredrides commented 1 year ago

Thank you! The problem is now solved. I really appreciate your help and I find your modelx library absolutely fantastic!