I’ve encountered a problem with a script that has run fine before today:
AttributeError: partially initialized module 'logging' has no attribute 'getLogger' (most likely due to a circular import)
(traced back to an attempt to import requests)
Further digging reveals that when attempting to create new Repls and installing requests through package manager, I get this in console:
--> poetry add 'requests 2.31.0'
Using version ^2.31.0 for requests
Could not find a matching version of package 2.31.0
exit status 1
Plan (Replit Core):
The reason for it is that it treats
2.31.0 as 2 different modules (
@NuclearPasta0 Can uou confirm this?).
I think that you can try entering this line below
entrypoint in the
disableGuessImports = true
Then install the modules manually.
Hope this helps!
Disabling import guessing will most likely not work since OP was already manually installing it.
Instead, use shell commands or auto guessing to install
requests, as the Packages tool is currently broken.
poetry add requests
This topic is a duplicate of:
When I try to install a package via the Packages tool, it fails with Could not find a matching version of package <version>, for any python package that I try to install. The <version> is what version is listed in the search, and the version specified in the install command.
Install the package, without errors.
After the add command in the shell, it gives this error message:
--> poetry add 'replit 3.5.0'
Using version ^3.5.0 for repl…
(original error is also already