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

Add troubleshoot for installation and certification error #411

Merged
merged 2 commits into from
Nov 8, 2023
Merged

Add troubleshoot for installation and certification error #411

merged 2 commits into from
Nov 8, 2023

Conversation

Krissy510
Copy link
Contributor

@Krissy510 Krissy510 commented Nov 7, 2023

I tried to install PyTerrier on macOS (M1) and Ubuntu 22.04 (Docker). However, both installations failed because pyautocorpus could not find pcre. After installing pcre I can install PyTerrier successfully.

After finished installing, for macOS there's an error that will cause due to a certification error. To solve this issue the user will need to install a certificate which is located in the Python folder.

These solutions and errors were not presented in the current documentation which is why I suggest adding a troubleshooting guide in case any users have the same issue.

@cmacdonald
Copy link
Contributor

Thanks @Krissy510 - do you have a copy of the exceptions you saw.

seanmacavaney/pyautocorpus#3 seems related @seanmacavaney

@Krissy510
Copy link
Contributor Author

Krissy510 commented Nov 8, 2023

Thanks @Krissy510 - do you have a copy of the exceptions you saw.

seanmacavaney/pyautocorpus#3 seems related @seanmacavaney

Yes, I do. This example is what I got from trying to install PyTerrier on Ubuntu 22.04. This also happened on macOS.
error message

@cmacdonald
Copy link
Contributor

Yes, we dont have MacM1 builds for pyautocorpus (blame github :-( )
For ubuntu, I would have expected the build binaries to have worked, as there is a Python 3.10 manylinux build - see https://pypi.org/project/pyautocorpus/0.1.12/#files

@Krissy510
Copy link
Contributor Author

Yes, we dont have MacM1 builds for pyautocorpus (blame github :-( ) For ubuntu, I would have expected the build binaries to have worked, as there is a Python 3.10 manylinux build - see https://pypi.org/project/pyautocorpus/0.1.12/#files

I understood that, but the point of this pull request is to add a section to give a guide to troubleshooting issues that are presented. After installing pcre I was able to install it successfully. In addition, for the certification error, I think it is a good idea to write this down in the installation guide for macOS users.

@cmacdonald
Copy link
Contributor

Yes, I understood that, and we appreciate the PR. We may merge, but at least for the pyautocorpus there may be an underlying problem.

@cmacdonald
Copy link
Contributor

@seanmacavaney pointed out that your arch is M1 even for Ubuntu, hence explaining why pyautocorpus needs compiled. We may drop pyautocorpus as a required dependency in ir_datasets, but thats for the future.

@cmacdonald cmacdonald merged commit 696a827 into terrier-org:master Nov 8, 2023
13 checks passed
@cmacdonald
Copy link
Contributor

Merged, thanks @Krissy510 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants