Python Forum
Nameparser - Traceback error - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Nameparser - Traceback error (/thread-24646.html)



Nameparser - Traceback error - tjnichols - Feb-24-2020

Greetings!

I'm getting the following error when I try to run a python file based on data in an Excel spreadsheet. I have installed the modules under C:\Users\Spec User\.

Traceback (most recent call last):
File "W:\DATABASES\2007 databases\CACS\SOURCE\BOWCDS.py", line 4, in <module>
from nameparser import HumanName
ModuleNotFoundError: No module named 'nameparser'

Many thanks for your help!


RE: Nameparser - Traceback error - tjnichols - Feb-28-2020

I've tried uninstalling Python. Installing pip nameparser with the new installation of Python as well as the other two modules this file uses. This works on other machines of the same setup (model, OS, hardware, etc.).

The only difference that I see with this is my machine has an installation of Windows that crashed. When I used the repair tool to reinstall it, it left the broken one. I don't know how to get rid of it. Nor do I know if this might be causing my problem.

Any insight would be most appreciated!

Thanks!


RE: Nameparser - Traceback error - GodMaster - Feb-28-2020

Hi @tjnichols
You can try like this:
on command line: pip install nameparser(windows) or sudo pip install nameparser(Linux)
If you still meet the issue, means, your installed python is not correct or broken.

Suggesting repair/reinstall Python.
https://docs.python.org/3/using/windows.html