OmkarPathak / ResumeParser

A simple resume parser used for extracting information from resumes
MIT License
285 stars 164 forks source link

AttributeError: module 'utils' has no attribute 'extract_text' #5

Closed simplesaad closed 5 years ago

simplesaad commented 5 years ago

@OmkarPathak, I am getting this error.

C:\Users\moham\Desktop\Resume_Parser\ResumeParser-master>python cli.py -f C:\Users\moham\Desktop\Resume_Parser\ResumeParser-master\resumes\a2.pdf C:\Users\moham\AppData\Local\Programs\Python\Python37-32\lib\importlib_bootstrap.py:219: RuntimeWarning: cymem.cymem.Pool size changed, may indicate binary incompatibility. Expected 24 from C header, got 32 from PyObject return f(*args, kwds) C:\Users\moham\AppData\Local\Programs\Python\Python37-32\lib\importlib_bootstrap.py:219: RuntimeWarning: cymem.cymem.Address size changed, may indicate binary incompatibility. Expected 12 from C header, got 20 from PyObject return f(*args, *kwds) C:\Users\moham\AppData\Local\Programs\Python\Python37-32\lib\site-packages\requestsinit.py:91: RequestsDependencyWarning: urllib3 (1.24.1) or chardet (2.3.0) doesn't match a supported version! RequestsDependencyWarning) �[96m Extracting data from: C:\Users\moham\Desktop\Resume_Parser\ResumeParser-master\resumes\a2.pdf�[00m C:\Users\moham\AppData\Local\Programs\Python\Python37-32\lib\importlib_bootstrap.py:219: RuntimeWarning: cymem.cymem.Pool size changed, may indicate binary incompatibility. Expected 24 from C header, got 32 from PyObject return f(args, kwds) C:\Users\moham\AppData\Local\Programs\Python\Python37-32\lib\importlib_bootstrap.py:219: RuntimeWarning: cymem.cymem.Address size changed, may indicate binary incompatibility. Expected 12 from C header, got 20 from PyObject return f(*args, **kwds) Traceback (most recent call last): File "cli.py", line 63, in pprint(cli_obj.extract_resume_data()) File "cli.py", line 23, in extract_resume_data return self.extract_from_file(args.file) File "cli.py", line 32, in extract_from_file resume_parser = ResumeParser(file) File "C:\Users\moham\Desktop\Resume_Parser\ResumeParser-master\resume_parser\resume_parser.py", line 23, in init self.text_raw = utils.extract_text(self.resume, os.path.splitext(self.__resume)[1]) AttributeError: module 'utils' has no attribute 'extract_text'

OmkarPathak commented 5 years ago

@simplesaad can you attach a screenshot with all the paths visible. I am not able to get a clear idea about how and from where you are running the cli.py file. The above error seems to have the problem with path as it is not able to find the utils file

simplesaad commented 5 years ago

image

simplesaad commented 5 years ago

This is my 'utils.py' file in the location [C:\Users\moham\Desktop\Resume_Parser\resume_parser\utils.py] utils.txt

OmkarPathak commented 5 years ago

@simplesaad I am running the same on Windows and everything works fine for me: image

OmkarPathak commented 5 years ago

@simplesaad any leads? If the issue still persists can you please provide a full specification of what all versions of Python are you using? So that I can reproduce this issue

OmkarPathak commented 5 years ago

@simplesaad closing this as there was no response from you

simplesaad commented 5 years ago

@OmkarPathak , I'm running this on Windows 10 and Python 3.7.2. After the installation of dependencies and running $resume_parser/resume_parser/resume_parser.py , i tried running $python .\cli.py -f .\resumes\a2.pdf image Apologies for the late response.

OmkarPathak commented 5 years ago

@simplesaad can you also provide the steps to recreate this issue. I am unable to recreate the same issue in my environment

simplesaad commented 5 years ago

Is it possible for you to join for a teamviewer session to check it out in my environment?

OmkarPathak commented 5 years ago

Can we have a skype session?

simplesaad commented 5 years ago

My skype contact is : mohammedsaadua@gmail.com Let me know when you are available. Thank you.

deependrabannaji commented 4 years ago

Hi @OmkarPathak I'm getting the same error

zluna095 commented 3 years ago

Getting the same error here