Skip to content

Whitespace in Maxima path error #48

@Thomas-164

Description

@Thomas-164

When running the myFirstRCnetwork example the following error occurs:

PS C:\Users\name\myFirstRCnetwork> python .\myFirstRCnetwork.py
Succesfully self-tested the Maxima command.
SLiCAP Version matches with the latest release of SLiCAP on github.
Starting
Sarting Maxima client on port 53118
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.

The problem for this is that maxima is installed in C:\Program Files\ and the whitespace is not correctly handled.

To fix this the following line needs to be changed:

os.system(self.maxima + ' -s ' + str(self.PORT))

By putting quotes around the name the error is solved:

os.system('"' + self.maxima + '" -s ' + str(self.PORT)) 

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