Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip semantic-version conflict #27450

Closed
abdopcnet opened this issue Aug 14, 2024 · 1 comment
Closed

pip semantic-version conflict #27450

abdopcnet opened this issue Aug 14, 2024 · 1 comment
Labels

Comments

@abdopcnet
Copy link

Information about bug

(env) frappe@vmi1555591:/frappe-bench$ pip install semantic-version==2.10.0
Collecting semantic-version==2.10.0
Downloading semantic_version-2.10.0-py2.py3-none-any.whl.metadata (9.7 kB)
Downloading semantic_version-2.10.0-py2.py3-none-any.whl (15 kB)
Installing collected packages: semantic-version
Attempting uninstall: semantic-version
Found existing installation: semantic-version 2.8.5
Uninstalling semantic-version-2.8.5:
Successfully uninstalled semantic-version-2.8.5
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
frappe-bench 5.22.6 requires semantic-version
=2.8.2, but you have semantic-version 2.10.0 which is incompatible.
Successfully installed semantic-version-2.10.0
(env) frappe@vmi1555591:/frappe-bench$ pip install semantic-version==2.8.5
Collecting semantic-version==2.8.5
Downloading semantic_version-2.8.5-py2.py3-none-any.whl.metadata (10 kB)
Downloading semantic_version-2.8.5-py2.py3-none-any.whl (15 kB)
Installing collected packages: semantic-version
Attempting uninstall: semantic-version
Found existing installation: semantic-version 2.10.0
Uninstalling semantic-version-2.10.0:
Successfully uninstalled semantic-version-2.10.0
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
frappe 14.79.1 requires semantic-version
=2.10.0, but you have semantic-version 2.8.5 which is incompatible.
Successfully installed semantic-version-2.8.5

Module

accounts, stock, buying, selling, manufacturing

Version

(env) frappe@vmi1555591:~/frappe-bench$ bench version
erpnext 14.72.0
frappe 14.79.1
hrms 14.29.3
payments 0.0.1
posawesome 6.3.0

(env) frappe@vmi1555591:~/frappe-bench$ bench --version
5.22.6

Installation method

manual install

Relevant log output / Stack trace / Full Error Message.

(env) frappe@vmi1555591:~/frappe-bench$ pip install --upgrade frappe-bench
Requirement already satisfied: frappe-bench in ./env/lib/python3.10/site-packages (5.22.6)
Requirement already satisfied: click>=7.0 in ./env/lib/python3.10/site-packages (from frappe-bench) (7.1.2)
Requirement already satisfied: gitpython~=3.1.30 in ./env/lib/python3.10/site-packages (from frappe-bench) (3.1.40)
Requirement already satisfied: honcho in ./env/lib/python3.10/site-packages (from frappe-bench) (1.1.0)
Requirement already satisfied: jinja2~=3.1.3 in ./env/lib/python3.10/site-packages (from frappe-bench) (3.1.4)
Requirement already satisfied: python-crontab~=2.6.0 in ./env/lib/python3.10/site-packages (from frappe-bench) (2.6.0)
Requirement already satisfied: requests in ./env/lib/python3.10/site-packages (from frappe-bench) (2.32.3)
Requirement already satisfied: semantic-version~=2.8.2 in ./env/lib/python3.10/site-packages (from frappe-bench) (2.8.5)
Requirement already satisfied: setuptools>40.9.0 in ./env/lib/python3.10/site-packages (from frappe-bench) (72.2.0)
Requirement already satisfied: tomli in ./env/lib/python3.10/site-packages (from frappe-bench) (2.0.1)
Requirement already satisfied: gitdb<5,>=4.0.1 in ./env/lib/python3.10/site-packages (from gitpython~=3.1.30->frappe-bench) (4.0.11)
Requirement already satisfied: MarkupSafe>=2.0 in ./env/lib/python3.10/site-packages (from jinja2~=3.1.3->frappe-bench) (2.1.3)
Requirement already satisfied: python-dateutil in ./env/lib/python3.10/site-packages (from python-crontab~=2.6.0->frappe-bench) (2.8.1)
Requirement already satisfied: charset-normalizer<4,>=2 in ./env/lib/python3.10/site-packages (from requests->frappe-bench) (3.3.2)
Requirement already satisfied: idna<4,>=2.5 in ./env/lib/python3.10/site-packages (from requests->frappe-bench) (3.6)
Requirement already satisfied: urllib3<3,>=1.21.1 in ./env/lib/python3.10/site-packages (from requests->frappe-bench) (1.26.18)
Requirement already satisfied: certifi>=2017.4.17 in ./env/lib/python3.10/site-packages (from requests->frappe-bench) (2023.11.17)
Requirement already satisfied: smmap<6,>=3.0.1 in ./env/lib/python3.10/site-packages (from gitdb<5,>=4.0.1->gitpython~=3.1.30->frappe-bench) (5.0.1)
Requirement already satisfied: six>=1.5 in ./env/lib/python3.10/site-packages (from python-dateutil->python-crontab~=2.6.0->frappe-bench) (1.16.0)
(env) frappe@vmi1555591:~/frappe-bench$ pip install semantic-version==2.10.0
Collecting semantic-version==2.10.0
  Downloading semantic_version-2.10.0-py2.py3-none-any.whl.metadata (9.7 kB)
Downloading semantic_version-2.10.0-py2.py3-none-any.whl (15 kB)
Installing collected packages: semantic-version
  Attempting uninstall: semantic-version
    Found existing installation: semantic-version 2.8.5
    Uninstalling semantic-version-2.8.5:
      Successfully uninstalled semantic-version-2.8.5
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
frappe-bench 5.22.6 requires semantic-version~=2.8.2, but you have semantic-version 2.10.0 which is incompatible.
Successfully installed semantic-version-2.10.0
(env) frappe@vmi1555591:~/frappe-bench$ pip install semantic-version==2.8.5
Collecting semantic-version==2.8.5
  Downloading semantic_version-2.8.5-py2.py3-none-any.whl.metadata (10 kB)
Downloading semantic_version-2.8.5-py2.py3-none-any.whl (15 kB)
Installing collected packages: semantic-version
  Attempting uninstall: semantic-version
    Found existing installation: semantic-version 2.10.0
    Uninstalling semantic-version-2.10.0:
      Successfully uninstalled semantic-version-2.10.0
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
frappe 14.79.1 requires semantic-version~=2.10.0, but you have semantic-version 2.8.5 which is incompatible.
Successfully installed semantic-version-2.8.5
(env) frappe@vmi1555591:~/frappe-bench$ ^C
(env) frappe@vmi1555591:~/frappe-bench$ ^C
(env) frappe@vmi1555591:~/frappe-bench$ bench version
erpnext 14.72.0
frappe 14.79.1
hrms 14.29.3
payments 0.0.1
posawesome 6.3.0
(env) frappe@vmi1555591:~/frappe-bench$ bench --version
5.22.6
(env) frappe@vmi1555591:~/frappe-bench$
stead.
@abdopcnet abdopcnet added the bug label Aug 14, 2024
@Nihantra-Patel Nihantra-Patel transferred this issue from frappe/erpnext Aug 20, 2024
@akhilnarang
Copy link
Member

Hello,

You don't need frappe-bench installed within the same virtualenv as the bench, frappe-bench would be installed beforehand as that's what creates that virtual environment.

In any case, frappe/bench#1576 will resolve this.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants