quarto-ext / shinylive

Quarto extension to embed Shinylive for Python applications
https://quarto-ext.github.io/shinylive/
MIT License
141 stars 7 forks source link

Quarto breaks if "PYTHONINSPECT=1" #17

Closed Rotendahl closed 11 months ago

Rotendahl commented 11 months ago

When setting up this awesome extension, and installing everything. I found that my setup broke with the error:

SystemExit: 0
ERROR: Error running 'shinylive' command. Perhaps you need to install the 'shinylive' Python package?

I determined that the error occurs when the quarto environment has PYTHONINSPECT=1 as suggested in the docs

Removing this caused everything to work.

No clue why this happens, but posting workaround for the benefits of others.

wch commented 11 months ago

Interesting -- I'm able to reproduce the same problem. I wonder if it has a different PATH.

wch commented 11 months ago

Thanks for reporting this. I think this was just a bad choice of examples on the documentation page, and the example should be changed.. See https://github.com/quarto-dev/quarto-cli/issues/6606 for more information.

Rotendahl commented 11 months ago

Nice catch in https://github.com/quarto-dev/quarto-cli/issues/6606, I'll close this and remove the inspect thing from my env.