Skip to content

Commit

Permalink
Bugfix: pyro4 import error due to naming module changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mathijs-dumon committed Sep 7, 2017
1 parent 980f13b commit 1f5a5f7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pyxrd/server/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
logger = logging.getLogger(__name__)

import Pyro4
import Pyro4.naming

from pyxrd.generic.async.exceptions import *
from pyxrd.data.appdirs import user_log_dir
Expand Down Expand Up @@ -126,4 +127,4 @@ def stop_server(cls):
print_exc()
raise ServerNotRunningException("Pyro4 PyXRD Server is not running!")

pass #end of class
pass #end of class
1 change: 1 addition & 0 deletions pyxrd/server/run_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import os

import Pyro4
import Pyro4.naming

from pyxrd.data.appdirs import user_log_dir

Expand Down
3 changes: 2 additions & 1 deletion pyxrd/server/start_nameserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@
# Keep these:
import settings
import Pyro4
import Pyro4.naming

if __name__ == "__main__":

from pyxrd.logs import setup_logging
setup_logging(basic=True, prefix="PYRO NAMESERVER:")

Pyro4.naming.startNSloop()
Pyro4.naming.startNSloop()

0 comments on commit 1f5a5f7

Please sign in to comment.