Visual Studio Python Extension Smartsheet API Not Working

Options

My Python environment is handling the Smartsheet API Token just fine. This is great news!

Python Code_20240517 @ 0534 PM EDT.jpg

But, my Visual Studio with Python extension is erroring out. Any suggestions?

Visual Studio Python Code_20240517 @ 0630 PM EDT.jpg

Erin Horiuchi Green, MBA, LSSYB, PSMI
Process Manager
Syneos Health

Please kindly like ❤️, upvote ⬆️ and/or mark ✅ any of my contributions that have provided value.

Core App and Project Managment Certified 🚀

Answers

  • jmyzk_cloudsmart_jp
    jmyzk_cloudsmart_jp Community Champion

    Hi @Erin Horiuchi Green

    My vs code in chromebook linux works fine.

    In your terminal, you may want to try one of these;

    Try reinstalling the package;

    pip uninstall smartsheet-python-sdk
    pip install smartsheet-python-sdk

    Or, try upgrading the package;

    pip install --upgrade smartsheet-python-sdk

    image.png

    For quick testing of the Smartsheet API, I use Google Golab.

    https://colab.research.google.com/

  • I believe that this is happening because you have a file named smartsheet.py and your import line is trying to import that file instead of what you are really trying to import. I suspect that because it was happening to me. Delete that file or rename it.

    See is that helps.

  • Erin Horiuchi Green
    Erin Horiuchi Green ✭✭✭✭✭✭

    @jmyzk_cloudsmart_jp Apologies as I got this all resolved. I ended up uninstalling and reinstalling everything.

    Erin Horiuchi Green, MBA, LSSYB, PSMI
    Process Manager
    Syneos Health

    Please kindly like ❤️, upvote ⬆️ and/or mark ✅ any of my contributions that have provided value.

    Core App and Project Managment Certified 🚀

  • Erin Horiuchi Green
    Erin Horiuchi Green ✭✭✭✭✭✭

    @Blair_SK Apologies as I got this all resolved. I ended up uninstalling and reinstalling everything.

    Erin Horiuchi Green, MBA, LSSYB, PSMI
    Process Manager
    Syneos Health

    Please kindly like ❤️, upvote ⬆️ and/or mark ✅ any of my contributions that have provided value.

    Core App and Project Managment Certified 🚀

NEW Smartsheet API Documentation - bookmark the updated link! https://developers.smartsheet.com