Ask coding questions

← Back to all posts
Strange ERROR
andreibulibasa (2)

Heloo!,

I don't know what is hapening but I see to get an error that has nothing to do with my code in "Repl.it".

So, please HELP!

My code:
def sorted_LLIST(l2d):
sortedlist = []
for row in (l2d):
row.sort(reverse=True)
return l2d

print(
sorted_LLIST([[4, 2, 3, 4], [0, 5, 3, 2], [-5, -2, 13, 4],
[12, 11, 30, -20]]))

Repl response:
epl.it: Installing fresh packages

Collecting func_STR_ins_or_del
ERROR: Could not find a version that satisfies the requirement func_STR_ins_or_del (from versions: none)
ERROR: No matching distribution found for func_STR_ins_or_del

Repl.it: package installation failed!

Answered by joshhies (138) [earned 5 cycles]
View Answer
Commentshotnewtop
joshhies (138)

it just works? If you created a python 3 repl then it should work.

(upvote if this is helpful)

andreibulibasa (2)

@joshhies - Thanks for your response!
I new that this is a solution, but I had many project file in my file tree, with parts of code I wanted to reuse and I waned to still have it in my tree.
However I found some sort of solve and posted it in a comment for "@liltaco"

joshhies (138)

@andreibulibasa cool, hope the problem have been fixed.

liltaco (51)

I don't know what you did, but that code snippet works.
https://repl.it/@liltaco/test-for-repl-talk
it just does.

andreibulibasa (2)

@liltaco - Thanks for your response!
Apaprently the "main.py" was forced in project mode. I not sure why, but I believe it was because i called function named "func_STR_ins_or_del" from a file that had a .py extension like "whatever_project.py"
I read in the help of repl.it that calling a .py fille will force your main.py to go in project mode.
To go back in Eval Mode I had to delete all the extensions of my project from the file tree.
According to repl.it help docs "In eval mode, you can evaluate code from the console (including values declared in your program)."