Skip to content

module not found #134959

Not planned
Not planned
@sandhyasneha

Description

@sandhyasneha

Bug report

Bug description:

# Add a code block here, if required
```import os
import streamlit as st
import openai

# Load OpenAI API key from environment
openai.api_key = os.getenv("OPENAI_API_KEY")

# UI setup
st.set_page_config(page_title="IT Project Planner", page_icon="🛠️")
st.title("🛠️ IT Project Planner")

# Input area
user_input = st.text_area("Describe your project:")

# Generate plan
if st.button("Generate Plan") and user_input:
    with st.spinner("Generating plan..."):
        try:
            response = openai.ChatCompletion.create(
                model="gpt-3.5-turbo",
                messages=[
                    {"role": "system", "content": "You are an expert IT project manager."},
                    {"role": "user", "content": user_input}
                ],
                max_tokens=800
            )
            plan = response.choices[0].message.content
            st.markdown(plan)
        except Exception as e:
            st.error(f"Error: {e}")



### CPython versions tested on:

3.11

### Operating systems tested on:

Windows

Activity

JelleZijlstra

JelleZijlstra commented on May 31, 2025

@JelleZijlstra
Member

It's not clear what the issue is, but it's almost certainly not a bug in CPython. Make sure you install every module you use (e.g. using pip or uv), and use forums like https://discuss.python.org/c/help/7 if you need more help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      module not found · Issue #134959 · python/cpython

      Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

      Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant