Question:
Hi Yall! So I’m trying to use a package but ran into an issue described on a github issue.
tldr; I ran into an ImportError
on replit. Running the exact same code on PyCharm doesn’t yield the same error (Same Python version). After looking at the package files, I noticed that pip
didn’t install the same file as in replit despite being the same version.
Repl link:
https://replit.com/@CoolDude9000/Package-Testing#main.py
from profanity_check import predict, predict_prob
#^^^ Import error here
print(predict([
'predict() takes an array and a 1 for each string if it is offensive, else 0.',
'**** you',
]))
print(predict_prob([
'predict_prob() takes an array and returns the probability each string is offensive',
'go to ****, you ****',
]))
Any help would be great. Thanks!