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

__init__() should return None, not 'NoneType' when instantiating RenderEngine() #14

Open
alejandrok opened this issue Jun 26, 2019 · 3 comments

Comments

@alejandrok
Copy link

Spent an entire day trying to get renderman to work. Can't figure out what's wrong. Compiled the build for MacOS, renamed the librenderman.so.dylib to .so, tried with different python envs and I get the same issue over and over. Found on some threads that it could be related to having the wrong linking to the boost lib but when inspecting it is pointing to the right one. Any ideas?

`Alejandros-MacBook-Pro:lib alek$ /usr/local/bin/python
Python 2.7.16 (default, Jun 19 2019, 07:40:37)
[GCC 4.2.1 Compatible Apple LLVM 10.0.1 (clang-1001.0.46.4)] on darwin
Type "help", "copyright", "credits" or "license" for more information.

import librenderman as rm
JUCE v5.2.0
rm.RenderEngine(22050,256,256)
Traceback (most recent call last):
File "", line 1, in
TypeError: init() should return None, not 'NoneType'`

@czfandyslash
Copy link

Same here. It's so hard to figure it out. Hoping for a clear solution on the issue.

@cyrusvahidi
Copy link

I fixed this by changing the link flags in the build settings.

Go to build settings in Xcode and change -lpython2.7m to -undefined dynamic_lookup in 'Other Linker Flags'

Refer to here: https://stackoverflow.com/questions/61463744/boost-python-typeerror-init-should-return-none-not-nonetype-but-no-ob

@czfandyslash
Copy link

I fixed this by changing the link flags in the build settings.

Go to build settings in Xcode and change -lpython2.7m to -undefined dynamic_lookup in 'Other Linker Flags'

Refer to here: https://stackoverflow.com/questions/61463744/boost-python-typeerror-init-should-return-none-not-nonetype-but-no-ob

Vcyrus, Thank you so much! The issue fixed and works fine!

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

3 participants