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

Failed to build on my Windows box #215

Open
rodrigovaras opened this issue Mar 21, 2023 · 1 comment
Open

Failed to build on my Windows box #215

rodrigovaras opened this issue Mar 21, 2023 · 1 comment

Comments

@rodrigovaras
Copy link

Followed the instructions and get the following error:
D:\github\cppcoro>cake.bat release=debug architecture=x64 lib/build.cake
Traceback (most recent call last):
File "D:\github\cppcoro\tools\cake\src\run.py", line 17, in
cake.main.execute()
File "D:\github\cppcoro\tools\cake\src\cake\main.py", line 22, in execute
import cake.runner
File "D:\github\cppcoro\tools\cake\src\cake\runner.py", line 144
def new_os_open(filename, flag, mode=0777):
^
SyntaxError: leading zeros in decimal integer literals are not permitted; use an 0o prefix for octal integers

python --version
Python 3.11.1

Anything missing ?

@donno
Copy link

donno commented Apr 26, 2024

The bundled version of Cake is written for Python 2, where Python 3 support is meant to come during the build process of the Cake package (i.e when the setup.py is built) which runs 2to3 over the code base.

As its being pulled in merely as a sub-module it means its expecting Python 2.7 is used.

For Windows, you may wish to use the vcpkg instead, which will in turn use CMake (and it has its own CMakeLists.txt).

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

2 participants