Hidden imports
santhoshdc1590 opened this issue · 5 comments
I'm using python3.5
While building the function using py-cloud-fn handle_http http -f function.py --python_version 3.5
I got these hidden import
errors
Analyzing hidden import \'htmlentitydefs\'\n4349
ERROR: Hidden import \'htmlentitydefs\' not found\n4349
INFO: Analyzing hidden import \'HTMLParser\'\n4350
ERROR: Hidden import \'HTMLParser\' not found\n4350
INFO: Analyzing hidden import \'Cookie\'\n4350
ERROR: Hidden import \'Cookie\' not found\n4350
INFO: running Analysis out00-Analysis.toc\n4376
Checked import in the official links
Note The htmlentitydefs module has been renamed to html.entities in Python 3. The 2to3 tool will automatically adapt imports when converting your sources to Python 3.
official link
We do have HTMLParser
in python3.5 as well according to the official link
We do have cookie
in the python3.5 according to this official link
These can be included using hidden imports
And I can see all these hidden imports
being added here
Then why am I still getting this error?
Is there a fix needed to be made here? If yes how can i or am I missing something here which I have done wrong?
Any pointers would really be helpful
Did you try forking the repository and make changes and / or change the source code in the imported dependencies?
No I didn't do any of those. I just used 'pip3 install pycloudfn'
I forked, built and then installed the cloud function python the build went smoothly
Would be awesome if you can say if you made any changes or modified the code and make a pull request - for the benefit of the community. So we know if this your machine or something general that must be fixed.
It was error from my end of the coding. I had not checked my code properly.