Coder Social home page Coder Social logo

Comments (9)

amizeranschi avatar amizeranschi commented on May 22, 2024 1

@keisen thank you for considering to publish to Anaconda. I have found two examples of GitHub actions created by other users, here and here.

And here is some info regarding how to set up meta.yaml, the metadata file for conda.

Perhaps these could be of help.

from tf-keras-vis.

keisen avatar keisen commented on May 22, 2024 1

@amizeranschi , Thank you for pointing out and information!
I've never used anaconda so far, so your comments are very helpful for me.

I'm going to read the articles and to tackle to manually publish without github actions at first.
Thank you so much!

from tf-keras-vis.

keisen avatar keisen commented on May 22, 2024

@amizeranschi , Thank you for your request!
I believe, as you said, we should publish tf-keras-vis to both pip and conda repositories for all users.

I will do it in v0.7.0 or higher.
Of course, I'm so happy if you submit PullRequest that add GIthub Actions to publish to conda (i.e., .github/workflows/*.yml) !

Thanks!

from tf-keras-vis.

keisen avatar keisen commented on May 22, 2024

I failed, so reopen this issue and am going to investigate the cause.

from tf-keras-vis.

amizeranschi avatar amizeranschi commented on May 22, 2024

@keisen thank you for looking into this. What kind of trouble are you having?

If it helps, I found a tutorial for creating a Conda package from a pre-existing PyPI package: https://docs.conda.io/projects/conda-build/en/stable/user-guide/tutorials/build-pkgs-skeleton.html

Make sure to check the Prerequisites, as well: https://docs.conda.io/projects/conda-build/en/stable/user-guide/getting-started.html#prereqs

from tf-keras-vis.

keisen avatar keisen commented on May 22, 2024

@amizeranschi , Thank you for your response and the information! I'll read them.

What kind of trouble are you having?

I forgot to append the link below:

https://github.com/keisen/tf-keras-vis/runs/2919754030?check_suite_focus=true

I've attempted the GithubActions recipe you suggested, but the result was failed as above.
I believe that my meta.yaml has any problem, but I don't know what it is so far.

Thanks!

from tf-keras-vis.

amizeranschi avatar amizeranschi commented on May 22, 2024

Honestly that error is a bit confusing to me as well, I'm not skilled enough in Python development.

My guess is that the problem is with the configuration of conda channels, as mentioned here:

Traceback (most recent call last):
  File "/root/miniconda3/lib/python3.8/site-packages/conda/core/subdir_data.py", line 698, in fetch_repodata_remote_request
    resp.raise_for_status()
  File "/root/miniconda3/lib/python3.8/site-packages/requests/models.py", line 941, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: None for url: file:///github/workspace/noarch/repodata.json

and

conda.exceptions.UnavailableInvalidChannel: The channel is not accessible or is invalid.
  channel name: workspace
  channel url: file:///github/workspace
  error code: 404

You might want to check your Conda channel configuration and adjust it somehow, using your personal Anaconda channel.

You will need to adjust your conda configuration to proceed.
Use `conda config --show channels` to view your configuration's current state,
and use `conda config --show-sources` to view config file locations.

Have a look at the following pages, which show the steps of creating and uploading a package to Anaconda and/or Conda-forge:

https://giswqs.medium.com/building-a-conda-package-and-uploading-it-to-anaconda-cloud-6a3abd1c5c52

https://levelup.gitconnected.com/publishing-your-python-package-on-conda-and-conda-forge-309a405740cf

from tf-keras-vis.

amizeranschi avatar amizeranschi commented on May 22, 2024

I'm glad I could help. Thanks again for working on this and please let me know if I can bring any further assistance.

from tf-keras-vis.

amizeranschi avatar amizeranschi commented on May 22, 2024

Hi, is there any update on this issue?

from tf-keras-vis.

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.