Plone 4 : Broken Product. Missing Dependency Error - python

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.

Related

pip install failing due to repeatedly changing sha256 (ERROR: THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE)

I am currently trying to install many different libraries into my Python environment. I've currently tried using a virtual environment and conda environment still resulting in similar errors.
As I'm doing this on a VM, I have to go through my corporate proxy, hence my pip install command looks a little verbose like the following:
pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org h5py --proxy http://user:password#proxy.internet.mycompany.local:8080
This had been working fine to download many different packages (including ones that are currently failing now), I'm not too sure what has changed, but now the command results in the following error:
Collecting h5py
Downloading h5py-3.1.0-cp37-cp37m-win_amd64.whl
\ 4.8 kB ...
ERROR: THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE. If you have updated the >package versions
, please update the hashes. Otherwise, examine the package contents carefully; someone may have tampered >with them
.
h5py from https://files.pythonhosted.org/packages/53/c2/77bd81922264520b492bd7bfd1a51a845bc1187445408a7a83db284fd566/h5py-3.1.0-cp37-cp37m-win_amd64.whl#sha256=02c391fdb980762a1cc03a4bcaecd03dc463994a9a63a02264830114a96e111f
:
Expected sha256 02c391fdb980762a1cc03a4bcaecd03dc463994a9a63a02264830114a96e111f
Got 3fbaf847f810d5f6970abb0c7754abcca7dea17d315036fe5e4b26f427adf3a6
Although this error will still stay largely the same, the "Got" sha256 will change on each attempt, i.e. the following for the last returned line:
Got ff8197d74c233317597b89612691bf420806046093628ac02f0a92df3ac8123a
Got 8be06806b22d49aaa9b94113d8b3e075539303da96386971600c21cb8b9f8460
To rectify this error I've attempted the following:
using '--no-cache-dir' as suggested other Stack Overflow answers to similar questions
reinstalling python/pip or trying other versions of Python.
trying to use miniconda/anaconda instead
contacting owner of libraries about the issue (although I'm fairly sure it isn't library specific as I can't download any packages)
attempted to access the link in the error output: https://files.pythonhosted.org/packages/53/c2/77bd81922264520b492bd7bfd1a51a845bc1187445408a7a83db28%204fd566/h5py-3.1.0-cp37-cp37m-win_amd64.whl#sha256=02c391fdb980762a1cc03a4bcaecd03dc463994a9a63a02264830114a96e111f. This results in the following page response - the console section of developer tools states the following error: Failed to load resource: the server responded with a status of 404 (Not Found)
I've found a few similar issues to this already on Stack Overflow, but I've found nothing that resolves this.

xfoil for python package installation issues "UserWarning: Unknown distribution option: 'zip_save'"

On my laptop Windows 10 machine I was able to download the package "xfoil 1.1.1": https://pypi.org/project/xfoil/ in Jupyter Notebook by executing the command "!pip install xfoil". I tried doing the exact same thing on my new desktop and get the error "ERROR: Failed building wheel for xfoil" as well as the warning "UserWarning: Unknown distribution option: 'zip_save'". This is the same error described here: https://www.pythonanywhere.com/forums/topic/27038/ even though I have no issues installing other packages. The conclusion from that thread seemed to be that the package must have an error associated with it, but I am not sure why it would work on one machine but not the other since I am using Anaconda 3.8 for both.
It's a bug in the package: zip_save is misspelled, it must be spelled zip_safe. You cannot do much with it until the author(s) fix the bug.
You can fork the repository, fix the misspelling and install the package from your own repository.
Download the files from here.
On your command line type: python setup.py install
If you get this error:
ValueError: Unknown MS Compiler version 1927
go to
C:\Python39\Lib\distutils
and locate the file: cygwinccompiler.py
In the function
def get_msvcr():
add one more "elif" statement like this one:
elif msc_ver == '1927':
return ["mspdb140.dll"]

Errno 13 Permission denied when updating conda

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.

Cannot install SSL on Python 3.7.1?

I'll start off with saying I read this post already and could not find an answer.
I am on Windows 10, and have been trying to install pipenv through powershell.
Only, it returns me the following error:
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
So I then downloaded ssl-1.16 from this website, but then ran into another error:
ValueError: This extension should not be used with Python 2.6 or later (already built in), and has not been tested with Python 2.3.4 or earlier.
I checked a few forums and still cannot seem to find an answer. So if anyone would know how to come to terms with that, I'd be truly grateful. :)
Thanks

Problem using easy_install.exe to install pyMySQL for Django

I'm trying to install the pyMySQL module for python so that I can setup Django (see this previous question).
I can't get easy_install.exe PyMySQL-0.3-py2.6.egg to run for the life of me. Every time I get the error easy_install.exe not recognized as an internal or external command... I've tried adding various directories to my system path including:
C:\Python27\Lib\site-packages\;
C:\Python27\Scripts\;
C:\Python27\Scripts\easy_install.exe
C:\Python27\Scripts\easy_install.exe PyMySQL-0.3-py2.6.egg
What am I missing that is keeping this from executing?(note I'm on windows 7)
You have to install setuptools first
[edit]
Uh,
C:\Users\Robus>easy_install
Yada yada, not found
C:\Python26\Scripts>easy_install
error: No urls, filenames, or requirements specified (see --help)
C:\Python26>
The next best thing I can think of is - do you, by any chance, have more than one version of python installed? In that case setuptools might have been installed somewhere else

Categories