darthbhyrava added a comment.

  I have submitted a new patch for this bug correcting some of the errors - but 
it still needs the following issues to be resolved.
  
  1. In tests/script_tests.py attribute `script_deps`, is it necessary to 
change `BeautifulSoup`? If yes,  to `BeautifulSoup4` or `bs4`?
  
    The documentation which follows seems to imply that the package name is to 
be taken care of in setup.py (here the package is `bs4`) while the module being 
imported (BeautifulSoup) is all that should be mentioned here.
  
  > These dependencies are not always the package name which is in setup.py.
  > e.g. 'PIL.ImageTk' is a object provided by several different pypi packages,
  > and setup.py requests that 'Pillow' is installed to provide 'PIL.ImageTk'.
  > Here, it doesnt matter which pypi package was requested and installed.
  > Here, the name given to the module which will be imported is required.
  
  
  
  2. Changing `StringIO` to `io.StringIO` did not solve the error I previously 
encountered on running `$ nosetests tests.panoramiopicker_tests`
  
  
  
    Traceback (most recent call last):
    File "/usr/local/lib/python2.7/dist-packages/nose/loader.py", line 418, in 
loadTestsFromName
      addr.filename, addr.module)
    File "/usr/local/lib/python2.7/dist-packages/nose/importer.py", line 47, in 
importFromPath
      return self.importFromDir(dir_path, fqname)
    File "/usr/local/lib/python2.7/dist-packages/nose/importer.py", line 94, in 
importFromDir
      mod = load_module(part_fqname, fh, filename, desc)
    File 
"/home/darthbhyrava/Dev/GSoC/pywikibot/core/tests/panoramiopicker_tests.py", 
line 12, in <module>
      from scripts import panoramiopicker
    File 
"/home/darthbhyrava/Dev/GSoC/pywikibot/core/scripts/panoramiopicker.py", line 
19, in <module>
      import io.StringIO
    ImportError: No module named StringIO

TASK DETAIL
  https://phabricator.wikimedia.org/T115428

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: darthbhyrava
Cc: TerraCodes, gerritbot, AbdealiJK, darthbhyrava, StudiesWorld, XZise, 
Aklapper, Avicennasis, pywikibot-bugs-list, jayvdb, Lewizho99, Mdupont, 
Maathavan



_______________________________________________
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to