JacquesLucke / blender_vscode

Visual Studio Code extension for Blender development.
MIT License
540 stars 70 forks source link

Extension not working with blender 2.79 #144

Open SalmaG98 opened 1 year ago

SalmaG98 commented 1 year ago

Hello,

Thank you for your work :)

Is there anyone who was succesfull in running this extension with a blender < 2.8 ? I have a constraint on the headless server I use for blender (OpenGL 2.1), I cannot ask for a higher opengl install, but I still would like to use this extenstion.

I have tried a bunch of things:

  1. Installing blender 2.79 version: solved the OpenGL 3.3 error requirement but f strings in https://github.com/JacquesLucke/blender_vscode/blob/master/pythonFiles/launch.py cause SyntaxError because this blender version uses python 3.5
  2. Installing the latest 2.7 build for blender working with python 3.7m: solved the f string problem, but the install of flask package causes a version issue.
  3. Manually replacing blender 2.79 latest build's python with a symlink to another python interpreter from a conda environment I created (python 3.7.0) with flask, debugpy and requests installed: solved package problems but now https://github.com/JacquesLucke/blender_vscode/blob/d83fcdd67f36d8bbe3303d65001a8aa595c998a7/pythonFiles/include/blender_vscode/utils.py#L27 causes the exception AttributeError: 'bpy.app' object has no attribute 'timers'

It seems it is not possible to use a blender version older than 2.8, is there maybe an older version of this extension I can use in order to use blender 2.79?