0

I am trying to install sass in a project which is a project of a virtual environment. I am very new to python or virtual env.

so I was going through this article and following steps.

I did the following first step and now I can see pyScss inside Lib folder which is inside venv folder

pip install pyScss

now the following steps not working.

python -m scss < reporting/assets/style.scss

it throws this error

At line:1 char:16
+ python -m scss < reporting/assets/style.scss
+                ~
The '<' operator is reserved for future use.
    + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : RedirectionNotSupported

from this answer I tried replacing < with | which also throws other error.

I am quite not understanding what should I do here. even this seems to the problem related with the operating system or anything, my goal is to understand sass implementation in the virtual-env project.

I would appreciate anyone helps me to fix the issue or showing me any other guidence.

Thanks.

sinoroc
  • 18,409
  • 2
  • 39
  • 70
Sandesh Sapkota
  • 747
  • 1
  • 6
  • 18

1 Answers1

0

You need to escape < with "`". < is a special character reserved for STDIN therefore when STDIN is not being used you will get that error. Try

python -m scss `< reporting/assets/style.scss 

or

reporting/assets/style.scss | python -m scss
Nico Nekoru
  • 2,840
  • 2
  • 17
  • 38