Giter Site home page Giter Site logo

bggcli's People

Contributors

syllant avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

bggcli's Issues

Import crashes

I am moving my collection data from one account to another. The export worked fine, but the import failed with the following error:

[bggcli] Importing games for '********' account...
[bggcli] Authenticating... [done]
[bggcli] Importing 153 games...
[bggcli] [1/153] 101.1...  (already in collection)[bggcli] ERROR: Unexpected error while controlling the UI!
Either the web pages have changed and bggcli must be updated, or the site is down for maintenance.
Cause: Message:
Stacktrace:
    at FirefoxDriver.prototype.findElementInternal_ (file:///tmp/tmp1rmw0x/extensions/[email protected]/components/driver-component.js:10659)
    at FirefoxDriver.prototype.findElement (file:///tmp/tmp1rmw0x/extensions/[email protected]/components/driver-component.js:10668)
    at DelayedCommand.prototype.executeInternal_/h (file:///tmp/tmp1rmw0x/extensions/[email protected]/components/command-processor.js:12534)
    at DelayedCommand.prototype.executeInternal_ (file:///tmp/tmp1rmw0x/extensions/[email protected]/components/command-processor.js:12539)
    at DelayedCommand.prototype.execute/< (file:///tmp/tmp1rmw0x/extensions/[email protected]/components/command-processor.js:12481)
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/bggcli/util/csvreader.py", line 60, in iterate
    callback(row)
  File "/usr/local/lib/python2.7/dist-packages/bggcli/commands/collection_import.py", line 50, in <lambda>
    csv_reader.iterate(lambda row: game_page.update(row))
  File "/usr/local/lib/python2.7/dist-packages/bggcli/ui/gamepage.py", line 111, in update
    getattr(self, "fill_%s" % key)(value)
  File "/usr/local/lib/python2.7/dist-packages/bggcli/ui/gamepage.py", line 53, in _wrapper
    (By.XPATH, "//div[@class='select-free'][contains(@id, 'editversion')]")))
  File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/support/wait.py", line 80, in until
    raise TimeoutException(message, screen, stacktrace)
TimeoutException: Message:
Stacktrace:
    at FirefoxDriver.prototype.findElementInternal_ (file:///tmp/tmp1rmw0x/extensions/[email protected]/components/driver-component.js:10659)
    at FirefoxDriver.prototype.findElement (file:///tmp/tmp1rmw0x/extensions/[email protected]/components/driver-component.js:10668)
    at DelayedCommand.prototype.executeInternal_/h (file:///tmp/tmp1rmw0x/extensions/[email protected]/components/command-processor.js:12534)
    at DelayedCommand.prototype.executeInternal_ (file:///tmp/tmp1rmw0x/extensions/[email protected]/components/command-processor.js:12539)
    at DelayedCommand.prototype.execute/< (file:///tmp/tmp1rmw0x/extensions/[email protected]/components/command-processor.js:12481)

[bggcli] Close webdriver 'collection-import'

Does importing still work for you? (As in, did BGG change their page to break the tool? Or is it something on my end?)

bggcli fails with new BoardGameGeek game page interface

The bggcli export tool works flawlessly.

The bggcli import tool works fails when attempting to access elements on the new board game page interface. I'm including a stack trace here:

[bggcli] Importing games for '<account_name>' account...
[bggcli] Authenticating... [done]
[bggcli] Importing 108 games...
[bggcli] [1/108] Custom Heroes... [bggcli] ERROR: Unexpected error while controlling the UI!
Either the web pages have changed and bggcli must be updated, or the site is down for maintenance.
Cause: Message: Unable to locate element: (//a[contains(@onclick, 'CE_ModuleAddItem')])[last()]

Traceback (most recent call last):
  File "/Users/andymatthews/.virtualenvs/bgg/lib/python2.7/site-packages/bggcli/util/csvreader.py", line 60, in iterate
    callback(row)
  File "/Users/andymatthews/.virtualenvs/bgg/lib/python2.7/site-packages/bggcli/commands/collection_import.py", line 50, in <lambda>
    csv_reader.iterate(lambda row: game_page.update(row))
  File "/Users/andymatthews/.virtualenvs/bgg/lib/python2.7/site-packages/bggcli/ui/gamepage.py", line 102, in update
    "(//a[contains(@onclick, 'CE_ModuleAddItem')])[last()]").click()
  File "/Users/andymatthews/.virtualenvs/bgg/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 365, in find_element_by_xpath
    return self.find_element(by=By.XPATH, value=xpath)
  File "/Users/andymatthews/.virtualenvs/bgg/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 843, in find_element
    'value': value})['value']
  File "/Users/andymatthews/.virtualenvs/bgg/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 308, in execute
    self.error_handler.check_response(response)
  File "/Users/andymatthews/.virtualenvs/bgg/lib/python2.7/site-packages/selenium/webdriver/remote/errorhandler.py", line 194, in check_response
    raise exception_class(message, screen, stacktrace)

For reference here's the BGG page for the game being added (Custom Heroes):
https://boardgamegeek.com/boardgame/223049/custom-heroes

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.