Replit UPM installed module redberry disables package management

Problem description:

  1. Replit UPM adds python module “redberry” if a function is imported from a “models” folder.
  2. The “redberry” module contains an error which disables all package management. I cannot add modules, or remove modules (including redberry), using poetry or the Packages tool in the replit workspace.
  3. This occurs even when the following configuration is added to the .replit file:
ignoredPackages = ["redberry"]

  packageSearch = false
  guessImports = false

Expected behavior:
Replit should not attempt to install redberry, especially not if I’ve explicitly turned off UPM packageSearch and guessImports in the workspace configuration.

Actual behavior:
I cannot create and use a models folder without this error occurring and shutting down all package management in my repl.

Steps to reproduce:

  1. Create Python repl
  2. Create “models” folder
  3. Create python script within “models” folder
  4. Create function within “”
  5. Import and call function in
  6. Run

Bug appears at this link:

OS: Brave
Device (Android, iOS, NA leave blank): iOS
Plan (Free, Hacker, Pro Plan): Free with AI upgrade

Hi @jrichey17 , welcome to the forums!
Delete the snippet your provided, and put disableGuessImports=true to the top (under entrypoint), not under anything like [nix] or [deployments].

Hope this helps!


Thanks for the help Nate! This seems to have done the trick.

@Replit, the packager docs should be updated to reflect this bug fix.

1 Like

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