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

setup.py not finding libaten #28

Open
rainjacket opened this issue Jun 4, 2018 · 6 comments
Open

setup.py not finding libaten #28

rainjacket opened this issue Jun 4, 2018 · 6 comments

Comments

@rainjacket
Copy link

Cloning into 'sentiment-discovery'...
Traceback (most recent call last):
  File "setup.py", line 71, in <module>
    libaten = find(torch_dir, re.compile("libaten", re.IGNORECASE).search, False)
  File "setup.py", line 31, in find
    return list(set(collection))
TypeError: 'NoneType' object is not iterable

I think it might have been a naming change in the newest version of torch. I changed re.compile("libaten", re.IGNORECASE) to re.compile("aten", re.IGNORECASE) and it seems to be working now.

@raulpuric
Copy link
Contributor

Yeah this sounds like a bug we just recently had with our other pytorch projects.
Looking into this now.

@raulpuric
Copy link
Contributor

@csarofeen @mcarilli what was the fix the new CTen update.

@raulpuric
Copy link
Contributor

#30
Does this work for you?

@rainjacket
Copy link
Author

Sorry, I haven't been able to verify this because I've just been running models on my own "fixed" version and haven't pulled for the last few weeks.

@zfallahnejad
Copy link

@raulpuric #30 didn't work for me.

@dunce1
Copy link

dunce1 commented Jul 9, 2018

@raulpuric #30 did not work for me either. Getting following error message now (before, I was getting the same error message as the op):
Traceback (most recent call last):
File "setup.py", line 82, in
assert libaten, "Could not find PyTorch's libATen."
AssertionError: Could not find PyTorch's libATen.

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

No branches or pull requests

4 participants