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

Syntax error on python when build from source #542

Closed
KuribohG opened this issue Feb 7, 2022 · 1 comment
Closed

Syntax error on python when build from source #542

KuribohG opened this issue Feb 7, 2022 · 1 comment

Comments

@KuribohG
Copy link

KuribohG commented Feb 7, 2022

I followed the instructions in README, and got the following compile error:

[  2%] Built target murmurhash
[  4%] Built target cpprpr
[  6%] Built target _rprUsd_pythonfiles
[  6%] Built target schema_dir
[  7%] Built target rprUsdSchema
[ 25%] Built target rprUsd_headerfiles
[ 50%] Built target rprUsd
[ 58%] Built target _rprUsd
[ 58%] Built target python
[ 76%] Built target hdRpr_headerfiles
[ 77%] Generating files
Traceback (most recent call last):
  File "/home/taichigraphics/RadeonProRenderUSD/pxr/imaging/plugin/hdRpr/python/generateFiles.py", line 15, in <module>
    import generateGeometrySettingFiles
  File "/home/taichigraphics/RadeonProRenderUSD/pxr/imaging/plugin/hdRpr/python/generateGeometrySettingFiles.py", line 15, in <module>
    from houdiniDsGenerator import generate_houdini_ds
  File "/home/taichigraphics/RadeonProRenderUSD/pxr/imaging/plugin/hdRpr/python/houdiniDsGenerator.py", line 64
    encoded_name = hou.encode(f'rpr:{condition_name}')
                                                    ^
SyntaxError: invalid syntax
make[2]: *** [pxr/imaging/plugin/hdRpr/CMakeFiles/hdRpr.dir/build.make:66: pxr/imaging/plugin/hdRpr/config.h] Error 1
make[1]: *** [CMakeFiles/Makefile2:665: pxr/imaging/plugin/hdRpr/CMakeFiles/hdRpr.dir/all] Error 2
make: *** [Makefile:141: all] Error 2

I'm using python 3.8.10, and my OS is Ubuntu 20.04. How should I fix this?

@KuribohG
Copy link
Author

KuribohG commented Feb 7, 2022

This magically solved after I reinstall my Linux...

@KuribohG KuribohG closed this as completed Feb 7, 2022
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

No branches or pull requests

1 participant