-
Notifications
You must be signed in to change notification settings - Fork 32
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 install error on windows 10, possible hardcoded path #32
Comments
Hi, in
Also, in case it can help anyone else, I got another problem: I simply copy paste rc.exe and rc.dll from |
Happy to help. Something like:
|
I created the Windows build for pytrec_eval. I'm not sure where you error has some from However, I'm investigating Windows binary distributions. This works for me on Python 3.8 on Windows. |
Using our fork, |
Thank you! JonathanSamelson and Alkouf. I got exactly the same error and did just like you. |
also having issues with windows 10 python 3.9. Unfortunately, package is a dependency for other packages.... Any other suggestions? |
@christopherfeld -- have you tried instaling the (The fork is imported as as pytrec_eval, so no changes to code are required to use these builds.) |
Yes, I was able to get that fork to install. However, when I pip install for the key package I want (pip install gdl) it still forces me over to this repo. |
Perhaps you could submit a PR to ask them to change to the Windows compatible fork then? |
Great idea! Will do, thanks all! Update for posterity: I tried running python 3.6-3.9 to no avail. I was able to take the package yml (gpl for my use case) with some light edit and do individual installs for the Beirs and pytrec-eval dependencies (used pytrec-eval-terrier and a conda no-deps flag on the Beirs build). |
Hi, |
@LukasKriesch What is the problem you are experiencing? the pytrec-eval-terrier fork should work fine. |
@cmacdonald the fork works fine for me. but when i want to install the key package (also gpl) it still installs the standard pytrec-eval version and then crashes. |
I made a fork of GPL to change the underlying pytrec_eval You can try to install it yourself Craig |
Thanks @cmacdonald I installed the fork but still facing the same issue as the standard version of pytrec_eval is installed even though the dependencies are changed in the yaml file |
I cant support gpl. You can try to update my fork. |
Thank you very much! |
Found a solution to the "pytrec_eval" error problem
This worked for me in Amazon SageMaker |
@JoTeq-Work Can you make a PR to the beir repo? We (@seanmacavaney and I) maintain pytrec-eval-terrier (with binary releases) while this repo is not maintained, and there are no binary releases. |
Hello,
I got a series of errors like this:
File "C:\Users\myusername\AppData\Local\Continuum\anaconda3\lib\distutils\util.py", line 111, in convert_path raise ValueError("path '%s' cannot be absolute" % pathname) ValueError: path '/Users/cvangysel/Projects/pytrec_eval/trec_eval/convert_zscores.c' cannot be absolute
when I ran
pip install pytrec-eval
It seems that the absolute path is hardcoded somewhere.
I modified the util.py file to ignore the prefix '/Users/cvangysel/Projects/pytrec_eval/trec_eval/' and the installation seems to be successful (the example on README.md ran correctly).
The text was updated successfully, but these errors were encountered: