bootstrap.sh: Clear PYTHONPATH for virtualenv in install_selenium.#5678
Merged
enisoc merged 1 commit intovitessio:masterfrom Jan 10, 2020
Merged
bootstrap.sh: Clear PYTHONPATH for virtualenv in install_selenium.#5678enisoc merged 1 commit intovitessio:masterfrom
enisoc merged 1 commit intovitessio:masterfrom
Conversation
This fixes the following error for me:
```
installing Selenium latest
Fatal Python error: initsite: Failed to import the site module
Traceback (most recent call last):
File "/home/enisoc/vt/src/vitess.io/vitess/dist/py-mock-1.0.1/lib/python2.7/site-packages/site.py", line 73, in <module>
__boot()
File "/home/enisoc/vt/src/vitess.io/vitess/dist/py-mock-1.0.1/lib/python2.7/site-packages/site.py", line 26, in __boot
import imp # Avoid import loop in Python 3
File "/usr/lib/python3.7/imp.py", line 27, in <module>
import tokenize
File "/usr/lib/python3.7/tokenize.py", line 33, in <module>
import re
File "/usr/lib/python3.7/re.py", line 143, in <module>
class RegexFlag(enum.IntFlag):
AttributeError: module 'enum' has no attribute 'IntFlag'
ERROR: Selenium build failed
```
Signed-off-by: Anthony Yeh <enisoc@planetscale.com>
morgo
approved these changes
Jan 10, 2020
Contributor
morgo
left a comment
There was a problem hiding this comment.
LGTM: most users will not be using python now. We've removed it from the contributing guide, since make tools skips python.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This fixes the following error for me: