Comments (6)
This is a known issue and derives directly from CIAO, where these modules are built outside of Sherpa and installed in the global namespace for all the CIAO components to use.
Sherpa should be a good Python citizen and should avoid installing these modules in the global namespace, so I will take this as a RFE on both the build process (avoid installing group and stk in the global namespace) and the code (Sherpa should try to import these modules from the sherpa
namespace and fall back to the global namespace). Not sure what the priority for this change will be, though.
In my tests, pip
correctly identifies those modules as part of the Sherpa installation and correctly removes them during a pip uninstall sherpa
: in my experience this is not always true, and I don't think I could find any patterns to explain why sometimes that does not happen.
from sherpa.
It would be great if this could be fixed for the next Sherpa release (see #75 (comment))
from sherpa.
For reference (as part of the "we need to revamp the sherpa build project") I need to read https://discuss.python.org/t/building-extension-modules-the-2020-way/5950/33 and related
from sherpa.
I noted that - at least in the one case I'm currently looking at - I get
error: [Errno 2] No such file or directory: '/Users/guenther/code/sherpa/build/lib/python3.11/site-packages/stk.so'
when I install as editable for development with pip install -e .
, but not when I install normally pip install .
That's (a) good because I can work around out (it's a little more cumbersome to have to run the install every every change in a Python file, but possible) and (b) because it might give a hint (thought I don't quite know which one) what causes this.
from sherpa.
I wonder - and this is a completely random thought - whether we need
pip install -e . --no-build-isolation
from sherpa.
A quick build later suggests that may not be much of a help ....
from sherpa.
Related Issues (20)
- ERROR: Failed building wheel for sherpa HOT 2
- pytest 8.0.0 changes HOT 1
- argh: pytest < 8 HOT 2
- numpy 2.0 HOT 1
- improve error message when plot backend is not available HOT 1
- Checking whether we can do something with stats/method objects: design issue
- choice of list vs tuple vs ndarray for field settings
- requires_pylab decorator is wrong HOT 3
- bokeh backend fails for some multi-panel plots
- should composite parameters not carry over min/max/frozen/... status
- `create_rmf` channel enumeration clashes with spectral channels
- Is the "outside limits" check on parameter values working as intended?
- How are we to handle parameter limit exceeded problems with linked parameters?
- potential confusion get_num_par_xxx routines when a model is repeated
- Is get_model_pars useful?
- xerr for PHA data does not recognize the wavelength setting
- Should xlo < xhi for wavelength plot objects?
- XSPEC 12.14.0 is out HOT 2
- thoughts on model cache work HOT 1
- plot_resid() with bokeh HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sherpa.