Giter Club home page Giter Club logo

Comments (13)

shimwell avatar shimwell commented on September 23, 2024

Perhaps we should go for conda forge instead of anaconda cloud as both DAGMC and OpenMC use conda forge and these are codes we aim to connect to

from paramak.

shimwell avatar shimwell commented on September 23, 2024

A PR has been created to keep track of this effort #143

from paramak.

shimwell avatar shimwell commented on September 23, 2024

Looks like #143 has got a bit out of date.

The import files from that PR are:
build.sh
bld.bat
environment.yml
meta.yaml
update_conda.sh

Also looks like conda forge is missing one of the dependencies, so back to conda cloud
https://groups.google.com/g/cadquery/c/0wKB21lFlvs/m/LfWmvwSjAAAJ

from paramak.

shimwell avatar shimwell commented on September 23, 2024

I am making progress with this issue.
Conda appears to build a package for all os systems
this is the branch I'm working on
https://github.com/ukaea/paramak/tree/conda_install

from paramak.

shimwell avatar shimwell commented on September 23, 2024

Package creation and upload appears to be working but the install is not quite working

Screenshot from 2021-02-02 22-22-43

from paramak.

jwscook avatar jwscook commented on September 23, 2024

What's the output with -v for verbosity in conda install -v -c openmcworkshop paramak?

from paramak.

shimwell avatar shimwell commented on September 23, 2024

Thanks for the suggestion

I should mention I did this inside a container but it appears to suggest the python version is no good. Which I don't quite understand as I though I had built for a few python versions

array=( 3.6 3.7 3.8 )

sudo docker run -it continuumio/miniconda3
conda install -v -c openmcworkshop paramak

Screenshot from 2021-02-05 13-41-15

from paramak.

jwscook avatar jwscook commented on September 23, 2024

Looks like paramak doesn't allow python version 3.7 or 3.8 for that matter. Can you try it with a 3.6 miniconda container?

from paramak.

shimwell avatar shimwell commented on September 23, 2024

Something for next week but just wanted to post these finds before I forget

sudo docker run -it continuumio/miniconda3
conda create --name myenv python=3.6
conda activate myenv
conda install -v -c openmcworkshop paramak

Screenshot from 2021-02-05 21-58-05

from paramak.

peter-t-fox avatar peter-t-fox commented on September 23, 2024

I've tried to resolve this today, but have made essentially no progress. Things I've tried:

  • Installing paramak in a clean Python 3.6, 3.7 and 3.8 environment. In each case, the install fails with the same error message, indicating that paramak is not compatible with the version of python under which it is being installed.
  • When running conda install, the correct version of paramak seems to be selected in each case, but you can be explicit by doing e.g.conda install -c openmcworkshop paramak=0.2.3=py36hfeaa757_0.
  • The metadata for each version of paramak seems to be set up correctly. For example, running conda search --info -c openmcworkshop paramak=0.2.3=py36hfeaa757_0 gives:
file name   : paramak-0.2.3-py36hfeaa757_0.tar.bz2
name        : paramak
version     : 0.2.3
build       : py36hfeaa757_0
build number: 0
size        : 190.6 MB
license     : MIT
subdir      : linux-64
url         : https://conda.anaconda.org/openmcworkshop/linux-64/paramak-0.2.3-py36hfeaa757_0.tar.bz2
md5         : 9ba5566e753d15ff63c056108533bf30
timestamp   : 2021-02-05 13:55:27 UTC
dependencies: 
  - cadquery
  - matplotlib
  - mpmath
  - neutronics_material_maker
  - numpy
  - plasmaboundaries
  - plotly
  - pytest-cov
  - python >=3.6,<3.7.0a0
  - python_abi 3.6.* *_cp36m
  - scipy
  - sympy

which shows the expected python range. This suggests that it might be a conflict in the dependencies rather than in the core paramak package itself.

  • Each of the dependencies can be installed individually without difficulty, except cadquery, which fails under Python 3.8, interestingly with a similar error message.
  • By building the paramak package and putting it in a custom conda channel on my local filesystem, I can get it to install correctly under Python 3.6 (haven't tried with the other versions, but likely it would work there too). It is not obvious why there would be a difference in these two approaches, as the installation tarball should be identical.

In general, it seems to be very difficult to extract information from conda concerning how it determines when there is a specification mismatch, and what packages in the dependency list contribute to any element of the specification. Without this information, it's very difficult to see what's going on.

from paramak.

shimwell avatar shimwell commented on September 23, 2024

Sounds like a good investigation, thanks for taking a look at this. The puzzle continues. It will be all the more satisfying when solved.

I wonder if it is getting the old version of cadquery before the project shifted away from freecad

from paramak.

shimwell avatar shimwell commented on September 23, 2024

Ignore that last thought of mine, looks like the channel priority is correct. channel cadquery is higher priority than channel conda-forge in the conda_build.sh

from paramak.

shimwell avatar shimwell commented on September 23, 2024

I've been trying this again but this time in a new branch with the latest features from the parmak as the old branch was getting a bit out of date and have a few conflicts.

https://github.com/ukaea/paramak/tree/conda_install_2

from paramak.

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.