Author Topic: PYTHONPATH not being set on Windows 11 Pro  (Read 864 times)

bogdank

  • New Community Member
  • Posts: 2
  • Hero Points: 0
PYTHONPATH not being set on Windows 11 Pro
« on: November 08, 2022, 09:49:29 PM »
I'm using Slick Edit Pro 2022 (v27.0.0.6) (see below) and Windows 11 Pro (10.0.22621 Build 22621). After "successful" installation I was not able to start debugger. It would just show a pop-up screen "Error starting debugger: GDB has terminated prematurely."

I used just a simple C++ example code in a project with Cygwin64 (3.3.6-341.x86_64). I configured integrated debugger provided with SlickEdit.

So, after a lot of trial and error, internet searches, I figured that PYTHONPATH environment variable was not set (as well as PYTHONHOME which did not matter it seems?).

I had to define those myself. In my case, I set them both to:
  • C:\Program Files\SlickEdit Pro 27.0.0\toolconfig\python\python3.10

After that debugger started to work properly.

[MODIFIED: I had to remove the PYTHONHOME variable since it was interfering with the Jupyter Lab which I installed on Windows. It was also interfering with pip (Windows version). The PYTHONPATH was the only one I ended up with after further debug and it works well for now.]

Not sure why these variables have not been set by the installer or why they have not been set when starting the debugger.

There may be a better way to accomplish this so I would not have to set them up within Windows, but inside SlickEdit.

Regards,
Bogdan

Code: [Select]
SlickEdit Pro 2022 (v27.0.0.6 64-bit Qt5)

Serial number: <masked>
Licensed number of users: Single user
License file: C:\ProgramData\slickedit\27\slickedit.lic

Build Date: October 18, 2022
Emulation: Epsilon

OS: Windows 10 x64
OS Version: 10.00.0 
Memory: 35% Load, 11626MB/32452MB Physical, 14200MB/37316MB Page File, 4628MB/134217727MB Virtual
Shell Information: C:\WINDOWS\system32\cmd.exe /q
Screen Size: 3440 x 1440 (0 0 3440 1440)

Project Type: Gnuc
Language: .cpp (C/C++)
Encoding: ACP (1252)

Installation Directory: C:\Program Files\SlickEdit Pro 27.0.0\ (non-removable drive,NTFS,348507MB free)
Configuration Directory: C:\Users\bkosa\Documents\My SlickEdit Config\27.0.0\ (non-removable drive,NTFS,348507MB free)
Imported options from: 24.0.0.8
« Last Edit: November 08, 2022, 11:55:04 PM by bogdank »

Dennis

  • Senior Community Member
  • Posts: 3961
  • Hero Points: 517
Re: PYTHONPATH not being set on Windows 11 Pro
« Reply #1 on: November 09, 2022, 02:48:30 PM »
I have this on my list of things to address for the next minor release of SlickEdit.

You can set environment variables in your workspace.  Project > Workspace Properties...  That's better than setting it globally on your machine.

bogdank

  • New Community Member
  • Posts: 2
  • Hero Points: 0
Re: PYTHONPATH not being set on Windows 11 Pro
« Reply #2 on: November 09, 2022, 04:09:43 PM »
Thanx Dennis!

Dennis

  • Senior Community Member
  • Posts: 3961
  • Hero Points: 517
Re: PYTHONPATH not being set on Windows 11 Pro
« Reply #3 on: December 06, 2022, 10:59:10 PM »
This issue will be fixed in 27.0.1.  Thanks for reporting this.