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

connect ECONNREFUSED 127.0.0.1:7908 after updating #218

Open
simonsanchezart opened this issue Mar 6, 2025 · 10 comments
Open

connect ECONNREFUSED 127.0.0.1:7908 after updating #218

simonsanchezart opened this issue Mar 6, 2025 · 10 comments

Comments

@simonsanchezart
Copy link

simonsanchezart commented Mar 6, 2025

Today, after update VS Code and a few extensions, I started getting this error after Blender launches, it then gets frozen and not much happens.
connect ECONNREFUSED 127.0.0.1:7908

This happened after updating VS Code and some extensions. I already tried downgrading VS Code and Python & Python Debugger but it's still hapenning.

ms-python.debugpy Version 2024.14.0 (after downgrading)
ms-python.python Version 2025.0.0 (after downgrading)
VS Code version 1.97.2 (after downgrading)

Log:

 *  Executing task: c:\Program Files\Blender Foundation\Blender 4.3\blender.exe --python c:\Users\Simon\.vscode\extensions\jacqueslucke.blender-development-0.0.25\pythonFiles\launch.py 

Registered MACHIN3tools 1.11.1.DeusEx with 12 tools, 6 pie menus
HardOps 0.9.88.7 available!
Registered MESHmachine 0.17.0 with 2 plug libraries
 • plug library: Examples
 • plug library: MyPlugs
ADDONS_TO_LOAD [{'load_dir': 'c:\\Users\\Simon\\Documents\\Personal-Documents\\freelance\\asb\\asb_blender_toolkit', 'module_name': 'asb_blender_toolkit'}]
INFO: Removing old link: C:\Users\Simon\AppData\Roaming\Blender Foundation\Blender\4.3\extensions\vscode_development\asb_blender_toolkit
 * Serving Flask app 'Blender Server'
 * Debug mode: on
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
 * Running on http://127.0.0.1:9237
Press CTRL+C to quit
Sending: {'type': 'setup', 'blenderPort': 9237, 'debugpyPort': 7908, 'blenderPath': 'c:\\Program Files\\Blender Foundation\\Blender 4.3\\blender.exe', 'scriptsFolder': 'c:\\Program Files\\Blender Foundation\\Blender 4.3\\4.3\\scripts', 'addonPathMappings': [{'src': 'c:\\Users\\Simon\\Documents\\Personal-Documents\\freelance\\asb\\asb_blender_toolkit', 'load': 'C:\\Users\\Simon\\AppData\\Roaming\\Blender Foundation\\Blender\\4.3\\extensions\\vscode_development\\asb_blender_toolkit'}]}
Waiting for debug client.
@Bitsqueezer2025
Copy link

Had the same problem starting today.

I tried disabling my firewall but still didn't work.

I reinstalled the Blender addon and that also didn't work.

Finally, what resolves the problem for me was to deinstall the Python debugger, click "restart Extensions" and installed it again. Now I can start Blender through VSCode again and also the previous error "...is already being debugged - open launch.json" is gone.

@JohanBonnetGVA
Copy link

Same here. Though, creating manually a server on blender and connecting to it works with specified ports.

@KareKyasu
Copy link

I solved it by uninstalling all python extensions and then running Blender: Start.

@Bitsqueezer2025
Copy link

If you have uninstalled all Python extensions then you have also uninstalled the Python debugger extension.. ;)

@PavelSharp
Copy link

Thank you guys. To me, this is an example of how things can suddenly break down due to automatic updates.

@rubenp02
Copy link

rubenp02 commented Mar 6, 2025

With this addon being discontinued, I didn't expect to see an issue created and much less a fix. Thank you so much, @Bitsqueezer2025!

@carlosedubarreto
Copy link

Thanks a lot @KareKyasu and @Bitsqueezer2025
I tryed uninstalling only BlenderDevelopment extension but it didnt work.
I ended up uninstalling others that I thought might be related to pythona dn could affect something.

I noticed that, the extensions that I uninstalled and after that making the installation ov Blende Development Extension, to make it work were these ones

Jupyter, Pylance and Python.
Because all of them were updated yesterday, the day that started having problems.

So maybe just uninstalling those 3 might be enough to make the blender extension to work again.

Bellow are the screenshot of them

Image

Image

Image

@Bitsqueezer2025
Copy link

@carlosedubarreto : No, I meant the Python Debugger component as this is the one which needs a connection to Blender and also made problems before the last update ("...already been debugged..."). Try to only deinstall and install this one again. I didn't reinstall any of the extensions you've listed and it worked after this one.
Moreover: It doesn't help to reinstall Python as Blender has it's own Python interpreter which will not change (only with a new Blender version). And Jupyter has nothing to do with Blender, as far as I know.

@achlin512
Copy link

install pre version python debugger really work!

@werwack
Copy link

werwack commented Mar 9, 2025

@Bitsqueezer2025
Thanks a loooot for the tip! Resintalling just Python Debugger fixed the issue, which appeared tonight on my side. I also had the popup message "already been debugged bla bla" before that during a few days, but I wasn't able to fix it (that didn't prevent the debugger to work though).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants