Open PremBharwani opened 1 year ago
One thing I did is creating a function like such:
def replaceVersionedLibraryForGenericVersion(requirementsFilePath, libraryName) -> None:
requirementsFile = open(requirementsFilePath, "r")
editedRequirementsText = []
libCheckString = libraryName + "=="
for line in requirementsFile:
if libCheckString in line:
editedRequirementsText.append(libraryName + "\n")
else:
editedRequirementsText.append(line)
requirementsFile.close()
newRequirementsFile = open(requirementsFilePath, "w")
newRequirementsFile.writelines(editedRequirementsText)
newRequirementsFile.close()
And then you just have to call
replaceVersionedLibraryForGenericVersion("ByteTrack/requirements.txt", "onnx")
replaceVersionedLibraryForGenericVersion("ByteTrack/requirements.txt", "onnxruntime")
Right after you clone the repo
It is not a great fix and ideally those requirement versions should be updated, but this will allow your cells to continue running without extra manual steps.
ERROR: Could not find a version that satisfies the requirement onnxruntime==1.13.1 (from versions: 1.17.0, 1.17.1, 1.17.3, 1.18.0, 1.18.1) ERROR: No matching distribution found for onnxruntime==1.13.1
Does the latest version of all the libraries works?
Description:
The following error shows up while installing the dependencies:
Proposed solution:
The currently mentioned dependency version for
onnx
,onnxruntime
are1.8.1
&1.8.0
& as mentioned here onnx==1.8.1 is an old version so it does not provide prebuilt wheel for new Python version like Python 3.9 and above.So updating the
requirements.txt
to the following does the trick: