Giter Club home page Giter Club logo

Comments (5)

antiagainst avatar antiagainst commented on July 24, 2024

@bschindler: The script is using python2 syntax right now. The print error results from syntax difference between python2 and python3.

If you have python2 installed, you may want to change the first line of utils/update_build_version.py to #!/usr/bin/env python2 or symlink your system Python to python2.

Sorry for the inconvenience, we'll fix the issue.

from spirv-tools.

bschindler avatar bschindler commented on July 24, 2024

That does explain it. Using python2 did work here. Thanks for the response

from spirv-tools.

dekimir avatar dekimir commented on July 24, 2024

Let's keep this open and make the script work for both Python 2 and Python 3.

from spirv-tools.

a2flo avatar a2flo commented on July 24, 2024

Note that changing the first line of utils/update_build_version.py to python2 doesn't work when cmake finds python3 and uses it to call the script:
https://github.com/KhronosGroup/SPIRV-Tools/blob/master/CMakeLists.txt#L119 ->
${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/utils/update_build_version.py

Doing a set(Python_ADDITIONAL_VERSIONS 2.7 2.6 2.5) right before find_host_package(PythonInterp) makes it properly use python 2.x (I don't know what the minimum python requirement should be here).
Tested this on latest Arch Linux (which defaults to python3 otherwise) and OS X.

from spirv-tools.

antiagainst avatar antiagainst commented on July 24, 2024

Right now the script should run under both Python2 & Python3.

from spirv-tools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.