Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix logger message typo in lsi_dispatcher #1603

Merged
merged 2 commits into from
Oct 2, 2017

Conversation

lorosanu
Copy link
Contributor

Fixes a minor typo in the lsi_dispatcher.

Here's the encountered error:

--- Logging error ---
Traceback (most recent call last):
  File "/usr/lib/python3.4/logging/__init__.py", line 978, in emit
    msg = self.format(record)
  File "/usr/lib/python3.4/logging/__init__.py", line 828, in format
    return fmt.format(record)
  File "/usr/lib/python3.4/logging/__init__.py", line 565, in format
    record.message = record.getMessage()
  File "/usr/lib/python3.4/logging/__init__.py", line 328, in getMessage
    msg = msg % self.args
TypeError: %i format: a number is required, not dict
Call stack:
  File "/usr/lib/python3.4/threading.py", line 888, in _bootstrap
    self._bootstrap_inner()
  File "/usr/lib/python3.4/threading.py", line 920, in _bootstrap_inner
    self.run()
  File "/usr/local/lib/python3.4/dist-packages/Pyro4/socketserver/threadpool.py", line 44, in run
    self.job()
  File "/usr/local/lib/python3.4/dist-packages/Pyro4/socketserver/threadpoolserver.py", line 40, in __call__
    self.daemon.handleRequest(self.csock)
  File "/usr/local/lib/python3.4/dist-packages/Pyro4/core.py", line 1356, in handleRequest
    data = method(*vargs, **kwargs)  # this is the actual method call to the Pyro object
  File "/usr/local/lib/python3.4/dist-packages/gensim/models/lsi_dispatcher.py", line 127, in getstate
    logger.info("merging states from %i workers", self.workers)
Message: 'merging states from %i workers'
Arguments: {0: <Pyro4.core.Proxy at 0x7f31340407b8; connected IPv4; for PYRO:[email protected]:51772>, 1: <Pyro4.core.Proxy at 0x7f3134040ba8; connected IPv4; for PYRO:[email protected]:53614>}

@menshikh-iv
Copy link
Contributor

Thank you @lorosanu, gratz with your first PR 👍
Follow instruction from #1587 and receive nice gifts 🎁 !

@menshikh-iv menshikh-iv merged commit 96d230a into piskvorky:develop Oct 2, 2017
@lorosanu
Copy link
Contributor Author

lorosanu commented Oct 2, 2017

I'm glad it helped.
Thanks for the tip !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants