-
Notifications
You must be signed in to change notification settings - Fork 128
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
Some scripts (plot_spherical.py, cpplint.py, ...) are incompatible with Python 3 #169
Comments
I made sure that all Since we document in the Wiki that both are supported, we should either update the documentation or extend these scripts to Python 3 if it is straightforward. Low priority, though. |
@chaochinyang correctly pointed out to me that the C++ style linting script provided by Google,
points to a Python 3 distribution, since the script will check the first file piped to program,
Nevertheless, the current "silent failure" should be addressed. Some options:
Info on the copy of
try:
xrange # Python 2
except NameError:
xrange = range # Python 3 it does not claim compatibility with Python 3 at this time (although there is little-to-no documentation of this, see google/styleguide#277).
|
- Not compatible with Python 3, see #169. Follow PEP 394 and reserve "python" for scripts that are compatible with both Py2 and Py3. - Remove artificial C++ style error in field.hpp - This is the first change from upstream cpplint.py google/styleguide@1b206ee Calling "python -u" in cpplint_athena.sh has fixed the previously jumbled stdout and stderr from cpplint.py calls to sys.stdout.write() and sys.stderr.write() in the Jenkins log. However, unbuffered writes may have been an issue with regression test crashes in macOS and on Travis CI (see #47), but it was most likely a red herring due to the known O_NONBLOCK bug in MPICH's mpirun(). Monitor this. See if Jenkins log now contains pure output from git ls-tree command.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Bug report
The current plotting script
/vis/python/plot_spherical.py
only works with Python 2. When using Python 3, it reports the following error message:(need to test the other scripts in
vis/python/
for compatibility)Version info
The text was updated successfully, but these errors were encountered: