After launching anaconda, python crashes with message "pythonw.exe has stopped working".
Please find error screenshot here
I had downloaded some packages(nltk). And after that my anaconda stopped working.
It is giving me Navigator Error :
An Unexpected error occurred on Navigator startup
psutil.AccessDenied(pid=3232)
Tried reinstalling the anaconda,
Also reboot the system,
Fired 'conda update anaconda-navigator' command.
But does not worked.
Access Denied errors usually mean a process is trying to open a file that's already open, or the program doesn't have sufficient permission from Windows to read the particular file.
In this case, it looks like the anaconda-navigator package is having trouble. Look at the python scripts mentioned in the error trace (start.py, line 108 and misc.py, line 348) and try to find out what file it is trying to open. Then, go to that file in Windows Explorer and give whatever user pythonw.exe is running under (probably your user account, or possibly the Administrators group) permission to read that file. Depending on what navigator's trying to do, it might need write permissions as well. See here for more info on Windows File permissions.
Related
A bit of background:
I'm trying to convert a python tkinter script I have into an .exe for my coworkers to use. I installed pyinstaller successfully and was able to run pyinstaller my_script.py --onefile however I could never get my application to open due to a windows cannot open error. I thought this had to do with how pyinstaller ran so I kept deleting my app and associated files to try again. Eventually I tried using auto-py-to-exe to get this job done so I installed that. When I went to run this by simply entering auto-py-to-exe I got the Access is Denied error, and when I went back to trying pyinstaller again I started getting Access is Denied for that as well. Even if I just try to run pyinstaller --help I'll get Access is Denied. I don't understand how I could randomly get locked out like that and any help would be appreciated.
I've tried googling and troubleshooting this issue and I haven't really been able to find anything that seems to help me. This is a work machine that I'm using and I don't have access to the admin profile so I am unable to run any of these commands as an administrator.
It looks like you're running into a permission issue on your work machine, which is preventing you from executing PyInstaller and auto-py-to-exe.
Unfortunately, since you don't have administrative rights on the machine, there might not be much you can do to resolve the issue. However, here are a few suggestions that you can try:
Check if there are any restrictions set by your IT department that are preventing you from executing the software.
Try to run the commands from a different command prompt or terminal, such as the Anaconda prompt.
If you have access to a different machine, you can try using that to compile the script instead.
I just installed Anaconda, launched VS from Anaconda navigator, launched VS, opened a project, create a python file and successfully ran it. I then created another file under the same project but got Permission denied error when running it. I restarted my Mac, created new project and file but still get the same error. One additional note, when I ran the first file successfully, I also had run button on the top right section of the file but that button is no longer present.
I followed the suggestions in this post but it did not resolve the issue
I also get the following notification right after creating a file and before running it:
Update check failed. The server sent an invalid response. Try again later.
I am trying to install Python 2.7 (64 bit) on Windows 10. In the middle of the installation, a window pops up saying:
Error writing to file C:\Python27\pythonw.exe. Verify that you have
access to that directory
How can I resolve this issue and install Python?
This error is normally encountered when the installer does not have admin rights for the drive/folder you are installing to. I also noticed that you are installing to drive C:
Here are a couple of things for you to try.
Open the installer program by right-clicking, and then selecting "Run as Administrator".
Depending on how you have your PC set up you may not have permission to install on drive C:
If this is a work computer, talk to your IT department. Otherwise, seriously consider using different drives to keep your OS and your applications separated.
I encountered a similar issue while installing Python 2.7.11 on Windows 7 (64bit). Here is how I solved the error.
Note down the path mentioned in the error.
Do not close the error message. i.e. Do not press "Retry" or "Cancel", let it be there.
Go to the directory mentioned in step-1.
Try to create a new folder or text file in this directory.
You will get an error message saying "The Disc Structure is Corrupted and Unreadable". This is the real issue which is causing the Python installation to fail.
Run Command Prompt as an administrator and enter the command: Chkdsk \f C:
Either it will start checking the disc or it will ask you to select if you want to check disc next time you boot-up your machine. Select Yes and restart your machine.
A disc check will be performed, which may take 5-10 minutes.
Now you can install Python without any issue.
I had the same problem , this is how I solved the error :
click on cancel
go to c:\
create a new folder and call it python or python3
run the python install as administrator and choose the new folder that you just created
as directory where it should be installed
et voila !
Your Windows 10 version may not be activated. So many administrator features are locked in inactivated Windows10 version.
So try to open CMD in administrator mode and run following command to ignore the activation message.
slmgr -rearm
Now you can install fresh version of python with pythonw.exe features.
Right Click The running Uninstaller. Then Right Click Python 3.9.1 64-bit as shown below in the picture. ( I have Python 3.9.1. You can do it in any Uninstaller) Now it will repair without any errors. ^_^
Background
I'm stuck at opening spyder on a remote Linux server which I access via x2Go from windows 10 via a secured connection from my university .I'm not familiar with Linux but my colleague set up an account for me, which worked fine until I needed an extra module that downgraded a lot of package, which I tried to solve by myself and messed up my system (using pip and reinstalling conda not knowing what I was doing, damn)
I have my user account home/bianca but my anaconda distribution has been reinstalled in media/bianca/software/anaconda3/ by my colleague. There is a spyder3 and a spyder4 in a new environment with
conda install -c conda-forge matplotlib=3.1 qt=5.6.2 spyder
as given here: Python spyder could not initialize GLX.
Problem
if I call spyder3 in my base env, no pop-up appears and I get the error
Could not initialize GLX
Aborted (core dumped)
--> looks like the communication of my windows and the linux via the xserver is wrong.
but
if I open spyder4 from a new environment, the spyder4 loading screen appears, blinks, then the program opens (where I can see my last scripts used some other time are being loaded) and crashes:
Qt: Session management error: Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed
Segmentation fault (core dumped)
Calling the default spyder of the system on some other disk there is no problem (but I don't have my modules)
From the terminal it all works
What I tried
delete all python paths
conda spyder --reset,
we deleted a lot of files in home/bianca
find some kind of initialisation file that stores the last opened
scripts (not found, is it in home/bianca/.config/spyder-py3?
Can it be that there is some erroneous link in there, can I delete that one?
Thanks very much for any suggestion, I'll gladly give more specifications!!
Bianca
I had the same issue, also using x2go. After trying everything that you tried, the only solution I found was to launch spyder in a different way. Before this, I would so as follows (and it worked perfectly):
source activate [name of your virtual environment]
spyder&
Since last week, the 'spyder&' command no longer launches the IDE, and I managed to surpass this by writing instead:
source activate [name of your virtual environment]
spyder3
The terminal still complains about certain issues, but at least I can work now!
Spyder unexpectedly froze and I turned off my PC (as in, pulled out the power cord). Now I cannot open Spyder, and I get this error when try to do so:
There is no documentation online for this, and I don't understand what it means. Please help.
There are two possibilities:
Run the 'Reset Spyder settings' program and restart your PC
Do a clean reinstall of Spyder
You can delete the .spyder directory from your home directory. If you run spyder with Python 3, this would be the .spyder-py3 directory.
(The spyder user settings directory is probably corrupted)