Git Product home page Git Product logo

Comments (5)

vmharvey avatar vmharvey commented on June 23, 2024 1

I have the same issue on Ubuntu 22.04.4. I found a bug on the sherpa issue tracker which shows the same problem occurring: sherpa/sherpa#828. From this comment sherpa/sherpa#828 (comment), assuming it's still true after a few years, it appears that installing sherpa via pip triggers a source install, which requires the user to have all the sherpa dependencies, including the build system bison.

Modifying the env file by removing sherpa==4.16 from the pip section and putting sherpa=4.15 in the conda section fixed the problem for me:

  - tqdm
  - sherpa=4.15
  - pip:
    - ray[default]==2.9

It appears that the official sherpa channel on anaconda only has version 4.15, hence the small downgrade required.

from gammapy.

registerrier avatar registerrier commented on June 23, 2024

One option here is to remove the version constraint on sherpa, or use 4.15 instead (in which case conda should work).

from gammapy.

Astro-Kirsty avatar Astro-Kirsty commented on June 23, 2024

Do we know what versions of Linux this happens for?
Just curious, because I did not encounter this with Ubuntu 22.04

from gammapy.

bkhelifi avatar bkhelifi commented on June 23, 2024

I have the same ubuntu version.
Within the env of the version 1.2, pip install sherpa==4.15 leads to the same error...
I have in the output "configure: error: bison/byacc/yacc not found" for the configuration of region-4.14

from gammapy.

Astro-Kirsty avatar Astro-Kirsty commented on June 23, 2024

Sherpa was initially moved to the pip installation due to both apple and windows systems not being able to install it through this method.
#4983 (comment)
As a user of these systems sherpa cannot be installed outside pip, so this line of the environment file needs to be removed.

Not sure how we wish to proceed here?
Appears to be some issue with any combination with at least one operating system :(

from gammapy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.