-
Notifications
You must be signed in to change notification settings - Fork 153
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
Spectrum tool and PV Slice tool do not appear in 0.5.1 #697
Comments
Did you install glue with conda or some other way? Also, do you see the 'Export' sub-menu in the 'File' menu, and does it contain 'Export D3PO' and 'Export Plotly'? Finally, can you let me know what the output is in the terminal when you start up glue with |
Installed from git clone with python setup.py develop. More details later
|
Basically the spectrum tool and PV slice thing are now treated as plugins and registered via entry_points. It's possible that entry points don't work properly with 'develop'. Will try it out. |
Hmm no it seems to work. So later, when you get a chance, send the output of |
OK, so there's clearly something wrong with entry points that is specific to my setup
my config file:
|
Also I have no |
Thanks - could you paste the output of |
|
Thanks, could you let me know the contents of |
I should've guessed:
looks fine? or is the |
No this all looks fine. Ok, one more thing to try: open the IPython console inside Glue and type: from glue._plugin_helpers import iter_plugin_entry_points
print(list(iter_plugin_entry_points())) What does this output? Thanks! |
|
Huh. |
Ok, for fun, can you now type that in IPython (for the same Python installation) outside of glue? (that is, the normal IPython) |
Whoa:
|
um, what. |
fwiw:
same env |
In IPython in glue, can you check: import glue
glue.__path__ ? (and same outside glue) |
(same in cmd line) |
What setuptools version do you have installed? |
that... seems like an incomplete version #.... |
updating setuptools with conda |
Huh wait, how did it say 0.6 but then updated from 17? Does |
still 0.6 |
?? |
Ah, I found out that the entry points only start working at some point between setuptools 5 and 11 (need to refine further). In the mean time, I wonder if you have a pip installed version overriding the conda one. Try conda removing setuptools and also remove the directory manually, then re-install. |
Just tested, and Glue only works correctly for setuptools >= 11.3. Need to find a workaround for earlier versions, but 0.6 is definitely very old. |
OK, this is now a conda issue, but after conda uninstalling and removing all setuptools directories, I had to
I'll revisit this tomorrow... have to sleep. |
I had to re-install setuptools from source; conda installing led to the above error, which also broke pip. This issue is resolved for me now, though. |
This is now fixed in glueviz 0.5.2 (i.e. it will work with old versions of setuptools) |
This issue is recurring for me:
|
Solved; needed to remove a line in |
In 0.5.1, when I load a cube, the spectrum extraction and PV extraction tools are missing. They are present for the same data in 0.4.
The text was updated successfully, but these errors were encountered: