Skip to content

Failed to build on Windows #1794

@no111u3

Description

@no111u3

I try to build by manual on README.md, but it failed on build dependency (internal RustPython crates).

Than I run cargo run demo.py I got an error described onward:

   ...
   Compiling rustpython-bytecode v0.1.1 (C:\<hiden>\RustPython\bytecode)
   Compiling rustpython-parser v0.1.1 (C:\<hiden>\RustPython\parser)
   Compiling rustpython-compiler v0.1.1 (C:\<hiden>\RustPython\compiler)
   Compiling rustpython-derive v0.1.1 (C:\<hiden>\RustPython\derive)
error: Python compile error from Lib/python_builtins/_frozen_importlib.py: Got unexpected token '.' at line 1 column 1
  --> vm\src\frozen.rs:21:18
   |
21 |     ext_modules!(dir = "Lib/python_builtins/");
   |     -------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^-- in this macro invocation

error: Python compile error from Lib/core_modules/copyreg.py: Got unexpected token '.' at line 1 column 1
  --> vm\src\frozen.rs:27:22
   |
27 |         ext_modules!(dir = "Lib/core_modules/");
   |         -------------^^^^^^^^^^^^^^^^^^^^^^^^^-- in this macro invocation

error: aborting due to 2 previous errors

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions