I'm using this tar ball http://www.crummy.com/software/BeautifulSoup/bs4/download/4.3/beautifulsoup4-4.3.2.tar.gz
I did not install it' and per the instructions I only copied the "bs4" folder into modules folder of my app. Thanks, I appreciate any help to resolve this. I'm not getting any help from google. On Tuesday, October 29, 2013 10:56:33 PM UTC+8, lyn2py wrote: > > Version web2py™ Version 2.7.4-stable+timestamp.2013.10.27.23.22.02 > Python Python 2.7.1: /usr/bin/python (prefix: > /System/Library/Frameworks/Python.framework/Versions/2.7) Traceback > > 1. > 2. > 3. > 4. > 5. > 6. > 7. > 8. > 9. > 10. > 11. > 12. > 13. > 14. > 15. > > Traceback (most recent call last): > File "/web2py/source/gluon/restricted.py", line 217, in restricted > exec ccode in environment > File > "/Users/charlyn/web2py/source/applications/scrape/controllers/scrape.py" > <http://127.0.0.1:8000/admin/default/edit/scrape/controllers/scrape.py>, line > 1, in <module> > from bs4 import BeautifulSoup > File "/web2py/source/gluon/custom_import.py", line 86, in custom_importer > return base_importer(pname, globals, locals, fromlist, level) > File "applications/scrape/modules/bs4/__init__.py", line 30, in <module> > from .builder import builder_registry, ParserRejectedMarkup > File "/web2py/source/gluon/custom_import.py", line 99, in custom_importer > return NATIVE_IMPORTER(name, globals, locals, fromlist, level) > File "applications/scrape/modules/bs4/builder/__init__.py", line 308, in > <module> > from . import _htmlparser > ImportError: cannot import name _htmlparser > > > > Please let me know what other information you will need, I can't seem to > import BeautifulSoup. > > > This is my code that generated the above traceback > > from bs4 import BeautifulSoup > > def index(): > html = "blahblahblah" > soup = BeautifulSoup(html) > return locals() > > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.