Pip env install instructions not working on Mac (toml and Plotly not found)

Hi so I launched my local Streamlit app fine but when I started using Plotly it kept coming up with the ‘Plotly module not found’ error

I used a requirements.txt file which still didn’t work, then installed everything using pipenv as in the installation instructions but that still didn’t work. I haven’t done much with packages/environments before though so it’s possible I’ve made a mistake

But now I’ve got another error with the toml file

File "/Users/joebloggs/.local/share/virtualenvs/EdgecumbeAutomation-QWsh26-A/lib/python3.9/site-packages/toml/decoder.py", line 213, in loads
    raise TomlDecodeError("Key name found without value."

I’ve tried deleting toml files but that still isn’t working - I’m very confused now! I also want the app to be able to be used by people on other computers so want to make sure I find a solution that works for other people too

But otherwise loving Streamlit so thanks guys!

1 Like

Hi @awest96 and welcome to the Streamlit community! :streamlit:

As for the error with the toml file, it sounds like there may be a problem with the formatting of the file.

Make sure that the key-value pairs in the file are properly formatted, with a key and a value separated by an equals sign (e.g. key = value).

I hope these suggestions help. Let me know if you need any more help or have any other questions.

Best,
Charly

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.