Giter Club home page Giter Club logo

Comments (2)

baryluk avatar baryluk commented on June 19, 2024

It looks like the scons on recent Ubuntu and Debian is using now Python3 for scons itself and for SConstruct files.

$ head -1 `which scons`
#! /usr/bin/python3

And that leads to some issues:

scons -C /home/user/RCP/Build/Linux/../../Build/Linux CXL_prefix=/home/user/RCP/Build/Linux/../../Output CXL_build_type=static 
scons: Entering directory `/home/user/RCP/Build/Linux'
scons: Reading SConscript files ...
  File "/home/user/RCP/Build/Linux/SConstruct", line 97

    print CXL_env.Dump()

          ^

SyntaxError: invalid syntax

Once you fix that there are more issues:

scons -C /home/user/RCP/Build/Linux/../../Build/Linux CXL_prefix=/home/user/RCP/Build/Linux/../../Output CXL_build_type=static 
scons: Entering directory `/home/user/RCP/Build/Linux'
scons: Reading SConscript files ...
  File "/home/user/RCP/Build/Linux/CXL_init.py", line 18

    print "Error: Could not import EnumVariable"

          ^

SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Error: Could not import EnumVariable")?

It looks like there is a lot of Python2 stuff in this project, and that is not good, because Python2 is dead, deprecated and no longer maintained. In Debian and Ubuntu a lot of Python2 packages are already removed from the distribution.

from radeon_compute_profiler.

matthiasdiener avatar matthiasdiener commented on June 19, 2024

I've created a pull request (#39) that should fix this issue.

from radeon_compute_profiler.

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.