TypeError: expected str, bytes or os.PathLike object, not BytesIOTraceback:
File "/opt/render/project/src/.venv/lib/python3.11/site-packages/streamlit/runtime/fragment.py", line 246, in wrapped_fragment result = non_optional_func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/render/project/src/main.py", line 40, in draw_wye_circuit d.save(buf) File "/opt/render/project/src/.venv/lib/python3.11/site-packages/schemdraw/schemdraw.py", line 500, in save self.fig.save(fname, transparent=transparent, dpi=dpi) # type: ignore ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/render/project/src/.venv/lib/python3.11/site-packages/schemdraw/backends/svg.py", line 603, in save ext = os.path.splitext(fname)[1] ^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen posixpath>", line 118, in splitext
submitted by /u/InternalVolcano
[link] [comments]
r/learnpython TypeError: expected str, bytes or os.PathLike object, not BytesIOTraceback: File “/opt/render/project/src/.venv/lib/python3.11/site-packages/streamlit/runtime/fragment.py”, line 246, in wrapped_fragment result = non_optional_func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/opt/render/project/src/main.py”, line 40, in draw_wye_circuit d.save(buf) File “/opt/render/project/src/.venv/lib/python3.11/site-packages/schemdraw/schemdraw.py”, line 500, in save self.fig.save(fname, transparent=transparent, dpi=dpi) # type: ignore ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/opt/render/project/src/.venv/lib/python3.11/site-packages/schemdraw/backends/svg.py”, line 603, in save ext = os.path.splitext(fname)[1] ^^^^^^^^^^^^^^^^^^^^^^^ File “<frozen posixpath>”, line 118, in splitext submitted by /u/InternalVolcano [link] [comments]
TypeError: expected str, bytes or os.PathLike object, not BytesIOTraceback:
File "/opt/render/project/src/.venv/lib/python3.11/site-packages/streamlit/runtime/fragment.py", line 246, in wrapped_fragment result = non_optional_func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/render/project/src/main.py", line 40, in draw_wye_circuit d.save(buf) File "/opt/render/project/src/.venv/lib/python3.11/site-packages/schemdraw/schemdraw.py", line 500, in save self.fig.save(fname, transparent=transparent, dpi=dpi) # type: ignore ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/render/project/src/.venv/lib/python3.11/site-packages/schemdraw/backends/svg.py", line 603, in save ext = os.path.splitext(fname)[1] ^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen posixpath>", line 118, in splitext
submitted by /u/InternalVolcano
[link] [comments]