Closed janheinrichmerker closed 3 years ago
Thanks for pointing this out. The master
branch now uses tensorflow 2.4, which resolves the dependency issue.
We'll make a release soon once other changes are ready. In the meantime, it should work after making this change to your Pipfile:
[packages]
capreolus = { git = 'https://github.com/capreolus-ir/capreolus.git', editable = true }
Thanks for the quick workaround! It didn't work for me, but the following did:
[packages.capreolus]
git = "https://github.com/capreolus-ir/capreolus.git"
Looking forward to the next release!
This should be fixed in v0.2.6. Please let me know if you run into problems with it!
Thanks @andrewyates, the version conflict is resolved now.
Though, unfortunately, now another issue with Pipenv occurs.
Given the same Pipfile
as above, I get the following output:
Creating a virtualenv for this project…
Using /usr/bin/python3 (3.8.5) to create virtualenv…
⠋created virtual environment CPython3.8.5.final.0-64 in 371ms
creator CPython3Posix(dest=/home/heinrich/.local/share/virtualenvs/foo-bar-kSvoetdG, clear=False, global=False)
seeder FromAppData(download=False, pip=latest, setuptools=latest, pep517=latest, packaging=latest, chardet=latest, appdirs=latest, ipaddr=latest, requests=latest, contextlib2=latest, distlib=latest, distro=latest, certifi=latest, idna=latest, pkg_resources=latest, msgpack=latest, lockfile=latest, retrying=latest, pyparsing=latest, webencodings=latest, html5lib=latest, pytoml=latest, urllib3=latest, six=latest, wheel=latest, CacheControl=latest, progress=latest, colorama=latest, via=copy, app_data_dir=/home/heinrich/.local/share/virtualenv/seed-app-data/v1.0.1.debian)
activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator
Virtualenv location: /home/heinrich/.local/share/virtualenvs/foo-bar-kSvoetdG
Pipfile.lock not found, creating…
Locking [dev-packages] dependencies…
Locking [packages] dependencies…
epository.get_dependencies(ireq)
File "/usr/lib/python3/dist-packages/pipenv/patched/piptools/repositories/pypi.py", line 174, in get_dependencies
legacy_results = self.get_legacy_dependencies(ireq)
File "/usr/lib/python3/dist-packages/pipenv/patched/piptools/repositories/pypi.py", line 222, in get_legacy_dependencies
result = reqset._prepare_file(self.finder, ireq, ignore_requires_python=True)
File "/usr/lib/python3/dist-packages/pipenv/patched/notpip/req/req_set.py", line 644, in _prepare_file
abstract_dist.prep_for_dist()
File "/usr/lib/python3/dist-packages/pipenv/patched/notpip/req/req_set.py", line 134, in prep_for_dist
self.req_to_install.run_egg_info()
File "/usr/lib/python3/dist-packages/pipenv/vendor/pip9/req/req_install.py", line 435, in run_egg_info
call_subprocess(
File "/usr/lib/python3/dist-packages/pipenv/vendor/pip9/utils/__init__.py", line 705, in call_subprocess
raise InstallationError(
pip9.exceptions.InstallationError: Command "python setup.py egg_info" failed with error code 1 in /tmp/tmpupa_m9dibuild/opencv-python-headless/
Nevermind, this seems to be an issue with Pipenv, not Capreolus. Installing Capreolus with a fresh installation of Pipenv works fine. Thanks for the quick release!
Great, glad to see this is working!
I normally use Conda and am only vaguely familiar with Pipenv, but I'm thinking it's worth adding a Pipfile and maybe lock file to the repo. I'll look into this soon, and any tips or suggestions about using Capreolus with Pipenv would be welcome. At the very least we can have a GH Action verify that pip lock
succeeds with the current dependencies.
When installing via Pipenv, locking fails because of a version conflict for
tensorflow
.Sample
Pipfile
:Output of
pip lock
:Output of
pip graph
afterpipenv install --skip-lock
: