FPGAwars / icestudio

:snowflake: Visual editor for open FPGA boards
https://icestudio.io
GNU General Public License v2.0
1.67k stars 242 forks source link

[BUG] Icestudio claims I need to at least Python 3.5, when I have 3.10.12 installed #714

Closed vguttmann closed 4 months ago

vguttmann commented 5 months ago

I'm using Icestudio 0.6.0 on Ubuntu 22.04, and can't install any toolchain because of this.

cavearr commented 5 months ago

Please, install latest wip from https://downloads.icestudio.io and tell me if it works.

vguttmann commented 5 months ago

Unfortunately, I don't get downloads when attempting to download from there - just this: image

vguttmann commented 5 months ago

When downloading from GitHub, the icestudio.log contains the following errors:

=======================================================================================
 Icestudio session Fri Jan 19 2024 22:34:19 GMT+0100 (Central European Standard Time)
 Version: 0.11
=======================================================================================
Node information:
  * Node version: v20.1.0
  * lts: undefined
  * SourceURL: https://nodejs.org/download/release/v20.1.0/node-v20.1.0.tar.gz

NW information: 
  * NW version: 0.76.1
  * NW-flavor: sdk
  * Chromium: 113.0.5672.64

System information:
  * Architecture: x64
  * Platform: linux

Profile file: /home/vguttmann/.icestudio/profile.json

- PROFILE:

{
  "data": {
    "board": "upduino3",
    "boardRules": true,
    "collection": "/tmp/.mount_Yc1cqo/usr/bin/resources/collection",
    "language": "en",
    "uiTheme": "dark",
    "externalCollections": "",
    "externalPlugins": "",
    "remoteHostname": "",
    "showFPGAResources": false,
    "displayVersionInfoWindow": "no",
    "lastVersionReview": "0.6.0",
    "loggingEnabled": false,
    "loggingFile": "",
    "pythonEnv": {
      "python": "",
      "pip": ""
    }
  }
}

- PATHs

common.BASE_DIR: Icestudio base dir: /home/vguttmann
common.ICESTUDIO_DIR: Icestudio folder: /home/vguttmann/.icestudio
common.PROFILE_PATH: Profile path: /home/vguttmann/.icestudio/profile.json
common.INTERNAL_COLLECTIONS_DIR: Internal collections: /home/vguttmann/.icestudio/collections
common.APIO_HOME_DIR: APIO folder: /home/vguttmann/.icestudio/apio
common.ENV_DIR: Python virtual environment: /home/vguttmann/.icestudio/venv
common.ENV_BIN_DIR: Executable files: /home/vguttmann/.icestudio/venv/bin
common.ENV_PIP: PIP executable:  /home/vguttmann/.icestudio/venv/bin/pip3
common.APIO_CMD: Apio command: APIO_HOME_DIR="/home/vguttmann/.icestudio/apio" PATH="/home/vguttmann/.icestudio/venv/bin:/tmp/.mount_1fQc9L/usr/bin:/tmp/.mount_1fQc9L/usr/sbin:/home/vguttmann/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin" "/home/vguttmann/.icestudio/venv/bin/apio"
Common.APP: Icestudio APP folder: /tmp/.mount_1fQc9L/usr/bin
common.APP_DIR: Icestudio execution folder: /tmp/.mount_1fQc9L/usr/bin

===> tools.CHECKTOOLCHAIN
>>>> utils.executeCommand => APIO_HOME_DIR="/home/vguttmann/.icestudio/apio" PATH="/home/vguttmann/.icestudio/venv/bin:/tmp/.mount_1fQc9L/usr/bin:/tmp/.mount_1fQc9L/usr/sbin:/home/vguttmann/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin" "/home/vguttmann/.icestudio/venv/bin/apio" --version

>>(ERROR): /bin/sh: 1: /home/vguttmann/.icestudio/venv/bin/apio: not found

----!!!! ERROR !!!! -----
CMD: APIO_HOME_DIR="/home/vguttmann/.icestudio/apio" PATH="/home/vguttmann/.icestudio/venv/bin:/tmp/.mount_1fQc9L/usr/bin:/tmp/.mount_1fQc9L/usr/sbin:/home/vguttmann/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin" "/home/vguttmann/.icestudio/venv/bin/apio",--version
  Error flag: true
  Error: true
------> MENU ENTRY POINT: Install Toolchain
**** STEP: Check internet connection
**** STEP: Check Python
**** STEP: Create virtualenv
>>>> utils.executeCommand => /usr/bin/python3.10 -m venv "/home/vguttmann/.icestudio/venv"

>>(OUTPUT): The virtual environment was not created successfully because ensurepip is not
available.  On Debian/Ubuntu systems, you need to install the python3-venv
package using the following command.

    apt install python3.10-venv

You may need to use sudo with that command.  After installing the python3-venv
package, recreate your virtual environment.

Failing command: /home/vguttmann/.icestudio/venv/bin/python3.10

----!!!! ERROR !!!! -----
CMD: /usr/bin/python3.10,-m venv,"/home/vguttmann/.icestudio/venv"
**** STEP: Install APIO
>>>> utils.executeCommand => "/home/vguttmann/.icestudio/venv/bin/pip3" install -U apio[blackiceprog,tinyfpgab,tinyprog,icefunprog]==0.8.4

>>(ERROR): /bin/sh: 1: /home/vguttmann/.icestudio/venv/bin/pip3: not found

----!!!! ERROR !!!! -----
CMD: "/home/vguttmann/.icestudio/venv/bin/pip3",install -U apio[blackiceprog,tinyfpgab,tinyprog,icefunprog]==0.8.4
**** STEP: APIO install oss-cad-suite
>>>> utils.executeCommand => APIO_HOME_DIR="/home/vguttmann/.icestudio/apio" PATH="/home/vguttmann/.icestudio/venv/bin:/tmp/.mount_1fQc9L/usr/bin:/tmp/.mount_1fQc9L/usr/sbin:/home/vguttmann/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin" "/home/vguttmann/.icestudio/venv/bin/apio" install oss-cad-suite@0.0.8

>>(ERROR): /bin/sh: 1: /home/vguttmann/.icestudio/venv/bin/apio: not found

----!!!! ERROR !!!! -----
CMD: APIO_HOME_DIR="/home/vguttmann/.icestudio/apio" PATH="/home/vguttmann/.icestudio/venv/bin:/tmp/.mount_1fQc9L/usr/bin:/tmp/.mount_1fQc9L/usr/sbin:/home/vguttmann/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin" "/home/vguttmann/.icestudio/venv/bin/apio",install,oss-cad-suite@0.0.8
**** FINAL STEP: Checking the installed apio
===> tools.CHECKTOOLCHAIN
>>>> utils.executeCommand => APIO_HOME_DIR="/home/vguttmann/.icestudio/apio" PATH="/home/vguttmann/.icestudio/venv/bin:/tmp/.mount_1fQc9L/usr/bin:/tmp/.mount_1fQc9L/usr/sbin:/home/vguttmann/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin" "/home/vguttmann/.icestudio/venv/bin/apio" --version

>>(ERROR): /bin/sh: 1: /home/vguttmann/.icestudio/venv/bin/apio: not found

----!!!! ERROR !!!! -----
CMD: APIO_HOME_DIR="/home/vguttmann/.icestudio/apio" PATH="/home/vguttmann/.icestudio/venv/bin:/tmp/.mount_1fQc9L/usr/bin:/tmp/.mount_1fQc9L/usr/sbin:/home/vguttmann/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin" "/home/vguttmann/.icestudio/venv/bin/apio",--version
  Error flag: true
  Error: true
cavearr commented 5 months ago

Excuse me! i'm telling you when the error will be fixed.

Obijuan commented 5 months ago

Please, make sure you have installed the required dependencies. It looks like you have missed one of them. Execute this command in the shell and try again

sudo apt install python3 python3-pip python3-venv xclip libfuse2

(The installation instructions can be found here)

cavearr commented 5 months ago

Try to download again! should be works

cavearr commented 4 months ago

I'm closing this issue, i can't reproduce the error, probably an error for concrete user setup.

If problem persist after install the last wip (https://downloads.icestudio.io) reopen it.

Thanks!