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

Make sure all dependencies are python3 compatible #99

Closed
sxjscience opened this issue Dec 2, 2019 · 4 comments
Closed

Make sure all dependencies are python3 compatible #99

sxjscience opened this issue Dec 2, 2019 · 4 comments
Labels
bug Something isn't working

Comments

@sxjscience
Copy link
Collaborator

I tried to install autogluon on Ubuntu Deep Learning Base AMI 16.04/18.04 (using the python3 version) and has the following error:
Installation command:

pip3 install --upgrade mxnet-cu100 --user
pip3 install https://autogluon.s3.amazonaws.com/dist/autogluon-0.0.1-py3-none-any.whl --user

Run command

import autogluon as ag

Error:

/usr/lib/python3/dist-packages/h5py/__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
  from ._conv import register_converters as _register_converters
Traceback (most recent call last):

  File "/usr/local/lib/python3.6/dist-packages/IPython/core/interactiveshell.py", line 3296, in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)

  File "<ipython-input-1-014e868ea365>", line 1, in <module>
    import autogluon as ag

  File "/home/ubuntu/.local/lib/python3.6/site-packages/autogluon/__init__.py", line 10, in <module>
    from . import scheduler, searcher, nas, utils

  File "/home/ubuntu/.local/lib/python3.6/site-packages/autogluon/scheduler/__init__.py", line 5, in <module>
    from .scheduler import *

  File "/home/ubuntu/.local/lib/python3.6/site-packages/autogluon/scheduler/scheduler.py", line 21, in <module>
    class TaskScheduler(object):

  File "/home/ubuntu/.local/lib/python3.6/site-packages/autogluon/scheduler/scheduler.py", line 26, in TaskScheduler
    REMOTE_MANAGER = RemoteManager()

  File "/home/ubuntu/.local/lib/python3.6/site-packages/autogluon/scheduler/remote/remote_manager.py", line 37, in __new__
    cls.start_local_node()

  File "/home/ubuntu/.local/lib/python3.6/site-packages/autogluon/scheduler/remote/remote_manager.py", line 48, in start_local_node
    remote = Remote.create_local_node(cls.MASTER_IP, port)

  File "/home/ubuntu/.local/lib/python3.6/site-packages/autogluon/scheduler/remote/remote.py", line 54, in create_local_node
    return cls(ip, port, local=True)

  File "/home/ubuntu/.local/lib/python3.6/site-packages/autogluon/scheduler/remote/remote.py", line 31, in __init__
    super(Remote, self).__init__(processes=False)

  File "/home/ubuntu/.local/lib/python3.6/site-packages/distributed/client.py", line 721, in __init__
    self.start(timeout=timeout)

  File "/home/ubuntu/.local/lib/python3.6/site-packages/distributed/client.py", line 886, in start
    sync(self.loop, self._start, **kwargs)

  File "/home/ubuntu/.local/lib/python3.6/site-packages/distributed/utils.py", line 333, in sync
    raise exc.with_traceback(tb)

  File "/home/ubuntu/.local/lib/python3.6/site-packages/distributed/utils.py", line 317, in f
    result[0] = yield future

  File "/usr/local/lib/python3.6/dist-packages/tornado/gen.py", line 735, in run
    value = future.result()

  File "/home/ubuntu/.local/lib/python3.6/site-packages/distributed/client.py", line 952, in _start
    **self._startup_kwargs

  File "/home/ubuntu/.local/lib/python3.6/site-packages/distributed/deploy/spec.py", line 346, in _
    await self._start()

  File "/home/ubuntu/.local/lib/python3.6/site-packages/distributed/deploy/spec.py", line 264, in _start
    **self.scheduler_spec.get("options", {})

  File "/home/ubuntu/.local/lib/python3.6/site-packages/distributed/scheduler.py", line 903, in __init__
    from distributed.dashboard import BokehScheduler

  File "/home/ubuntu/.local/lib/python3.6/site-packages/distributed/dashboard/__init__.py", line 1, in <module>
    from .scheduler import BokehScheduler

  File "/home/ubuntu/.local/lib/python3.6/site-packages/distributed/dashboard/scheduler.py", line 402, in <module>
    import pynvml  # noqa: 1708

  File "/usr/local/lib/python3.6/dist-packages/pynvml.py", line 1831
    print c_count.value
                ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(c_count.value)?
@sxjscience sxjscience added the bug Something isn't working label Dec 2, 2019
@sxjscience
Copy link
Collaborator Author

This error is fixed after I reinstalled pynvml:

pip3 install -U pynvml --user

@sxjscience
Copy link
Collaborator Author

Also, I've reinstalled scipy

pip3 install -U scipy --user

After that, I can import autogluon correctly.

@sxjscience
Copy link
Collaborator Author

Confirmed version that is able to run:

pynvml==8.0.3
scipy==1.3.3

@sxjscience sxjscience changed the title Some packages are not python3 compatible Make sure all dependencies are python3 compatible Dec 2, 2019
@zhanghang1989
Copy link
Contributor

fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants