Skip to content

Eroneous reporting of "No virtual environment configure" #49

@Bazmundi

Description

@Bazmundi

Per #48 there was fun getting the blinking app up because of quality of destructions. The summary being actual destructions for first timers should be (on linux):

git clone https://github.com/bhowiebkr/PyFlowGraph.git
cd PyFlowGraph
python3 -m venv venvs # lest PyFlowGraph starts and tells you it can't find "venvs" since it wants to stuff a "default" in there
source venv/bin/activate
pip install PySide6
pip install -r requirements.txt
cd src
python3 main.py # first run will create /venvs/default

Now having said that, we get a /venvs/default on first start and subsequent starts get:
[No Environment] Environment Issue: No virtual environment configure

Despite Output Log saying:

Default virtual environment is ready.
BATCH MODE ACTIVATED - Traditional execution mode
Graph state reset
[BATCH] === BATCH MODE SELECTED ===
Click 'Execute Graph' to run entire graph at once
Default graph file not found: 'examples/password_generator_tool.md'. Starting with an empty canvas.

And then when you opt into the Environment - Manage Environment menu, the console dump is:

Traceback (most recent call last):
  File "/home/asterion/dev/PyFlowGraph/src/ui/editor/node_editor_window.py", line 294, in on_manage_env
    dialog = EnvironmentManagerDialog(venv_path, self.file_ops.current_requirements, self)
AttributeError: 'FileOperationsManager' object has no attribute 'current_requirements'

So WTFO?

Not forgetting to mention I guess I should now be setting env with:

source venv/default/bin/activate

At least if I want to add any libraries. Or is that what the errant Environment - Manage Environment menu is supposed to do?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions