PyUtilib / pyutilib

A collection of general Python utilities, including logging and file IO, subprocess management, plugin systems, and workflow management.
BSD 3-Clause "New" or "Revised" License
34 stars 21 forks source link

Naming attribute is not found when starting the pyomo_ns server #26

Closed aknaut closed 7 years ago

aknaut commented 7 years ago

Starting the pyomo_ns server with Python 3.5.3 I got the following error:

Error:   File "c:\anaconda3\envs\py35\lib\site-packages\pyutilib\pyro\nameserver.py", line 19, in start_ns
    Pyro.naming.main(sys.argv[1:])
AttributeError: module 'Pyro4' has no attribute 'naming'

I already fixed it locally by adding import Pyro4.naming on line 32 in \pyutilib\pyro\util.py . So I guess this should be a quick fix. But maybe this should be done at a different location in the code.

ghackebeil commented 7 years ago

I came across this a few months ago and made a similar fix in commit 96d215659f27813d436ce903d7f2be1e495729b5.

A PyUtilib release usually gets generated when Pyomo is released, so this should be in a release relatively soon.