nexpy / nxrefine

Module to enable [hkl] transformation of single-crystal x-ray scattering
Other
4 stars 5 forks source link

Nexpy will not open after nxrefine installed #81

Open njweadock opened 5 months ago

njweadock commented 5 months ago

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 commented 5 months ago

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 commented 5 months ago

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 commented 5 months ago

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 commented 5 months ago

I'm afraid I'm about to go on travel. You might want to try contacting Matt Krogstad at krogstad@anl.gov if you still need help as he's pretty familiar with NXRefine.