question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ray has no attribute init

See original GitHub issue

I am using ray on a linux server, installed it using pip and when using

import ray 
ray.init()

I keep getting

ray has no attribute init

What am i missing here?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
thebeancountercommented, Sep 23, 2019

@richardliaw

shame on me, had another directory named ray in the project, interpreter found it and mapped it to path running over the real ray.

removed it, now its working

0reactions
thebeancountercommented, Sep 22, 2019

@richardliaw I installed is using pip on a conda env. source env pip install ray

Still the same problem…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ray.init() fails complaining about missing JobConfig attribute ...
Ray.init() fails complaining about missing JobConfig attribute ... I get an error: AttributeError: 'JobConfig' object has no attribute ...
Read more >
'module' object has no attribute 'init'? - Quora
I am using Python 3.5.2 on Ubuntu machine. And it is working fine for me. I will recommend you three things 1. Check...
Read more >
Ray Serve Can't Create Backend - Stack Overflow
serve' has no attribute 'create_backend' . If I store the object created by calling serve.start() in a variable, and use that to call...
Read more >
partially initialized module 'pygame' has no attribute 'init' (most ...
AttributeError: partially initialized module 'pygame' has no attribute 'init' (most likely due to a circular import) 原因是:文件名命名为pygame,跟关键字pygame ...
Read more >
AttributeError: module 'ray' has no attribute 'utils'
module 'ray' has no attribute 'utils'. Can you please tell me what I am doing wrong. Thanks,. Vibhor.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found