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

Invoke Path Issues #8827

Open
SchrodingersGat opened this issue Jan 5, 2025 · 1 comment
Open

Invoke Path Issues #8827

SchrodingersGat opened this issue Jan 5, 2025 · 1 comment
Labels
bug Identifies a bug which needs to be addressed dependency Relates to a project dependency docker Docker / docker-compose setup Relates to the InvenTree setup / installation process
Milestone

Comments

@SchrodingersGat
Copy link
Member

SchrodingersGat commented Jan 5, 2025

Overview

A "bug" has been introduced since the merging of #8747 - the invoke commands no longer work as expected.

Description

When calling invoke (used for most system commands), the loaded virtual environment is not used as expected.

This occurs when invoke is installed as a system-level package which is available on PATH with higher priority than the version installed in the python virtual environment.

The outcome is that calling invoke <command> does not use the packages installed in the InvenTree virtual environment.

Example - System Invoke

invoke version - invoke installed at /usr/bin/invoke

Warning: Dulwich module not found, git information will not be available.

InvenTree - inventree.org
The Open-Source Inventory Management System


Python paths:
Executable  /usr/bin/python3
Environment /usr

Installation paths:
Base        /home/inventree
Config      /home/inventree/dev/config.yaml
Media       /home/inventree/dev/media
Static      /home/inventree/dev/static

Versions:
Python      3.11.8
Django      4.2.16
InvenTree   0.18.0 dev
API         297
Node        v18.20.1
Yarn        1.22.19

Commit hash: None
Commit date: None

Example - venv invoke

python -m invoke version - called from InvenTree venv

InvenTree - inventree.org
The Open-Source Inventory Management System


Python paths:
Executable  /home/inventree/dev/venv/bin/python
Environment /home/inventree/dev/venv

Installation paths:
Base        /home/inventree
Config      /home/inventree/dev/config.yaml
Media       /home/inventree/dev/media
Static      /home/inventree/dev/static

Versions:
Python      3.11.8
Django      4.2.17
InvenTree   0.18.0 dev
API         297
Node        v18.20.1
Yarn        1.22.19

Commit hash: ea9e3fb
Commit date: 2025-01-05

Originally posted by @SchrodingersGat in #8747 (comment)

@SchrodingersGat SchrodingersGat added bug Identifies a bug which needs to be addressed docker Docker / docker-compose setup Relates to the InvenTree setup / installation process labels Jan 5, 2025
@SchrodingersGat SchrodingersGat added this to the 0.17.2 milestone Jan 5, 2025
@SchrodingersGat SchrodingersGat modified the milestones: 0.17.2, 1.0.0 Jan 5, 2025
@SchrodingersGat SchrodingersGat added the dependency Relates to a project dependency label Jan 5, 2025
@SchrodingersGat
Copy link
Member Author

This may well cause issues with the installer setup too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Identifies a bug which needs to be addressed dependency Relates to a project dependency docker Docker / docker-compose setup Relates to the InvenTree setup / installation process
Projects
None yet
Development

No branches or pull requests

1 participant