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

bootstrap.sh: Clear PYTHONPATH for virtualenv in install_selenium. #5678

Merged
merged 1 commit into from
Jan 10, 2020

Conversation

enisoc
Copy link
Member

@enisoc enisoc commented Jan 9, 2020

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

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>
@enisoc enisoc requested a review from deepthi January 9, 2020 23:51
@enisoc enisoc requested a review from sougou as a code owner January 9, 2020 23:51
@deepthi deepthi requested review from morgo and removed request for deepthi January 10, 2020 02:02
Copy link
Contributor

@morgo morgo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM: most users will not be using python now. We've removed it from the contributing guide, since make tools skips python.

@enisoc enisoc merged commit a6fcbc8 into vitessio:master Jan 10, 2020
@enisoc enisoc deleted the bootstrap-selenium branch January 10, 2020 05:04
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