Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Avoid setting up an explicit python path on shogun

Open
#63 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
48/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
cmake, python, shell
Domain
build-system

Research direction

Start with libraries/shogun_install.sh at the linked CMake configuration around line 31, and compare its Python path settings with an active virtualenv. Remove or revise the explicit PYTHON_INCLUDE_DIR, PYTHON_EXECUTABLE:FILEPATH, and PYTHON_PACKAGES_PATH settings so the active environment can be used, then verify that Shogun installation finds its Python dependencies.

Written by the indexing model from the issue text.

Description

On shogun install file, when the user is using, e.g: virtualenv, this kind of CMAKE configuration will override the users configuration for python environment.

Is it really necessary? In my case, the system-wide python didn't have numpy, but my active virtualenv had and it was not finding it. By removing the definition of PYTHON_INCLUDE_DIR, PYTHON_EXECUTABLE:FILEPATH and PYTHON_PACKAGES_PATH variables it worked as expected.

Dominant language
Python
Stars
107
Forks
46
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from mlpack/benchmarks

All issues in mlpack/benchmarks

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.