Project Settings
A Python interpreter is marked as unsupported in the list of available interpreters in .
The Python version of the marked interpreter is outdated and it is not supported in PyCharm
You can delete the unsupported interpreter from the list of the available interpreters. For more information about the supported Python versions, see Python Support.
Code Editing
PyCharm Editor restricts code editing.
You have installed the IdeaVim plugin and thus enabled the vim editing mode.
Deselect Vim Emulator on the menu. See Using Vim Editor Emulation in PyCharm for more details.
Python code is not highlighted in the Editor.
The PY files are associated with the text file format.
In the Settings dialog (Ctrl+Alt+S), navigate to , select Text from the Recognized File Type list, select *.py from the File Name Patterns list, and click .
Code Completion
Code completion action is not available.
Power Save Mode is enabled.
From the main menu, choose File and clear the Power Save Mode checkbox.
Your file doesn’t reside in a content root , so it doesn’t get the required class definitions and resources needed for code completion.
Restructure your sources files.
A file containing classes and functions that you want to appear in the completion suggestions list is a plain text file.
Reconsider and modify (if needed) the format of your source files.
Debugging
Cannot debug a Docker run/debug configuration; the Debug action is not available.
PyCharm provides debugging for Python run/debug configurations.
Configure a Docker-based interpreter and debug your Python script in a Docker container.
Python Debugger hangs when debugging Gevent code.
Gevent compatibility mode is not enabled.
In the Settings dialog (Ctrl+Alt+S), navigate to and select the Gevent compatible checkbox.
Some import errors are reported in your PyQt code.
PyQt is installed on the interpreter but is not imported in the application code.
In the Settings dialog (Ctrl+Alt+S), navigate to , and clear the PyQt compatible checkbox in the . This mode is enabled by default.
Debugging process is slow.
Debugger stops not only when the process terminates with an exception but on each exception thrown (even though it was caught and didn’t lead to the process termination).
Clear the On raise checkbox in the Breakpoints dialog ().
The following error message appears on your first attempt to attach to a local process: ptrace: Operation not permitted
.
It a known issue for Ubuntu.
Ensure that the kernel.yama.ptrace_scope
kernel parameter is set to 0. You can temporary change its value with the command sudo sysctl kernel.yama.ptrace_scope=0
or set it permanently by adding the kernel.yama.ptrace_scope = 0
line to the /etc/sysctl.d/10-ptrace.conf file.
Cython Speedups
The following error message is shown:
Python.h: no such file or directory
.
You lack header files and static libraries for Python.
Use your package manager to install the python-dev
package system-wide.
On Linux and macOS, you can run the following command:
sudo apt-get install python-dev
To install the package for specific Python version, use python-dev<version>
. For example:
sudo apt-get install python3.11-dev
The following error message is shown:
Command 'gcc' failed with exit status 1
.
You lack a C compiler.
Install a C compiler in order to build Cython extensions for the debugger. For more information, refer to the Cython documentation.
You have already clicked the Install link in the Cython speedup extensions notification but PyCharm repeatedly prompts to install it.
You do not have permissions to write in the directories used by PyCharm.
Check and modify your permissions.
Packaging
Package installation fails.
pip is not available for a particular Python interpreter, or any of the installation requirements is not met.
-
If pip is not available, install it for the required Python interpreter (see the corresponding troubleshooting tip)
-
Consult product documentation for a specific package to ensure that it can be installed in your operating system and for the target Python interpreter. Also, check if any additional system requirements should be met.
Docker
Unable to connect to Docker
Docker is not running, or your Docker connection settings are incorrect.
In the Settings dialog (Ctrl+Alt+S), select , and select Docker for <your operating system> under Connect to Docker daemon with. For example, if you’re on macOS, select Docker for Mac. See more detail in Docker settings.
If you are using Docker Toolbox, make sure that Docker Machine is running and its executable is specified correctly in the Settings dialog Ctrl+Alt+S under Build, Execution, Deployment | Docker | Tools.
Docker-composer does not work on Ubuntu using unix socket settings.
Docker-composer reports the following error:
docker.errors.TLSParameterError:
Path to a certificate and key
files must be provided through
the client_config param.
TLS configurations should map the
Docker CLI client configurations.
-
Open the project Settings (Ctrl+Alt+S).
-
Go to .
-
Select TCP socket.
-
Enter
unix:///var/run/docker.sock
in the Engine API URL field.
When you try to pull an image, the following message is displayed:
Failed to parse dockerCfgFile:
<your_home_dir>/.docker/config.json, caused by: ... {"credsStore":"wincred"}
Invalid Auth config file when using credsStore
: http://github.com/docker-java/docker-java/issues/806
Go to <your_home_dir>/.docker directory and delete the config.json file.
Unable to use Docker Compose
Docker Compose executable is specified incorrectly.
Specify Docker Compose executable in the Settings dialog Ctrl+Alt+S under Build, Execution, Deployment | Docker | Tools
Unable to use port bindings
Container ports are not exposed.
Use the EXPOSE command in your Dockerfile
High CPU usage while connecting to Docker via services.
When Hyper-V is selected as the backend for the Docker service on Windows, Hyper-V virtual disk files (.vhdx) are constantly scanned by the anti-virus software. This behavior leads to excessive consumption of CPU, even no container is running.
Exclude Hyper-V virtual disk files from the anti-virus scan.
File Watchers You might notice the following messages in the window.
Unknown Scope error
The File Watcher uses a scope that is not defined in this project.
Double-click the watcher and select an available scope or create a new one.
Not found error
The project uses a global File Watcher that was removed.
Delete the watcher from the list using the Remove button or edit it to create a new global watcher with the same name.
Deployment
Error message when using SSH configurations:
Connection to <server> failed: SSH: invalid privatekey: [<key>. SSH: invalid privatekey: <key>
The RFC 4716 format for OpenSSH keys is not supported by PyCharm.
-
Add the private keys to
ssh-agent
using thessh-add
command (see more details at ssh.com) -
Repeat the configuration step in the Add Python interpreter dialog.
-
Add the private keys to
ssh-agent
using thessh-add
command (see more details at ssh.com) -
In the Settings dialog (Ctrl+Alt+S), select , then select your SFTP deployment configuration.
Choose OpenSSH Config and authentication agent in the Authentication list.
The Profile command is not available in the Run menu.
-
This functionality is available only in the Professional edition of PyCharm.
-
The Diagrams plugin that is bundled with PyCharm Professional has been disabled.
Check the edition of PyCharm and enable the Diagrams plugin in the plugin settings.
Intro
I have a Python project on a git repository. Everything works ok for most of the team members, we can sync the code and edit it without any problem with Pycharm on different platforms (Windows, Linux)
The problem
On one of the computers we are getting «Unresolved reference» all over the code on almost every import with the exception of Python’s built in libraries (i.e. import datetime is working). This computer is running the Mac version of Pycharm.
The question
Anyone knows how to solve this?, since most of the imports are not recognized code completion and navigation trough goto->declaration and so on is not working. Is there any known issue with the Mac version?
user
4,8906 gold badges17 silver badges35 bronze badges
asked Dec 9, 2013 at 20:07
Sergio AyestaránSergio Ayestarán
5,4204 gold badges37 silver badges61 bronze badges
The key is to mark your source directory as a source root. Try the following:
- In the Project view, right-click on the Python source directory
- In the dialog menu select Mark Directory As > Source Root
The folder should now appear blue instead of beige, to indicate it is a Python source folder.
You can also configure this in PyCharm preferences by doing the following for a project that is already in PyCharm:
- In the Mac toolbar, select PyCharm > Preferences
- In the window that opens, select Project Structure from the menu pane on the left
- Select your project in the middle pane, if necessary
- Right-click on your Python source in the right pane and select Sources from the menu dialog
answered Dec 9, 2013 at 20:10
6
I also had the problem, and it took me few hours to find the exact solution.
You need to confirm the following things.
-
'django.contrib.staticfiles'
, is added toINSTALLED_APPS
in thesettings.py
file of your application. -
The directory with the static contents (for example, images), named
static
, resides under the application root.
Now Do the following
PyCharm > Preferences > Project Settings > Django
Make sure your Django Project root
, Settings.py
and manage.py
script are well defined in the dialog box.
You are good to go.
Hope this helps.
answered Aug 12, 2014 at 9:43
A.J.A.J.
8,22810 gold badges61 silver badges88 bronze badges
3
I did all the stuff above from einnocent and myildirim but still had to do the following:
close pycharm and manually delete the .idea folder, this deletes everything pycharm knows about the code.
open pycharm, reimport the project
the combination of setting the correct source root, restarting python with invaliding cache and deleting the .idea folder / reimporting the pycharm project fixed it for me.
answered Mar 30, 2016 at 13:19
SimonSimon
1014 bronze badges
3
I faced similar issue with pyspark ( spark 2.1 ) & luigi.
Failed tries:
- Setting PYTHONPATH environment variable
- Invalidate cache & restart pycharm
- Mark directory as Source Root
Unresolved reference pyspark
could be fixed by adding the spark’s python directory as Content Root in the project, but running the project as luigi task gave the same error.
Successfull steps
- Create an empty
__init__.py
file in the project -
Include following lines of code at the top of script
... import sys sys.path.append("/path/to/spark/python") sys.path.append("/path/to/spark/python/lib") ... // import pyspark files after above mentioned lines
and the Unresolved reference error issue was fixed both in pycharm & luigi task.
answered Jun 11, 2017 at 12:42
Abdul MannanAbdul Mannan
1,05212 silver badges18 bronze badges
My ten-penneth — If you’re working with virtual environments (have a venv
directory) make sure it is marked as excluded.
Plagiarised from above:
- In the Project view, right-click on the
venv
directory - In the dialog menu select Mark Directory As > Excluded
The directory should turn orange…
This sometimes happens if you’ve done a git clean
or for whatever reason had to rebuild your environment and PyCharm hasn’t noticed
answered Jul 16, 2019 at 12:09
EdwardEdward
1,7685 gold badges24 silver badges35 bronze badges
PyCharm > select «File» menu > select «Invalidate Caches / Restart» menu option
answered Dec 4, 2020 at 10:56
MacGyverMacGyver
18k38 gold badges158 silver badges242 bronze badges
The other reason may be project interpreter. For example, if you are using Python3.x, but the interpreter is for Python2.x You can check here:
File | Settings | Project: ‘projectname’ | Project Interpreter
answered Feb 10, 2017 at 22:28
torinatorina
3,6252 gold badges24 silver badges31 bronze badges
PyCharm — Alt-F(ile); Settings; Project Structure; click +Add content root;
point your folder containing the package in contention: /home/joker/anaconda3/envs/conda_py27/lib/python2.7/site-packages.
I additionally marked as resources (not sure if this is mandatory). Click ok and the reindexing happens.
This solved the problem for me in PyCharm Professional 2016.2.3
answered Jun 1, 2017 at 6:32
emeralddoveemeralddove
5201 gold badge5 silver badges11 bronze badges
1
Had this problem with OpenCV and none of these answers worked.
The only solution that did was adding the OpenCV folder path to the interpreter.
This solution explains all the steps: This Solution
Eric Aya
69.1k35 gold badges179 silver badges250 bronze badges
answered Feb 6 at 6:59
New contributor
Glorious Chaos is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Введение
У меня есть проект Python в репозитории git. Все работает нормально для большинства членов команды, мы можем синхронизировать код и редактировать его без каких-либо проблем с Pycharm на разных платформах (Windows, Linux)
Проблема
На одном из компьютеров мы получаем «Unresolved reference» по всему коду почти для каждого импорта, за исключением встроенных в Python библиотек (т.е. импортирует datetime). На этом компьютере установлена версия Pycharm Mac.
Вопрос
Кто-нибудь знает, как это решить?, так как большая часть импорта не распознается завершением кода и навигацией через goto- > declare и т.д., не работает. Есть ли известная проблема с версией Mac?
Спасибо заранее!
Ответ 1
Ключ должен указывать исходный каталог в качестве корня источника. Попробуйте следующее:
- В представлении «Проект» щелкните правой кнопкой мыши исходный каталог Python
- В меню диалога выберите Отметить каталог как > Корень источника
Теперь папка должна быть синей, а не бежевой, чтобы указать, что это исходная папка Python.
Вы также можете настроить это в настройках PyCharm, выполнив следующее для проекта, который уже находится в PyCharm:
- На панели инструментов Mac выберите PyCharm > Настройки
- В открывшемся окне выберите Структура проекта в панели меню слева.
- Выберите проект в средней панели, если необходимо
- Щелкните правой кнопкой мыши на источнике Python в правой панели и выберите Источники в диалоговом окне меню
Ответ 2
У меня также была проблема, и мне потребовалось несколько часов, чтобы найти точное решение.
Вам нужно подтвердить следующее.
-
'django.contrib.staticfiles'
, добавляется вINSTALLED_APPS
в файлеsettings.py
вашего приложения. -
Каталог со статическим содержимым (например, изображениями) с именем
static
находится под корнем приложения.
Теперь выполните следующие действия
PyCharm > Настройки > Настройки проектa > Django
Убедитесь, что ваши Django Project root
, settings.py
и manage.py
script четко определены в диалоговом окне.
Вы хорошо пойдете.
Надеюсь это поможет.
Ответ 3
Я сделал все вышеперечисленное из einnocent и myildirim, но все равно должен был сделать следующее:
закрыть pycharm и вручную удалить папку .idea, это удалит все, что pycharm знает о коде.
открыть pycharm, reimport проект
комбинация установки правильного корня источника, перезапуск python с invalide cache и удаление папки .idea/реимпорт проекта pycharm исправили его для меня.
Ответ 4
Я столкнулся с аналогичной проблемой с pyspark (искра 2.1) и luigi.
Сбой попытки:
- Настройка переменной среды PYTHONPATH
- Недействительный кеш и перезапуск pycharm
- Отметьте каталог как Корень источника
Неразрешенная ссылка pyspark
может быть исправлена путем добавления каталога искрового питона в Content Root в проекте, но запуск проекта в качестве задачи luigi дал та же ошибка.
Успешные шаги
- Создайте пустой
__init__.py
файл в проекте -
Включите следующие строки кода вверху script
... import sys sys.path.append("/path/to/spark/python") sys.path.append("/path/to/spark/python/lib") ... // import pyspark files after above mentioned lines
и нерешенной проблемой ссылка ошибка была исправлена как в PyCharm и задачи LuiGi.
Ответ 5
Другой причиной может быть проектный интерпретатор. Например, если вы используете Python3.x, но интерпретатор предназначен для Python2.x. Вы можете проверить здесь:
Файл | Настройки | Проект: ‘projectname’ | Переводчик проекта
Ответ 6
PyCharm — Alt-F (ile); Настройки; Структура проекта; нажмите + добавить корневой контент;
укажите свою папку, содержащую пакет, в конфликте:/home/joker/anaconda3/envs/conda_py27/lib/python2.7/site-packages.
Я дополнительно отмечен как ресурсы (не уверен, что это обязательно). Нажмите «ОК», и произойдет переиндексация.
Эта решила проблему для меня в PyCharm Professional 2016.2.3
Ответ 7
Моя десятка — Если вы работаете с виртуальными средами (у вас есть каталог venv
), убедитесь, что он помечен как исключенный.
Плагиат сверху:
- В представлении «Проект» щелкните правой кнопкой
venv
каталогvenv
- В диалоговом меню выберите Пометить каталог как > исключенный
Каталог должен стать оранжевым…
Это иногда случается, если вы сделали git clean
или по какой-то причине вам пришлось перестраивать вашу среду, а PyCharm не заметил
Improve Article
Save Article
Improve Article
Save Article
Before fixing the unresolved reference issues, we must know why these issues occur in the first place.
An unresolved reference issue is raised in PyCharm IDE when:
- A variable is called/used outside the scope of its existence.
- A package is used within the code without prior installation or installed with an improper version.
- A function/class used within the code without importing it in the code or has an improper import path.
PyCharm highlights these areas where the code has the issue. Hover the mouse cursor over the highlighted area and PyCharm will display an Unresolved reference.
Let’s see some of the example scenarios of how the Unresolved reference issue occurs.
Issue 1: Using variables out of scope.
Unresolved reference: Variable out of scope
Fix: Declare the variable globally or use it only within the scope.
Fixed: Variable out-of-scope reference issue
Issue 2: Importing a package that has not been installed or does not have the required version containing that function/class.
Unresolved reference: package not installed
Fix: Install the package manually via the command line or click Install package <package-name> in the suggestion box. PyCharm will fetch and install the globally available packages in the current environment.
pip install flask
Fixed: Package installed to resolve the reference
Issue 3: Using a function that has not been imported properly in the current Python file.
File: other.py with hello() function
Unresolved reference: path to function is incorrect
Fix: Correct the line of import with the actual path to the hello() function.
Fixed: Unresolved function import
Disabling the warning altogether
You can also disable the Unresolved references warning completely by following these steps:
- Click on the File option in PyCharm’s menu bar.
File option
- Click on Settings.
Settings
- In the right pane of Settings go to Editor > Inspections.
Python drop-down
- Look for the Unresolved references option in the dropdown list and deselect the checkbox.
Deselect Unresolved references
- Click Apply button and PyCharm will disable showing the Unresolved references warning altogether.
Apply the changes
This is a part of PyCharm’s code Inspection feature, using which programmers can foresee the areas of code which may cause an issue during execution. PyCharm also suggests a quick resolution to most of these issues. This improves the agility of coding along with fewer errors.
Tip: Place the caret where the issue is and press the Alt+Enter shortcut to see the suggested fixes by PyCharm.
You should upgrade or use an alternative browser.
-
Forums
-
Other Sciences
-
Programming and Computer Science
Error occurred in pycharm python IDE
- Python
-
Thread starter
shivajikobardan -
Start date
Nov 25, 2021
- Nov 25, 2021
- #1
- TL;DR Summary
- error in pycharm
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ffd51d4257f, pid=9852, tid=11684
#
# JRE version: OpenJDK Runtime Environment JBR-11.0.12.7-1504.40-jcef (11.0.12+7) (build 11.0.12+7-b1504.40)
# Java VM: OpenJDK 64-Bit Server VM JBR-11.0.12.7-1504.40-jcef (11.0.12+7-b1504.40, mixed mode, tiered, compressed oops, g1 gc, windows-amd64)
# Problematic frame:
# V [jvm.dll+0x50257f]
#
# No core dump will be written. Minidumps are not enabled by default on client versions of Windows
#
# If you would like to submit a bug report, please visit:
# https://bugreport.java.com/bugreport/crash.jsp
#
————— S U M M A R Y ————
Command Line: exit -Xmx1011m -Xms128m -XX:ReservedCodeCacheSize=512m -XX:+UseG1GC -XX:SoftRefLRUPolicyMSPerMB=50 -XX:CICompilerCount=2 -XX:+HeapDumpOnOutOfMemoryError -XX:-OmitStackTraceInFastThrow -ea -Dsun.io.useCanonCaches=false -Djdk.http.auth.tunneling.disabledSchemes=»» -Djdk.attach.allowAttachSelf=true -Djdk.module.illegalAccess.silent=true -Dkotlinx.coroutines.debug=off -Djb.vmOptionsFile=C:UsersfooAppDataRoamingJetBrainsPyCharmCE2021.2pycharm64.exe.vmoptions -Djava.system.class.loader=com.intellij.util.lang.PathClassLoader -Didea.vendor.name=JetBrains -Didea.paths.selector=PyCharmCE2021.2 -Didea.platform.prefix=PyCharmCore -Dsplash=true -Dide.native.launcher=true -XX:ErrorFile=C:Usersfoojava_error_in_pycharm64_%p.log -XXeapDumpPath=C:Usersfoojava_error_in_pycharm64.hprof
Host: Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz, 4 cores, 7G, Windows 10 , 64 bit Build 19041 (10.0.19041.1348)
Time: Fri Nov 26 09:08:41 2021 Nepal Standard Time elapsed time: 2274.700665 seconds (0d 0h 37m 54s)
————— T H R E A D —————
Current thread (0x000000002b548800): JavaThread «C2 CompilerThread0» daemon [_thread_in_native, id=11684, stack(0x000000002c980000,0x000000002ca80000)]
Current CompileTask:
C2:2274700 31209 4 com.intellij.openapi.util.io.FileUtilRt::toCanonicalPath (450 bytes)
Stack: [0x000000002c980000,0x000000002ca80000], sp=0x000000002ca7ad60, free space=1003k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [jvm.dll+0x50257f]
V [jvm.dll+0x516eae]
V [jvm.dll+0x514270]
V [jvm.dll+0x51395d]
V [jvm.dll+0x209d33]
V [jvm.dll+0x203970]
V [jvm.dll+0x2010af]
V [jvm.dll+0x18ae6c]
V [jvm.dll+0x20fb97]
V [jvm.dll+0x20e3c1]
V [jvm.dll+0x74b88f]
V [jvm.dll+0x744355]
V [jvm.dll+0x5fe316]
C [ucrtbase.dll+0x21bb2]
C [KERNEL32.DLL+0x17034]
C [ntdll.dll+0x52651]
siginfo: EXCEPTION_ACCESS_VIOLATION (0xc0000005), reading address 0x0000000000000028
Register to memory mapping:
RIP=0x00007ffd51d4257f jvm.dll
RAX=0x0000000000004000 is an unknown value
RBX=0x000000002ca7b300 is pointing into the stack for thread: 0x000000002b548800
RCX=0x000000002ca7b2e0 is pointing into the stack for thread: 0x000000002b548800
RDX=0x0 is NULL
RSP=0x000000002ca7ad60 is pointing into the stack for thread: 0x000000002b548800
RBP=0x000000002ca7ae78 is pointing into the stack for thread: 0x000000002b548800
RSI=0x000000002ca7b2e0 is pointing into the stack for thread: 0x000000002b548800
RDI=0x0 is NULL
R8 =0x000000002ca7b2e0 is pointing into the stack for thread: 0x000000002b548800
R9 =0x0 is NULL
R10=0x000000006c6d6960 points into unknown readable memory: 0x000000006c2b38c8 | c8 38 2b 6c 00 00 00 00
R11=0x000000006c6d79e0 points into unknown readable memory: 0x000000002f52bde8 | e8 bd 52 2f 00 00 00 00
R12=0x000000006b9cb098 points into unknown readable memory: 0x00007ffd520878f0 | f0 78 08 52 fd 7f 00 00
R13=0x000000006b9cb098 points into unknown readable memory: 0x00007ffd520878f0 | f0 78 08 52 fd 7f 00 00
R14=0x0 is NULL
R15=0x000000002ca7af08 is pointing into the stack for thread: 0x000000002b548800
Registers:
RAX=0x0000000000004000, RBX=0x000000002ca7b300, RCX=0x000000002ca7b2e0, RDX=0x0000000000000000
RSP=0x000000002ca7ad60, RBP=0x000000002ca7ae78, RSI=0x000000002ca7b2e0, RDI=0x0000000000000000
R8 =0x000000002ca7b2e0, R9 =0x0000000000000000, R10=0x000000006c6d6960, R11=0x000000006c6d79e0
R12=0x000000006b9cb098, R13=0x000000006b9cb098, R14=0x0000000000000000, R15=0x000000002ca7af08
RIP=0x00007ffd51d4257f, EFLAGS=0x0000000000010206
Top of Stack: (sp=0x000000002ca7ad60)
0x000000002ca7ad60: 000000002b539f70 00007ffd519013f2
0x000000002ca7ad70: 000000006c6d6960 0000000000000080
0x000000002ca7ad80: 0000000000000000 00007ffd51d56eae
0x000000002ca7ad90: 000000002ca7b300 000000002ca7b2e0
0x000000002ca7ada0: 0000000000000010 00007ffd51e0d06a
0x000000002ca7adb0: 000000002ca7af08 000000006b9cb098
0x000000002ca7adc0: 0000000000000003 000000002ca7aea0
0x000000002ca7add0: 0000000000002563 00007ffd51d54270
0x000000002ca7ade0: 000000002ca7b300 000000002ca7ae78
0x000000002ca7adf0: 000000002c3898c0 00007ffd51d55523
0x000000002ca7ae00: 0000000000000011 0000000000000002
0x000000002ca7ae10: 000000002ca7b2e0 0000000000000000
0x000000002ca7ae20: 000000002b539f70 0000000000000000
0x000000002ca7ae30: 000000002ca7af40 00007ffd51d5395d
0x000000002ca7ae40: 000000002ca7b2e0 00000000661d37a0
0x000000002ca7ae50: 0000000000000003 000000002ca7af08
Instructions: (pc=0x00007ffd51d4257f)
0x00007ffd51d4247f: 7d 6e d4 ff e8 58 53 0f 00 8b 4b 28 48 8b 87 00
0x00007ffd51d4248f: 0a 00 00 48 8b 5c 24 30 8b 04 88 48 83 c4 20 5f
0x00007ffd51d4249f: c3 40 53 48 83 ec 20 48 8b d9 48 85 c9 74 21 8b
0x00007ffd51d424af: 41 2c 24 0f 3c 08 75 18 ba 11 00 00 00 e8 bf ab
0x00007ffd51d424bf: 0c 00 48 85 c0 74 09 48 8b c3 48 83 c4 20 5b c3
0x00007ffd51d424cf: 80 3d ce b7 50 00 00 74 20 48 85 db 74 1b 8b 43
0x00007ffd51d424df: 2c 24 0f 3c 08 75 12 ba 10 00 00 00 48 8b cb e8
0x00007ffd51d424ef: 8d ab 0c 00 48 85 c0 75 ce 80 3d 92 b8 50 00 00
0x00007ffd51d424ff: 74 20 48 85 db 74 1b 8b 43 2c 24 0f 3c 08 75 12
0x00007ffd51d4250f: ba 08 00 00 00 48 8b cb e8 64 ab 0c 00 48 85 c0
0x00007ffd51d4251f: 75 a5 33 c0 48 83 c4 20 5b c3 cc cc cc cc cc cc
0x00007ffd51d4252f: cc 40 53 48 83 ec 20 48 8b d9 48 85 c9 74 20 8b
0x00007ffd51d4253f: 41 2c 24 0f 3c 08 75 17 e8 34 ab 0c 00 33 d2 48
0x00007ffd51d4254f: 85 c0 48 0f 45 d3 48 8b c2 48 83 c4 20 5b c3 33
0x00007ffd51d4255f: c0 48 83 c4 20 5b c3 cc cc cc cc cc cc cc cc cc
0x00007ffd51d4256f: cc 48 89 5c 24 08 48 89 74 24 10 57 48 83 ec 20
0x00007ffd51d4257f: 8b 72 28 48 8d 79 20 3b 77 08 73 0a 48 8b 5f 10
0x00007ffd51d4258f: 48 8b 1c f3 eb 02 33 db 48 83 e3 fe 48 8b 43 08
0x00007ffd51d4259f: 48 83 38 00 75 35 8b 4f 08 8b 43 28 3b c1 73 0a
0x00007ffd51d425af: 48 8b 5f 10 48 8b 1c c3 eb 02 33 db 48 83 e3 fe
0x00007ffd51d425bf: 48 8b 43 08 48 83 38 00 74 df 8b 43 2c 83 e0 07
0x00007ffd51d425cf: 3c 05 75 07 48 8b 43 08 48 8b 18 3b 77 08 72 0a
0x00007ffd51d425df: 8b d6 48 8b cf e8 a7 9d 12 00 48 8b 47 10 48 8d
0x00007ffd51d425ef: 53 01 48 89 14 f0 48 8b c3 48 8b 5c 24 30 48 8b
0x00007ffd51d425ff: 74 24 38 48 83 c4 20 5f c3 cc cc cc cc cc cc cc
0x00007ffd51d4260f: cc 48 89 5c 24 08 57 48 83 ec 20 48 8b fa 48 8b
0x00007ffd51d4261f: d9 e8 cb d0 db ff 84 c0 75 12 48 8b 83 90 09 00
0x00007ffd51d4262f: 00 48 8b 5c 24 30 48 83 c4 20 5f c3 8b 47 28 3b
0x00007ffd51d4263f: 43 28 73 15 8b c8 48 8b 43 30 48 8b 04 c8 48 8b
0x00007ffd51d4264f: 5c 24 30 48 83 c4 20 5f c3 33 c0 48 8b 5c 24 30
0x00007ffd51d4265f: 48 83 c4 20 5f c3 cc cc cc cc cc cc cc cc cc cc
0x00007ffd51d4266f: cc 48 89 5c 24 08 57 48 83 ec 20 83 79 04 00 48
Stack slot to memory mapping:
stack at sp + 0 slots: 0x000000002b539f70 points into unknown readable memory: 0x0000000000000006 | 06 00 00 00 00 00 00 00
stack at sp + 1 slots: 0x00007ffd519013f2 jvm.dll
stack at sp + 2 slots: 0x000000006c6d6960 points into unknown readable memory: 0x000000006c2b38c8 | c8 38 2b 6c 00 00 00 00
stack at sp + 3 slots: 0x0000000000000080 is an unknown value
stack at sp + 4 slots: 0x0 is NULL
stack at sp + 5 slots: 0x00007ffd51d56eae jvm.dll
stack at sp + 6 slots: 0x000000002ca7b300 is pointing into the stack for thread: 0x000000002b548800
stack at sp + 7 slots: 0x000000002ca7b2e0 is pointing into the stack for thread: 0x000000002b548800
com.intellij.diagnostic.JBRCrash
this is the error message.
Answers and Replies
- Nov 26, 2021
- #2
I found this error report which suggests that you have the wrong jvm for your windows 10.
https://intellij-support.jetbrains.com/hc/en-us/community/posts/360003156740-failed-to-load-JVM-DLL-bin-server-jvm-dll
other references are here:
https://www.google.com/search?q=pycharm+jvm+error+on+windows+10
- Nov 26, 2021
- #3
Suggested for: Error occurred in pycharm python IDE
- Last Post
- Feb 8, 2022
- Last Post
- Feb 1, 2022
- Last Post
- Nov 26, 2021
- Last Post
- Sep 17, 2020
- Last Post
- Mar 9, 2022
- Last Post
- Mar 3, 2022
- Last Post
- Nov 22, 2022
- Last Post
- Jan 10, 2023
- Last Post
- Jul 19, 2022
- Last Post
- Dec 10, 2021
-
Forums
-
Other Sciences
-
Programming and Computer Science
Не могу запустить приложение на реальном телефоне, сразу через Android Studio, выдается IDE error ocurred вот лог
java.lang.NoClassDefFoundError: Could not initialize class com.intellij.ui.Win7TaskBar
at com.intellij.ui.AppIcon$Win7AppIcon._hideProgress(AppIcon.java:416)
at com.intellij.ui.AppIcon$BaseIcon.hideProgress(AppIcon.java:104)
at com.intellij.ui.AppIcon$BaseIcon$1.applicationActivated(AppIcon.java:153)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.intellij.util.messages.impl.MessageBusConnectionImpl.deliverMessage(MessageBusConnectionImpl.java:114)
at com.intellij.util.messages.impl.MessageBusImpl.doPumpMessages(MessageBusImpl.java:393)
at com.intellij.util.messages.impl.MessageBusImpl.pumpWaitingBuses(MessageBusImpl.java:354)
at com.intellij.util.messages.impl.MessageBusImpl.pumpMessages(MessageBusImpl.java:343)
at com.intellij.util.messages.impl.MessageBusImpl.sendMessage(MessageBusImpl.java:318)
at com.intellij.util.messages.impl.MessageBusImpl.access$100(MessageBusImpl.java:29)
at com.intellij.util.messages.impl.MessageBusImpl$1.invoke(MessageBusImpl.java:192)
at com.sun.proxy.$Proxy33.onFrameActivated(Unknown Source)
at com.intellij.ide.FrameStateManagerImpl$2.applicationActivated(FrameStateManagerImpl.java:35)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.intellij.util.messages.impl.MessageBusConnectionImpl.deliverMessage(MessageBusConnectionImpl.java:114)
at com.intellij.util.messages.impl.MessageBusImpl.doPumpMessages(MessageBusImpl.java:393)
at com.intellij.util.messages.impl.MessageBusImpl.pumpWaitingBuses(MessageBusImpl.java:354)
at com.intellij.util.messages.impl.MessageBusImpl.pumpMessages(MessageBusImpl.java:343)
at com.intellij.util.messages.impl.MessageBusImpl.sendMessage(MessageBusImpl.java:320)
at com.intellij.util.messages.impl.MessageBusImpl.access$100(MessageBusImpl.java:29)
at com.intellij.util.messages.impl.MessageBusImpl$1.invoke(MessageBusImpl.java:192)
at com.sun.proxy.$Proxy65.applicationActivated(Unknown Source)
at com.intellij.ide.ApplicationActivationStateManager.setActive(ApplicationActivationStateManager.java:122)
at com.intellij.ide.ApplicationActivationStateManager.updateState(ApplicationActivationStateManager.java:69)
at com.intellij.ide.IdeEventQueue.processAppActivationEvents(IdeEventQueue.java:723)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:595)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:375)
at java.awt.SequencedEvent.dispatch(SequencedEvent.java:128)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:764)
at java.awt.EventQueue.access$500(EventQueue.java:98)
at java.awt.EventQueue$3.run(EventQueue.java:715)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:84)
at java.awt.EventQueue$4.run(EventQueue.java:739)
at java.awt.EventQueue$4.run(EventQueue.java:737)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:736)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:757)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:706)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:375)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
java.lang.IllegalArgumentException: Parameter specified as non-null is null: method com.intellij.openapi.project.ProjectUtil.guessProjectDir, parameter $this$guessProjectDir
at com.intellij.openapi.project.ProjectUtil.guessProjectDir(ProjectUtil.kt)
at com.github.gtache.lsp.utils.FileUtils$.editorToProjectFolderPath(FileUtils.scala:153)
at com.github.gtache.lsp.utils.FileUtils$.editorToProjectFolderUri(FileUtils.scala:149)
at com.github.gtache.lsp.client.languageserver.wrapper.LanguageServerWrapperImpl$.forEditor(LanguageServerWrapperImpl.scala:50)
at com.github.gtache.lsp.PluginMain$.editorClosed(PluginMain.scala:275)
at com.github.gtache.lsp.editor.listeners.EditorListener.editorReleased(EditorListener.scala:15)
at jdk.internal.reflect.GeneratedMethodAccessor254.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at com.intellij.util.EventDispatcher.dispatchVoidMethod(EventDispatcher.java:130)
at com.intellij.util.EventDispatcher.access$000(EventDispatcher.java:24)
at com.intellij.util.EventDispatcher$1.invoke(EventDispatcher.java:88)
at com.sun.proxy.$Proxy95.editorReleased(Unknown Source)
at com.intellij.openapi.editor.impl.EditorFactoryImpl.releaseEditor(EditorFactoryImpl.java:210)
at com.intellij.ui.EditorTextField.releaseEditor(EditorTextField.java:403)
at com.intellij.ui.EditorTextField.getPreferredSize(EditorTextField.java:665)
at java.desktop/java.awt.BorderLayout.preferredLayoutSize(BorderLayout.java:724)
at java.desktop/java.awt.Container.preferredSize(Container.java:1823)
at java.desktop/java.awt.Container.getPreferredSize(Container.java:1807)
at java.desktop/javax.swing.JComponent.getPreferredSize(JComponent.java:1682)
at com.intellij.ui.components.JBPanel.getPreferredSize(JBPanel.java:108)
at java.desktop/java.awt.BorderLayout.preferredLayoutSize(BorderLayout.java:724)
at java.desktop/java.awt.Container.preferredSize(Container.java:1823)
at java.desktop/java.awt.Container.getPreferredSize(Container.java:1807)
at java.desktop/javax.swing.JComponent.getPreferredSize(JComponent.java:1682)
at com.intellij.codeInsight.hint.HintManagerImpl._getHintPosition(HintManagerImpl.java:645)
at com.intellij.codeInsight.hint.HintManagerImpl.getHintPosition(HintManagerImpl.java:607)
at com.intellij.codeInsight.hint.HintManagerImpl.getHintPosition(HintManagerImpl.java:597)
at com.intellij.codeInsight.hint.HintManagerImpl.getHintPosition(HintManagerImpl.java:579)
at com.intellij.openapi.vcs.ex.LineStatusMarkerPopupRenderer.showHintAt(LineStatusMarkerPopupRenderer.java:153)
at com.intellij.openapi.vcs.ex.LineStatusMarkerPopupRenderer.showHint(LineStatusMarkerPopupRenderer.java:127)
at com.intellij.openapi.vcs.ex.LineStatusMarkerPopupRenderer.doAction(LineStatusMarkerPopupRenderer.java:79)
at com.intellij.openapi.vcs.ex.LineStatusMarkerRenderer.doAction(LineStatusMarkerRenderer.java:138)
at com.intellij.openapi.vcs.ex.LineStatusMarkerRenderer.access$900(LineStatusMarkerRenderer.java:44)
at com.intellij.openapi.vcs.ex.LineStatusMarkerRenderer$MyActiveGutterRenderer.doAction(LineStatusMarkerRenderer.java:715)
at com.intellij.openapi.editor.impl.EditorGutterComponentImpl.mouseReleased(EditorGutterComponentImpl.java:1795)
at com.intellij.openapi.editor.impl.EditorImpl.processMouseReleased(EditorImpl.java:2297)
at com.intellij.openapi.editor.impl.EditorImpl.access$9800(EditorImpl.java:122)
at com.intellij.openapi.editor.impl.EditorImpl$MyMouseAdapter.lambda$runMouseReleasedCommand$1(EditorImpl.java:3812)
at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:220)
at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:178)
at com.intellij.openapi.editor.impl.EditorImpl$MyMouseAdapter.runMouseReleasedCommand(EditorImpl.java:3814)
at com.intellij.openapi.editor.impl.EditorImpl$MyMouseAdapter.mouseReleased(EditorImpl.java:3703)
at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:298)
at java.desktop/java.awt.Component.processMouseEvent(Component.java:6651)
at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3342)
at java.desktop/java.awt.Component.processEvent(Component.java:6416)
at java.desktop/java.awt.Container.processEvent(Container.java:2263)
at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5026)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321)
at java.desktop/java.awt.Component.dispatchEvent(Component.java:4858)
at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4918)
at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4547)
at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4488)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2307)
at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2772)
at java.desktop/java.awt.Component.dispatchEvent(Component.java:4858)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:778)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95)
at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:751)
at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:749)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:748)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:873)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:818)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:461)
at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:704)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:460)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
1 / 1 / 1 Регистрация: 04.12.2011 Сообщений: 189 |
|
1 |
|
29.09.2020, 19:23. Показов 19380. Ответов 4
Не работает Pycharm, причём сам питон (IDLE) установлен и работает правильно. Что с этим поделать? Пробовал также PyScripter. Добавлено через 2 минуты Вот что пишет Pycharm
__________________
0 |
5403 / 3827 / 1214 Регистрация: 28.10.2013 Сообщений: 9,554 Записей в блоге: 1 |
|
29.09.2020, 19:42 |
2 |
Решение В PATH у тебя два пути ссылающиеся на Python. Причем первый это просто ссылка на Microsoft Store. Удали его или просто поменяй местами со вторым путем, который указывает на твой установленный Python. P.S. Нельзя заниматься программированием, если не понимаешь таких элементарных вещей.
1 |
Нарушитель 14042 / 8230 / 2485 Регистрация: 21.10.2017 Сообщений: 19,708 |
|
29.09.2020, 19:55 |
3 |
IlyaCool, вот здесь все основы, ознакомься.
1 |
1 / 1 / 1 Регистрация: 04.12.2011 Сообщений: 189 |
|
29.09.2020, 21:20 [ТС] |
4 |
А где path находится?
0 |
Нарушитель 14042 / 8230 / 2485 Регистрация: 21.10.2017 Сообщений: 19,708 |
|
29.09.2020, 21:24 |
5 |
Не по теме: Гугл прикрыли поди… Добавлено через 59 секунд
0 |
IT_Exp Эксперт 87844 / 49110 / 22898 Регистрация: 17.06.2006 Сообщений: 92,604 |
29.09.2020, 21:24 |
Помогаю со студенческими работами здесь
У меня давний трабл, но как-то думал, а ладно фиг с ним, можно и без этого… Не работает клава на PyCharm
Pycharm + GAE + Django, не работает отладка TypeScript в IDE PyCharm Pycharm Искать еще темы с ответами Или воспользуйтесь поиском по форуму: 5 |