Меню

Pyscripter could not load a python engine ошибка

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


Closed

JeanPhi007 opened this issue

Jan 25, 2022

· 4 comments

Comments

@JeanPhi007

Hello,

I know this question has been asked before, but solutions discussed seem so complicated that I wonder if there something more simple.
I’ve installed Python 3.10.2 (64bits) without changing the proposed folder (c:usersMyNameAppDataLocalProgramsPythonPython310) and I can start Python via command line
image

My question is: how to tell to PyScripter to look at this folder(..AppData..) as it’s impossible to open it with the Browse folder dialog?

Thanks in advance
Jean-Philippe

@pyscripter

@JeanPhi007

Hello,

Thank you for the answer (I didn’t know this trick) but unfortunately it doesn’t work. I’ve always this message
image

despite the fact that python.exe is in this folder

image

and versions of both PyScripter and Python are both 64bits
image
image

it’s stange because I don’t remember having any problem with previous version of Python, which was installed in a similar directory

@pyscripter

Are you using PyScripter 3.6? Support for Python 10 was provided in version 4. Please download the latest version of PyScritper and try again.

@JeanPhi007

Yessss, it works. And the new look seems great!
Thank’s a lot

2 participants

@pyscripter

@JeanPhi007

flo025

PyScripter could not load a Python engine

I have installed python but there is a error message «PyScripter could not load a Python engine» and when I click «OK» there is no python versions in registered versions AND unregistered versions…

pyscripter

You can add your python versions to PyScripter in that dialog. Just press the + key and select the directory that contains python.exe and pythonxy.dll.

PyScripter doesn’t come with python. You need to have some python distribution installed. Just remember:

The 64-bit version of PyScripter (x64) works only on 64-bit Windows and with 64-bit versions of Python. The 32-bit version of PyScripter works on both 32-bit and 64-bit Windows with the 32-bit versions of Python.

UnderJollyRoger

I downloaded python 3.7 (32bit) and attempted to load it in PyScripter, but got this same message. It’s placed in Unregistered Versions. Python 2.7 (32 bit) works fine.
image

pyscripter

Is this a standard Python distribution for python.org?
Are you on Windows 64bit?
Are you using PyScripter 3.4.2?

UnderJollyRoger

Yes, the 3.7 download was from python.org
Yes, I’m using Windows 10 Pro 64 bit
I can’t figure out what version of PyScripter I’m using?

UnderJollyRoger

It looks like I am using v3.4.1. I will try updating to 3.4.2.

UnderJollyRoger

I’ve updated to 3.4.2 and continue to see this message when attempting to switch versions.
image
image

pyscripter

What happens if you press the test button? Are you sure you have installed the 32-bit version of python 3.7? Enter the python shell and have a look at the top line.

pyscripter

Also check the registry. Does the key ComputerHKEY_CURRENT_USERSoftwarePythonPythonCore3.7-32 exist and does ComputerHKEY_CURRENT_USERSoftwarePythonPythonCore3.7-32InstallPath point at the correct directory?

UnderJollyRoger

I hit the test button for both versions of 3.7 you see in the screen shot and they are 32 bit.
Yes and Yes. The install path folder contents point to where I put them/where I set PyScripter to find them.
image

pyscripter

Strange. PyScripter works fine here with 3.7.0 and 3.71.
I see that is listed in the list of registered versions. Did you try activating what appears as registered version? You probably did and I guess activating that fails as well. (?).
If you open a command prompt, and issue

>Set do you see any python related variables? (PYTHONHOME or something similar)?

UnderJollyRoger

Yes, I tried activating both registered and unregistered. They both give you the same message.

Yes, I did get a whole bunch of variables after typing >Set.
image

pyscripter

This PYTHONHOME= looks very suspicious to me. Normally when an environment variable is empty it does not show. Try to get rid of it.

Windows 10 and Windows 8

  • In Search, search for and then select: System (Control Panel)
  • Click the Advanced system settings link.
  • Click Environment Variables. In the section System Variables, find the PATHHOME environment variable and delete it.

UnderJollyRoger

I don’t see a PATHHOME variable in the Environment Variables menu?

UnderJollyRoger

In PyScripter in 2.7 I ran:
import sys
sys.path
Pyscripter is installed in Program Files (x86) folder. I’m on a x64 bit PC.

UnderJollyRoger

In Tools >> Python Path I noticed there was no path pointing to the 3.7 version. Do I need to add that path here?
image

UnderJollyRoger

I browsed to 3.7-32 in this window and the Added it. Then I closed out of PyScripter, opened it again and went to this same menu, but the path was no longer there?

pyscripter

  • The Python path dialog is for temporary changes to the python path. Not useful here.
  • In Windows 64 bit, 32 bit applications are installed in c:program files (x86). So it is normal that PyScripter 32bit is installed in that folder.

What might be causing the trouble is the PYTHONHOME (not PATHHOME) environment variable. If you look at the image with the output of the SET command it has a line:

PYTHONHOME=
This is indicates that the PYTHONHOME environment variable is defined with a non blank value (could be a space for example) .

What I told you above is to remove this environment variable. You can do so by following the instructions

  • Press the Window button and type «Control Panel»
  • In the Control Panel select «System and Security»
  • In System and Security select System
  • Click on «Advanced System Settings»
  • In the dialog box «System Properties» click the button Environement Variables. Is there PYTHONHOME variable defiined there either in local or system variables?

It has to be since I cannot see any other way it would be listed when you issue the SET command. Delete it and start PyScripter again.

pyscripter

In addition or instead you can check the registry entries:

HKCUEnvironment
HKLMSYSTEMCurrentControlSetControlSession ManagerEnvironment

to see whether PYTHONHOME is defined there.

UnderJollyRoger

Yes, I ran through the environment variables but did not see PYTHONHOME=. And when I run >Set in the command prompt I’m no longer seeing PYTHONHOME=.
image
And nowhere in the registry did I see PYTHONHOME.

pyscripter

I am sorry. I am running out of ideas.

Glenn Decker

unread,

Dec 11, 2019, 6:36:40 PM12/11/19

to PyScripter

Hey all,

I’m having some difficulty getting PyScripter up and running — particularly, it’s not finding the Python Engine I downloaded and I can’t manually find it.  I’ve attached a document laying out what I’ve done and the errors i’m receiving.

Here are the steps I’ve taken (attached images of the errors), and what I’ve tried in trouble shooting so far:

  1. Download latest Python release, “Windows
    x86-64 embeddable zip file”, from https://www.python.org/downloads/windows/
  2. Download latest Pyscripter release,
    “PyScripter-3.6.2-x64.zip”, from https://sourceforge.net/projects/pyscripter/files/PyScripter-v3.6/
  3. After both are installed, I load
    up the Pyscripter
  4. I then receive this error on start
    up: “PyScripter could not load a Python engine.. **Before* using PyScripter,
    you must ensure that a version of Python greater or equal…”
  5. I then try to ‘manually’ find it
    with the “Python Versions” “+” option
  6. At first, I can’t find the folder
    location for Python in this version (the “App Data” folder is hidden in this
    search)
  7. I created a copy of that folder in
    someplace I can actually find it in that search
  8. I select it and press OK, and
    receive this error: “PyScripter could not find a usable Python installation at
    the specified path.  Note…”

Here are some other troubleshooting I’ve tried:

  • Uninstalled and reinstalled both
  • Confirmed I have a 64-bit version of both, that aligns with my 64 bit Windows 10
  • Tried different versions of Python (e.g. 3.9, 3.5, etc)
  • Searched message boards and FAQs for a solution

Any help/guidance is greatly appreciated!

Could not load engine….png

Manually finding Python on my computer.png

Could not find usable python.png

Jadranko Belusic

unread,

Dec 11, 2019, 7:17:25 PM12/11/19

to pyscr…@googlegroups.com

I have python 3.8 and pyscripter last version, both are 32 bit. Try 32 bit maybe?

# Poslano sa smartfona #

PyScripter

unread,

Dec 11, 2019, 7:29:59 PM12/11/19

to PyScripter

Glen 

As you mentioned in the email sent to me, you are using the “Windows x86-64 embeddable zip file” Python distribution.  This Python distribution is for specific scenarios (embedding Python into an application) — see for instance https://stackoverflow.com/questions/37633550/python-embeddable-zip- and it is not (could not) be supported by PyScripter.   To use PyScripter you need to install Python in the standard way using an installer.

PyScripter

unread,

Dec 11, 2019, 8:23:53 PM12/11/19

to PyScripter

Actually PyScripter does work with the “Windows
x86-64 embeddable zip file”!!  Just tried it with Python 3.6.

You will need to unzip the Python embeddable zip file to a directory of your choice.

— In the Python Versions dialog you will need to add an Unregistered Python version (press the plus icon) and specify the directory in which you unzipped the Python embeddable zip file.

— Finally you activate the created unregistered distribution.

Note that embeddable distributions do not include pip, so you will not be able to install packages using pip via the Tools menu item.

On Wednesday, December 11, 2019 at 5:36:40 PM UTC+2, Glenn Decker wrote:

Recommend Projects

  • React photo

    React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo

    Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo

    Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo

    TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo

    Django

    The Web framework for perfectionists with deadlines.

  • Laravel photo

    Laravel

    A PHP framework for web artisans

  • D3 photo

    D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Visualization

    Some thing interesting about visualization, use data art

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo

    Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo

    Microsoft

    Open source projects and samples from Microsoft.

  • Google photo

    Google

    Google ❤️ Open Source for everyone.

  • Alibaba photo

    Alibaba

    Alibaba Open Source for everyone

  • D3 photo

    D3

    Data-Driven Documents codes.

  • Tencent photo

    Tencent

    China tencent open source team.

Afetr a long time with no post related to Python, I am back. Now it is turn to go back with the PyScripter IDE and Anaconda3, a Python’s distribution.

A few weeks ago, I come back to work with this IDE that I really like a lot because, for some time, I moved to PyScharm. One issue I suffer since quite a lot, when I work with Anaconda 3 was the error that PyScripter could not load a Python engine.

Trying to solve this issue, I search for some advices, but it was in Pyscripter FAQ the place where I got an idea about how to solve it.

Creating a .bat file

As you can read in the FAQ, the best way of solving the situation is by creating a small script as a batch file. In my case, I created the following script on the same path where I have installed PyScripter, and of course, knowing that Python is installed on c:Anaconda3 directory:

The dir where I have PyScripter looks like this:

Once I have executed the .bat file, there is no error message anymore, and I have now Python 3.7 available on PyScripter:

If you access to all available versions, now I have registered a version of Anaconda as Conda 3.7:

thanks to this little script, there is no more action to take, and there is no need to re-execute the .bat file anymore, because Python is already registered.

Fortunately, PyScripter has evolved from the first version of this blog, the 2.6, back in 2013, and now you have several issues available, and most importantly, be able to work with the latest versions of Python because with Python 2, has always worked wonders.

Everything is ready to program!!

0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии

А вот еще интересные материалы:

  • Яшка сломя голову остановился исправьте ошибки
  • Ясность цели позволяет целеустремленно добиваться намеченного исправьте ошибки
  • Ясность цели позволяет целеустремленно добиваться намеченного где ошибка
  • Pyinstaller ошибка после компиляции
  • Pygame error font not initialized ошибка