Skip to content

Console mode is not available on Windows #56

@sowdm

Description

@sowdm

I just pip installed pycsp3 to a Windows 11 machine that has Python 3.12. I ran the following from the Quick Start Guide at the command line and got the following error:

>> from pycsp3 import *
>> n = 4
>> R, G, B = colors = 0, 1, 2
>> x = VarArray(size=n, dom=colors)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\matth\.conda\envs\cp\Lib\site-packages\pycsp3\functions.py", line 191, in VarArray
    ext_name = extract_declaration_for("VarArray")
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\matth\.conda\envs\cp\Lib\site-packages\pycsp3\tools\inspector.py", line 312, in extract_declaration_for
    code = list(reversed(_extract_code(function_name)))
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\matth\.conda\envs\cp\Lib\site-packages\pycsp3\tools\inspector.py", line 105, in _extract_code
    assert False, "Console mode is not available on Windows"
           ^^^^^
AssertionError: Console mode is not available on Windows

Can I not run pycsp3 from the Console on Windows? If so, how am I supposed to run it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions