Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Sep 2015 12:59:20 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 202918] [NEW PORT www/py-google] Python bindings to the Google search engine
Message-ID:  <bug-202918-13-ed36awM202@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-202918-13@https.bugs.freebsd.org/bugzilla/>
References:  <bug-202918-13@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=202918

Jan Beich <jbeich@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jbeich@FreeBSD.org

--- Comment #4 from Jan Beich <jbeich@FreeBSD.org> ---
Make sure to do a basic test of runtime for py-* packages e.g., via |poudriere
-i| for interactive environment:

  $ poudriere bulk -Citj 93i386 www/py-google
  $ python2.7
  >>> import google
  >>> for res in google.search("foobar"):print(res)
  ...
  Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
    File "/usr/local/lib/python2.7/site-packages/google/__init__.py", line 225,
in search
      from BeautifulSoup import BeautifulSoup
  ImportError: No module named BeautifulSoup

But in this case setup.py already has a hint

  requires=['beautifulsoup4'],

while the code has

  # Lazy import of BeautifulSoup.
  # Try to use BeautifulSoup 4 if available, fall back to 3 otherwise.
  global BeautifulSoup
  if BeautifulSoup is None:
      try:
          from bs4 import BeautifulSoup
      except ImportError:
          from BeautifulSoup import BeautifulSoup

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-202918-13-ed36awM202>