Suggestion: Improve Error/Warning message when a local module name conflicts with a pypi module name
I am new to PyCharm. And I decided to test some python detais that I had not learned yet. I followed and Youtube video on it and decided that I would use Pycharm to type the same example on my PC. (The video author also used PyCharm).
After done typyng (and fixing some typos) my module still would't run.
To make my point short, the video example (4 yeasrs ago) runned fine on PyCharm. My did not. I took a couple hours to discover that the simple modules names (in a lower directory level) are now used/published in pypi. (modules: constants, email - but I was not importing those from pypi). This is was the only the reason my example was not running. Changing my modules names to ‘my_constants’ and ‘my_email’ fixed the problem
There was no real internal code error but a potential external conflict risk. Nevetheless I agree with PyCHarm that potencial conflicts shoud be prevented in new code. But the Warning message should be clear and address this . I was getting an error message. Not a warning.
I am suggesting JetBrain/PyCharm to improve the error/Warning messages in cases like this.
请先登录再写评论。
Hi, Csottom ,
We have a corresponding feature request on our portal PY-43957. Please vote for the issue to receive updates on its status. To learn more about using YouTrack, please refer to this article.