I'm trying to update Anaconda using conda update --all.
I receive the following warning:
Warning: 2 possible package resolutions (only showing differing packages):
- anaconda::navigator-updater-0.2.1-py36_0
- defaults::navigator-updater-0.2.1-py36done
Then it begins:
## Package Plan ##
environment location: /Users/me/anaconda3
...Followed by all sorts of good things. The transaction is then prepared, verified and executed, after which I get the following errors:
ERROR conda.core.link:_execute(700): An error occurred while uninstalling package 'https://repo.continuum.io/pkgs/main/osx-64/xlrd-1.1.0-py36h336f4a2_1.tar.bz2::xlrd-1.1.0-py36h336f4a2_1'.
Rolling back transaction: done
[Errno 13] Permission denied: '/Users/me/anaconda3/lib/python3.6/site-packages/xlrd/__init__.py' -> '/Users/me/anaconda3/lib/python3.6/site-packages/xlrd/__init__.py.c~'
()
Being the newer coder that I am, I have no idea about the environment or what it takes to update this beyond monkey-typing in what I've been told to do. What the heck do these mean and how do I solve them? I would imagine that updating would be simple, as it is going back to the folder that it came from, so why is it saying there there is an Error 13 which, as my research seems to indicate, is an admin privileges issue? (I am admin on my machine, using a Mac with interactive shell zsh.)
So it seems like the version of conda that you are using was prone to these errors. Searching it up brings up a multitude of similar errors and the common solution is to always update conda, just like you tried.
From #soapy1 comment from here, states that:
Looks like this is fixed on master, it should be resolved in the next release of conda
My advice would be, if possible, uninstall and install anaconda. This will install with the latest packages and the error shouldn't persist. You should follow the documentation on doing this safely.
Related
I do not know what happened, but suddenly I can no longer run Python code like before. I am on windows and I have a feeling the problem is the result of PATH, because I have seen this error before.
Python gives me the following error when trying to import matplotlib:
ImportError: cannot import name 'axes' from 'matplotlib'
(C:\Users\JohnDoe\AppData\Local\Packages
\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\
Python310\site-packages\matplotlib\__init__.py)
When trying to install matplotlib, I get the following error:
ERROR: Could not install packages due to an OSError: [WinError 5]
Toegang geweigerd: 'C:\\Users\\JohnDoe\\AppData\\Local\\Packages
\\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\\LocalCache\\local-packages
\\Python310\\site-packages\\matplotlib\\ft2font.cp310-win_amd64.pyd'
Check the permissions.
My setup:
Windows 11
VS Code installed through the MS Store
Python installed through VS Code, which also installs python through the MS Store
I managed to solve this issue. For future reference, the solution was:
Run pip list, take note of every package starting with ~ and where the first letter is missing (example ~atplotlib instead of matplotlib). The location of the directory is also shown.
Open the location as indicated by pip list in a file explorer, find the package starting with a ~ and delete the folder.
The command pip install matplotlib and pip install --user matplotlib still create a OSerror stating the permission is denied. This error occurs both in the terminal of VS Code, command prompt and command prompt opened as administrator.
The solution to the OSerror is to run VS Code as administrator and then run pip install matplotlib from the terminal in VS Code.
To summarize: delete the conflicting package and reinstall through the VS Code terminal while running VS Code as administrator.
All other suggestions I found online to solve this issue failed for me. These suggestions included changing the permission in windows to full access.
I want to use python3.7.13 with anaconda.
From conda documentation
conda install python=3.7.13 should do the job however since all this is taking place at my corporation which is blocked with firewall I get following error:
An HTTP error occurred when trying to retrieve this URL. HTTP errors are ofrten intermittent, and a simple retry will get you on your way. ProxyError(....
I've re-tried multiple times but no luck. After some googling I found that there is a workaround -> from this SO
But it increase risk of attack which I cannot afford.
So I am trying to find out version of Anaconda that comes with python 3.7.13 therefore I could ask my service team to download Anaconda for me.
I wanted to change my python compiler to "newer" one (within one project) and use some additional packages with conda. After the installation all my packages worked fine and I could use the console, however matplotlib.pyplot fails to import since then. And throws the following error: app = QtGui.QApplication([" "])
AttributeError: module 'PyQt5.QtGui' has no attribute 'QApplication'
After doing some research on this I found this one: link
It is suggesting to change inputhooks.py (on line 513 and change GUI_QT:enable_qt4 to GUI_QT: enable_qt5 4 to 5)
As it is a company machine, I can't have admin rights to overwrite things within PyCharm.
Can you recommend a better solution to avoid this?
Why is this popping up?
ErrorLogScreenshot
Also I tried to install the newer version of pyqt but that didn't fix the problem.
In the same time
Within pydev the interactiveshell.py fails as well. with the following error message:self.showtraceback(running_compiled_code=True)
TypeError: showtraceback() got an unexpected keyword argument 'running_compiled_code'
I understand it gets an argument which it is not expecting. I did some research on this one as well and some could fix it by deleting a stale a corresponding .pyc file (I couldn't find one at the same location as the initial file only interactiveshell.py)
Below this blog regarding pydev the conversation never went further
https://github.com/ipython/ipython/issues/10687
Is there a way to fix it?
I am kind of new to Python and don't quite understand the heart of it at this depth so any help is appreciated.
Thanks,
Anna
For anyone having the same issue, I have solved this problem by switching to qt and pyqt 4. To do so, follow the following procedure:
conda remove qt
conda install qt=4
conda install -c anaconda pyqt=4.11.4
conda install matplotlib --no-update-dependencies
If you are not using a virtual environment, you might also have to remove anaconda navigator before installing new packages:
conda uninstall anaconda-navigator
At the beginning of your program, switch matplotlib backend:
import matplotlib.pyplot as plt
plt.switch_backend('Qt4Agg')
Inspired by this solution.
After updating PyCharm all issues seem to have been resolved. (I was using versin 2017.1)
The show traceback error was due to pydev, and the new release fixes it.
As well as the GUI problem.
I was able to solve it by finding the file, and both messages disappeared, and matplotlib seems to work fine again.
Under this folder (I named my environment py35):
C:\Users\myusername\AppData\Local\Continuum\anaconda3\envs\py35\Lib\site-packages\IPython\core__pycache__
I found the file: interactiveshell.cpython-35.pyc and deleted it -
(This solves the problem only on Python 3.5)
I am working on a product. However, when I try to install it, I see the error below on the control panel, hence I cannot install/Activate it.
Some products were found to have errors when compiling the install file.
my.package
Error Type
Missing dependency
Error Value
profile-collective.portlet.explore:default
This even after running buildout and not showing any errors. Any ideas anyone?
The GenericSetup install profile lists a dependency that's not available to GenericSetup. Either remove the dependency from your profile's metadata.xml or install collective.portlet.explore into your buildout.
Upon trying to start a Pinax app, I receive the following error:
Error: No module named notification
Below are the steps I took
svn co http://svn.pinaxproject.com/pinax/trunk/ pinax
cd pinax/pinax/projects/basic_project
./manage.py syncdb
Any suggestions?
UPDATE:
Turns out there are some bugs in the SVN version. Downloading the latest release solved my problem. If any one has any other suggestions on getting the trunk working, they would still be appreciated.
I'd avoid the svn version all together. It's unmaintained and out of date. Instead, use the git version at http://github.com/pinax/pinax or (even better) the recently release 0.7b3 downloadable from http://pinaxproject.com
Two thoughts:
1. Check all of your imports to make sure that notification is getting into the namespace.
2. You may be missing quotes around an import path (eg. in your urls.py: (r'^test', 'mysite.notification') -- sometimes I forget the quotes around the view)
Try following the latest install instructions here:
http://github.com/pinax/pinax/blob/600d6c5ca0b45814bdc73b1264d28bb66c661ac8/INSTALL
Don't think this will work on Windows (maybe if you are using cygwin) as they are using virtualenv and pip.
Note the version has recently been upgraded to 0.7rc1
IIRC I had to add a directory or two to the Python path last time I did a fresh install of Pinax. I'm doing a fresh checkout now into a new virtualenv, I'll edit this answer if I hit any snags.