Composer fails to update with zfc-user-doctrine-orm - doctrine-orm

i have the following composer.json
{
"name": "zendframework/skeleton-application",
"description": "Skeleton Application for ZF2",
"license": "BSD-3-Clause",
"keywords": [
"framework",
"zf2"
],
"homepage": "http://framework.zend.com/",
"require": {
"php": ">=5.3.3",
"zendframework/zendframework": "2.2.*",
"doctrine/doctrine-orm-module": "*",
"bjyoungblood/bjy-authorize": "1.2.*",
"zf-commons/zfc-user": "dev-master",
"zendframework/zend-developer-tools": "*",
"zendframework/zftool": "dev-master",
"swiftmailer/swiftmailer" : "*",
"mwillbanks/zfc-twitter-bootstrap": "*"
}
}
after I added the require zf-commons/zfc-user-doctrine-orm, Composer was unable to perform the command composer update giving a large error message:
composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for zf-commons/zfc-user dev-master -> satisfiable by
zf-commons/zfc-user[dev-master].
- Conclusion: don't install zf-commons/zfc-user 0.1.2
- Conclusion: remove zendframework/zendframework 2.2.0
- zf-commons/zfc-user 0.0.1 requires zendframework/zendframework 2.0.* -> sa
tisfiable by zendframework/zendframework[2.0.0, 2.0.0rc1, 2.0.0rc2, 2.0.0rc3, 2.
0.0rc4, 2.0.0rc5, 2.0.0rc6, 2.0.0rc7, 2.0.1, 2.0.2, 2.0.3, 2.0.4, 2.0.5, 2.0.6,
2.0.7, 2.0.8].
- zf-commons/zfc-user-doctrine-orm 0.0.1 requires zendframework/zendframewor
k 2.0.* -> satisfiable by zendframework/zendframework[2.0.0, 2.0.0rc1, 2.0.0rc2,
2.0.0rc3, 2.0.0rc4, 2.0.0rc5, 2.0.0rc6, 2.0.0rc7, 2.0.1, 2.0.2, 2.0.3, 2.0.4, 2
.0.5, 2.0.6, 2.0.7, 2.0.8].
- zf-commons/zfc-user 0.1.0 requires zendframework/zendframework 2.1.* -> sa
tisfiable by zendframework/zendframework[2.1.0, 2.1.1, 2.1.2, 2.1.3, 2.1.4, 2.1.
5].
- zf-commons/zfc-user 0.1.1 requires zendframework/zend-view 2.1.* -> satisf
iable by zendframework/zendframework[2.1.0, 2.1.1, 2.1.2, 2.1.3, 2.1.4, 2.1.5],
zendframework/zend-view[2.1.0, 2.1.1, 2.1.2, 2.1.3, 2.1.4, 2.1.5].
- zf-commons/zfc-user-doctrine-orm 0.1.0 requires zendframework/zendframewor
k 2.1.* -> satisfiable by zendframework/zendframework[2.1.0, 2.1.1, 2.1.2, 2.1.3
, 2.1.4, 2.1.5].
- Can only install one of: zendframework/zendframework[2.2.0, 2.0.0].
- Can only install one of: zendframework/zendframework[2.2.0, 2.0.0rc1].
- Can only install one of: zendframework/zendframework[2.2.0, 2.0.0rc2].
- Can only install one of: zendframework/zendframework[2.2.0, 2.0.0rc3].
- Can only install one of: zendframework/zendframework[2.2.0, 2.0.0rc4].
- Can only install one of: zendframework/zendframework[2.2.0, 2.0.0rc5].
- Can only install one of: zendframework/zendframework[2.2.0, 2.0.0rc6].
- Can only install one of: zendframework/zendframework[2.2.0, 2.0.0rc7].
- Can only install one of: zendframework/zendframework[2.2.0, 2.0.1].
- Can only install one of: zendframework/zendframework[2.2.0, 2.0.2].
- Can only install one of: zendframework/zendframework[2.2.0, 2.0.3].
- Can only install one of: zendframework/zendframework[2.2.0, 2.0.4].
- Can only install one of: zendframework/zendframework[2.2.0, 2.0.5].
- Can only install one of: zendframework/zendframework[2.2.0, 2.0.6].
- Can only install one of: zendframework/zendframework[2.2.0, 2.0.7].
- Can only install one of: zendframework/zendframework[2.2.0, 2.0.8].
- Can only install one of: zendframework/zendframework[2.2.0, 2.1.0].
- Can only install one of: zendframework/zendframework[2.2.0, 2.1.1].
- Can only install one of: zendframework/zendframework[2.2.0, 2.1.2].
- Can only install one of: zendframework/zendframework[2.2.0, 2.1.3].
- Can only install one of: zendframework/zendframework[2.2.0, 2.1.4].
- Can only install one of: zendframework/zendframework[2.2.0, 2.1.5].
- don't install zendframework/zend-view 2.1.0|don't install zendframework/ze
ndframework 2.2.0
- don't install zendframework/zend-view 2.1.1|don't install zendframework/ze
ndframework 2.2.0
- don't install zendframework/zend-view 2.1.2|don't install zendframework/ze
ndframework 2.2.0
- don't install zendframework/zend-view 2.1.3|don't install zendframework/ze
ndframework 2.2.0
- don't install zendframework/zend-view 2.1.4|don't install zendframework/ze
ndframework 2.2.0
- don't install zendframework/zend-view 2.1.5|don't install zendframework/ze
ndframework 2.2.0
- Installation request for zendframework/zendframework == 2.2.0.0 -> satisfi
able by zendframework/zendframework[2.2.0].
- zf-commons/zfc-user-doctrine-orm 0.1.1 requires zf-commons/zfc-user 0.* ->
satisfiable by zf-commons/zfc-user[0.0.1, 0.1.0, 0.1.1, 0.1.2].
- Installation request for zf-commons/zfc-user-doctrine-orm * -> satisfiable
by zf-commons/zfc-user-doctrine-orm[0.0.1, 0.1.0, 0.1.1].
How do I fix this error message?

Your composer file works fine for me. This is possibly caused because you're using the dev-master of zf-commons/zfc-user rather than a tagged version number.
Because of this Composer is using an old version that exists in your Composer cache, rather than downloading a new version. You can tell it's using an old version as Composer is referring to zf-commons/zfc-user 0.0.1 but the current version is 0.1.2. The old version of zf-commons/zfc-user has a dependency on and old version of zendframework/zendframework which is clashing with the other modules that require a newer version.
If you replace:
"zf-commons/zfc-user": "dev-master",
with:
"zf-commons/zfc-user": "~0.1.2",
It should force Composer to download the 0.1.2 or newer version of that module.

In 2015, this work fine for me
"zf-commons/zfc-user": "1.*",
"zf-commons/zfc-user-doctrine-orm": "^1.0"

I had the same problem, so i changed some dependencies with dev-master to their last versions and it worked. My composer.json file:
{
"name": "zendframework/skeleton-application",
"description": "Skeleton Application for ZF2",
"license": "BSD-3-Clause",
"keywords": [
"framework",
"zf2"
],
"homepage": "http://framework.zend.com/",
"require": {
"php": ">=5.5",
"zendframework/zendframework": "~2.5",
"zendframework/zftool": "dev-master",
"doctrine/doctrine-orm-module": "^0.10.0",
"zendframework/zend-developer-tools": "dev-master",
"bjyoungblood/bjy-profiler": "dev-master",
"doctrine/migrations": "^1.4",
"doctrine/orm": "^2.5",
"rradutzu/zend2-doctrine-dynamic-db": "^0.0.4",
"zf-commons/zfc-rbac" : "~2.4",
"zf-commons/zfc-user": "1.4.4",
"zf-commons/zfc-user-doctrine-orm": "^1.0.1"
}
}

Related

Error while installing CFN-cli, Could not find a version that satisfies the requirement aws-sam-translator>=1.50.0

I am trying to setup my dev environment for cloudformation and while installing cfn-cli (coudformation ClI) I am getting below error. I am following official aws documentation. https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html
the error come while trying to install
pip3 install cloudformation-cli
Error
Could not find a version that satisfies the requirement aws-sam-translator>=1.50.0 (from cfn-lint>=0.43.0->cloudformation-cli)(from versions: 1.5.1, 1.5.2, 1.5.3, 1.5.4, 1.6.0, 1.6.1, 1.7.0, 1.8.0, 1.9.0, 1.9.1, 1.10.0, 1.11.0, 1.12.0, 1.13.0, 1.13.1, 1.13.2, 1.14.0, 1.15.0, 1.15.1, 1.16.0, 1.17.0, 1.18.0, 1.19.0, 1.19.1, 1.20.0, 1.20.1, 1.21.0, 1.22.0, 1.23.0, 1.24.0, 1.25.0, 1.26.0, 1.27.0, 1.28.1, 1.29.0, 1.30.0, 1.30.1, 1.31.0, 1.32.0, 1.33.0, 1.34.0, 1.35.0, 1.36.0, 1.37.0, 1.38.0, 1.39.0, 1.40.0, 1.42.0) No matching distribution found for aws-sam-translator>=1.50.0 (from cfn-lint>=0.43.0->cloudformation-cli)

Can not update doctrine-orm-module 3 in Laminas project

I am trying to update Doctrine Module in my Laminas project to version 3 using Composer but I am getting errors.
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Conclusion: don't install doctrine/doctrine-orm-module 3.0.5
- Conclusion: don't install doctrine/doctrine-orm-module 3.0.4
- Conclusion: don't install doctrine/doctrine-orm-module 3.0.3
- Conclusion: don't install doctrine/doctrine-orm-module 3.0.2
- Conclusion: don't install doctrine/doctrine-orm-module 3.0.1
- Conclusion: remove doctrine/doctrine-module 2.1.10
- Installation request for doctrine/doctrine-orm-module ^3.0 -> satisfiable by doctrine/doctrine-orm-module[3.0.0, 3.0.1, 3.0.2,
3.0.3, 3.0.4, 3.0.5].
- Conclusion: don't install doctrine/doctrine-module 2.1.10
- doctrine/doctrine-orm-module 3.0.0 requires doctrine/doctrine-module ^4.0 -> satisfiable by doctrine/doctrine-module[4.0.0, 4.0.1, 4.0.2, 4.0.3].
- Can only install one of: doctrine/doctrine-module[4.0.0, 2.1.10].
- Can only install one of: doctrine/doctrine-module[4.0.1, 2.1.10].
- Can only install one of: doctrine/doctrine-module[4.0.2, 2.1.10].
- Can only install one of: doctrine/doctrine-module[4.0.3, 2.1.10].
- Installation request for doctrine/doctrine-module (locked at 2.1.10) -> satisfiable by doctrine/doctrine-module[2.1.10].
Installation failed, reverting ./composer.json to its original content.
Any ideas as to why doctrine-orm-module is not installing. I have tried uninstalling and re-installing doctrine-orm-module but with no luck.
Many thanks in advance.
Edit
composer.json
{
"name": "kryten/direct_sites",
"description": "Direct Sites",
"license": "",
"keywords": [
"framework",
"zf3",
"Ecommerce"
],
"homepage": "http://framework.zend.com/",
"require": {
"php": ">=7.3",
"laminas/laminas-component-installer": "^2.1",
"laminas/laminas-mvc": "^3.1",
"laminas/laminas-filter": "^2.9",
"laminas/laminas-crypt": "^3.3",
"laminas/laminas-mvc-plugin-flashmessenger": "^1.1",
"laminas/laminas-i18n": "^2.9",
"ocramius/proxy-manager": "^2.2",
"krytenuk/refresh-redirect": "^2.0",
"krytenuk/logger": "^2.0",
"krytenuk/recaptchav2": "^2.0",
"krytenuk/mailchimp": "^0.2.0",
"laminas/laminas-serializer": "^2.9",
"laminas/laminas-mvc-i18n": "^1.1",
"gedmo/doctrine-extensions": "^2.4",
"laminas/laminas-permissions-acl": "^2.7",
"laminas/laminas-navigation": "^2.9",
"laminas/laminas-cache": "^2.8",
"ocramius/package-versions": "^1.4",
"laminas/laminas-feed": "^2.12",
"symfony/filesystem": "^4.2",
"laminas/laminas-dependency-plugin": "^1.0",
"krytenuk/messenger": "^1.1",
"laminas/laminas-file": "^2.8",
"doctrine/doctrine-orm-module": "2.1"
},
"autoload": {
"psr-4": {
"Application\\": "module/Application/src/",
"Auth\\": "module/Auth/src/",
"Admin\\": "module/Admin/src/",
"Author\\": "module/Author/src/",
"User\\": "module/User/src/"
}
}
}
I am trying to run the command composer require doctrine/doctrine-orm-module and I get the response Using version ^3.0 for doctrine/doctrine-orm-module followed by the message above.
Try cleaning up the vendor/ directory as it might contain the too old version of doctrine/doctrine-module installed previously.
As another solution, I suggest you execute composer update and see if there are any errors.
Usually, in such cases the most common problem is that composer require ... does not upgrade the existing packages.

How to install Eliom

I can't install eliom of the Ocsigen project
$ opam install eliom
Your request can't be satisfied:
- No package matches eliom.
$ opam install eliom.5.0.0
Your request can't be satisfied:
- No package matches eliom.5.0.0.
but surprisingly i can find the package with:
$ opam show eliom
package: eliom
version: 5.0.0
repository: default
upstream-url: https://github.com/ocsigen/eliom/archive/5.0.0.tar.gz
upstream-kind: http
upstream-checksum: dcd4c6b7b09a9ac233cb6db4605c233e
homepage: http://ocsigen.org/eliom/
bug-reports: https://github.com/ocsigen/eliom/issues/
dev-repo: https://github.com/ocsigen/eliom.git
author: dev#ocsigen.org
license: LGPL-2.1 with OCaml linking exception
depends: ocamlfind & camlp4 <= 4.02+6 & deriving >= 0.6 & (base-no-ppx | ppx_tools >= 0.99.3) & js_of_ocaml > 2.6 & tyxml > 3.5.0 & calendar & ocsigenserver >= 2.6 & ipaddr >= 2.1 & reactiveData >= 0.2 & base-bytes
installed-version:
available-versions: 2.2.2, 3.0.0, 3.0.1, 3.0.2, 3.0.3, 4.0.0, 4.1.0, 4.2.0, 5.0.0
description: Framework for programming Web sites and client/server Web applications.
what am i doing so wrong?
You should state:
version of opam obtained by opam --version
the current opam switch obtained by opam switch
The confusing message is a known issue of OPAM 1.2.2: https://github.com/ocaml/opam/issues/2526 .
My guess is that you are using OCaml 4.03.0. You cannot meet the required conditions to install eliom.5.0.0 with it. According to opam info eliom.5.0.0, you need OCaml 4.02.x. See https://github.com/ocsigen/eliom/issues/324 for details.

Installing Camomile via opam fails due to missing patch file. How can I fix this?

While installing utop via opam on my ArchLinux laptop, I got the following message:
$ opam install utop
The following actions will be performed:
- install camomile.0.8.5 [required by utop]
- install zed.1.3 [required by utop]
- install lambda-term.1.6 [required by utop]
- install utop.1.14
4 to install | 0 to reinstall | 0 to upgrade | 0 to downgrade | 0 to remove
Do you want to continue ? [Y/n]
=-=-= Installing camomile.0.8.5 =-=-=
Applying cmxs.patch.
[ERROR] Due to some errors while processing camomile.0.8.5, the following actions will NOT proceed:
- install utop.1.14
- install lambda-term.1.6
- install zed.1.3
===== ERROR while installing camomile.0.8.5 =====
Could not get the source for camomile.0.8.5:
# opam-version 1.1.1
# os linux
Patch file "/home/sinan/.opam/system/build/camomile.0.8.5/cmxs.patch" not found.
'opam install utop' failed.
Trying to install camomile by itself also gives the same error. This seems to be related to commit 672e44e which carried over to the opam repository as cmxs.patch. I am not sure where things break so that opam tries to build without the patch file.
I tried downloading, and putting cmxs.patch in the reported location, but, of course, that directory gets clobbered the next time I try to install via opam.
How should I proceed?
I would have preferred to have been able to fix the underlying problem, but, in the end, downloading the contents of the cmxs.patch file, adding it to the already downloaded ~/.opam/archives/camomile.0.8.5+opam.tar.gz archive, and then issuing
$ opam install camomile
worked.
After that, opam install utop went without a hitch as well.
For your reference, I have:
$ opam --version
1.1.1
$ cat .opam/repo/default/repo
upstream: "https://github.com/ocaml/opam-repository/tree/master/"
browse: "https://opam.ocaml.org/pkg/"

pip can't find latest versions of a pypi project

I'm trying to install http://pypi.python.org/pypi/django-crowdsourcing/1.1.21 using pip. I'm getting
$ pip install django-crowdsourcing==1.1.21
Downloading/unpacking django-crowdsourcing==1.1.21
Could not find a version that satisfies the requirement django-crowdsourcing==1.1.21 (from versions: )
No distributions matching the version for django-crowdsourcing==1.1.21
If I try an upgrade, it only finds version 1.1.19.
$ pip install -v --upgrade django-crowdsourcing
Downloading/unpacking django-crowdsourcing
Using version 1.1.19 (newest of versions: 1.1.19, 1.1.18, 1.1.17, 1.1.16, 1.1.15, 1.1.14, 1.1.13, 1.1.12, 1.1.11, 1.1.10, 1.1.9, 1.1.8, 1.1.7, 1.1.6)
Downloading django-crowdsourcing-1.1.19.tar.gz (651Kb): 651Kb downloaded
...
Successfully installed django-crowdsourcing
It looks like django-crowdsourcing version 1.1.21 has some good tags
$ hg tags
tip 289:8796aae85e34
1.1.21 288:2f39596495a7
1.1.20 281:fe00699aa3ff
1.1.19 278:17392ea8ea54
and the correct version number in setup.py
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import os
readme_file = os.path.join(os.path.dirname(__file__),
'README')
long_description = open(readme_file).read()
classifiers = [
'Development Status :: 4 - Beta',
'Framework :: Django',
'License :: OSI Approved :: MIT License']
setup(name='django-crowdsourcing',
version='1.1.21',
classifiers=classifiers,
description='Django app for collecting and displaying surveys.',
long_description=long_description,
author='Jacob Smullyan, Dave Smith',
author_email='jsmullyan#gmail.com',
url='http://code.google.com/p/django-crowdsourcing/',
packages=['crowdsourcing', 'crowdsourcing.templatetags'],
license='MIT',
)
PyPi clearly knows about version 1.1.21 since that's what comes up when you go to http://pypi.python.org/pypi/django-crowdsourcing/ Why does pip think version 1.1.19 is the latest version?
Edit
Sheepishly, I forgot to point out I'm the maintainer. #Matthew Schinckel is right. Here are the two commands I needed, which I found out from a tutorial I didn't see before: http://wiki.python.org/moin/Distutils/Tutorial
$ python setup.py register
$ python setup.py sdist upload
There is no packaged file at version 1.1.21. There is one at 1.1.19. Tags in hg mean nothing to pip: it will only download a packaged up file.
Perhaps contact the maintainer, and point out there is no file release with the two most recent versions on pypi.