Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nexpy will not open after nxrefine installed #81

Open
njweadock opened this issue Jan 12, 2024 · 4 comments
Open

Nexpy will not open after nxrefine installed #81

njweadock opened this issue Jan 12, 2024 · 4 comments

Comments

@njweadock
Copy link

njweadock commented Jan 12, 2024

I recently installed nxrefine on my local machine but am having trouble opening nexpy now that nxrefine is installed. My installation steps were:

  1. Create a new python3.8 environment in miniconda
  2. Install nexpy with conda install -c conda-forge nexpy
  3. Navigate to the new directory cd C:\miniconda3\envs\nxrefine
  4. Download nxrefine source code to the directory git clone https://github.com/nexpy/nxrefine.git
  5. Change to the downloaded directory cd nxrefine
  6. Run pip install .

The installation completed (I assume) correctly with the result "Successfully installed NXrefine-0.1.1.dev1612+g147bb9e". However, when I execute the nexpy command, miniconda hangs and the nexpy GUI never opens. Should the nexpy GUI still be able to run when nxrefine is installed? Or do I need to use a separate nexpy environment without nxrefine?

@rayosborn
Copy link
Collaborator

We use NeXpy all the time with NXRefine. In fact, the usual issue is that, if there is a problem with importing NXRefine, NeXpy will launch without the NXRefine plugin menu items. You can check the log file to see (from the Window menu). However, you shouldn't clone the NXRefine repository into your conda environment. Clone it to another folder outside conda, and 'pip install .' will install all the files in the right place. I would delete what you have already.

@njweadock
Copy link
Author

Thanks, Ray, I set up a clean conda environment with nxrefine and installed it from ~/downloads. Now I seem to have the problem you just mentioned where NeXpy is launching without NXRefine. I tried to see if there is anything in the log file but I may be looking in the wrong place (nothing shows up in the Event Viewer with the right timestamp).

@rayosborn
Copy link
Collaborator

When you launch NeXpy, there are a series of startup messages that should have an error message for the NXRefine import. It's probably a missing package not caught by the installation. Check https://nexpy.github.io/nxrefine/installation.html to see if it explains what's missing. The documentation is not complete but there may be something useful there.

@rayosborn
Copy link
Collaborator

I'm afraid I'm about to go on travel. You might want to try contacting Matt Krogstad at [email protected] if you still need help as he's pretty familiar with NXRefine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants