Deployment Failing: Error Persists with Old Repo Name After Renaming (Could not find root package)

Hello Streamlit Community,

I’m facing a persistent issue while deploying my app on Streamlit Cloud and I’m hoping someone can help diagnose it, as standard troubleshooting steps haven’t worked.

The Problem:

My app deployment fails during the dependency processing stage with the error:

error: Could not find root package `teachers-arrangement-system`
[Timestamp] ❗️ installer returned a non-zero exit code
[Timestamp] ❗️ Error during processing dependencies! Please fix the error and push an update, or try restarting the app.

content_copydownload

Use code with caution.

Context & Steps Taken:

  1. Initial Error: I first encountered an error related to main.py not being found. I corrected my repository structure so that main.py is now at the root level.
  • GitHub Repo: https://github.com/rishi9520/teacherarrangement (Initially named teachers-arrangement-system)

  • main.py is confirmed to be at the root.

  • requirements.txt is also at the root, and I’ve fixed a duplicate entry (streamlit-authenticator).

  1. Persistent Dependency Error: After fixing the file path, the Could not find root package ‘teachers-arrangement-system’ error started appearing.

  2. Repository Renaming: Suspecting the hyphen (-) in the original repository name (teachers-arrangement-system) might be causing issues with the build process, I renamed the repository on GitHub to teacherarrangement.

  3. Re-deployment:

  • I deleted the old app on Streamlit Cloud associated with the old repository name.

  • I created a new app deployment, explicitly selecting the new repository name (teacherarrangement).

  • Deployment settings used:

    • Repository: rishi9520/teacherarrangement

    • Branch: main

    • Main file path: main.py

    • Python Version: Tried 3.12, also tried 3.11 on re-deploy.

The Core Issue:

Despite renaming the repository, deleting the old app, and deploying afresh using the new repository name (teacherarrangement), the deployment logs still show the error referencing the old repository name : Could not find root package ‘teachers-arrangement-system’.

Here are the relevant logs from the latest attempt (using the new repo name teacherarrangement):

[Timestamp] 🚀 Starting up repository: 'teacherarrangement', branch: 'main', main module: 'main.py'
[Timestamp] 🐙 Cloning repository...
[Timestamp] 🐙 Cloning into '/mount/src/teacherarrangement'...
[Timestamp] 🐙 Cloned repository!
[Timestamp] 🐙 Pulling code changes from Github...
[Timestamp] 📦 Processing dependencies...
error: Could not find root package `teachers-arrangement-system`  # <-- Still referencing the OLD name!
[Timestamp] ❗️ installer returned a non-zero exit code
[Timestamp] ❗️ Error during processing dependencies! Please fix the error and push an update, or try restarting the app.

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