Skip to content
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

Error during install dependencies: huak install #896

Closed
abhi3700 opened this issue Mar 1, 2024 · 4 comments
Closed

Error during install dependencies: huak install #896

abhi3700 opened this issue Mar 1, 2024 · 4 comments

Comments

@abhi3700
Copy link

abhi3700 commented Mar 1, 2024

I am facing an issue during huak install command.

Here is my pyproject.toml file:

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "semantic-hashing-demo"
version = "0.0.1"
description = ""
dependencies = [
    "marvin ==2.1.5",
    "numpy ==1.26.4",
    "openai ==1.12.0",
    "polars ==0.20.10",
    "pyarrow ==15.0.0",
]

[project.optional-dependencies]
dev = [
    "build ==1.0.3",
    "mypy ==1.8.0",
    "ruff ==0.2.1",
]

[tool.huak.task]
preprocess = "python3 src/semantic_hashing_demo/preprocessing.py"
detect = "python3 src/semantic_hashing_demo/detection.py"
generate = "python3 src/semantic_hashing_demo/generate_data.py"
post_generate = "python3 src/semantic_hashing_demo/process_generated_data.py"

Ideally it is supposed to install all the project dependencies in .venv. But, it's not happening, instead asking to do this:

 huak install                                                   
error: the following required arguments were not provided:
  <PACKAGE>

Usage: huak install <PACKAGE>

For more information, try '--help'.

Currently, I am managing via following this:

huak build
huak activate
pip install -r requirements.txt

All these to install the desired packages inside .venv/lib/python3.x/site-packages folder.

I got requirements.txt by manually copying the dependencies from pyproject.toml & cleaning it as per needed. I can create a script to parse this using toml python package.

Any fix for huak install?

@cnpryer
Copy link
Owner

cnpryer commented Mar 1, 2024

Hi! Thanks for this! Are you building Huak from source?

@abhi3700
Copy link
Author

abhi3700 commented Mar 4, 2024

I have used pip install git+https://github.com/cnpryer/huak@master#egg=huak to install in my system.

@cnpryer
Copy link
Owner

cnpryer commented Mar 6, 2024

I see! That functionality is behind huak init now. See #867.

When I originally built this I was blending my experience with poetry together with my experience with cargo. I made the wrong decision at that time. I felt that I'd be able to move cargo install behind huak toolchain install eventually, but I've decided against that. So I've repurposed huak install here #872.

Note that a lot of this is still very raw (see disclaimer in README). This project isn't in a production-ready state.

Thanks for using it though!

@cnpryer
Copy link
Owner

cnpryer commented Mar 6, 2024

This should be updated to include more detail about huak init's new functionality. I apologize.

/// Initialize the current project.

@abhi3700 abhi3700 closed this as completed Apr 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants