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

Module packaging: uncallable exported symbols #22

Open
myselfhimself opened this issue Apr 1, 2020 · 0 comments
Open

Module packaging: uncallable exported symbols #22

myselfhimself opened this issue Apr 1, 2020 · 0 comments

Comments

@myselfhimself
Copy link
Collaborator

get_blender, os, run_blender below are probably exported inside the module for no reasons

Python 3.7.5 (default, Nov 20 2019, 09:21:52) 
[GCC 9.2.1 20191008] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import blender_addon_tester as BAT
>>> dir(BAT)
['__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__path__', '__spec__', 'get_blender', 'os', 'run_blender', 'test_blender_addon']
>>> BAT.get_blender()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: 'module' object is not callable
>>> BAT.get_blender
<module 'blender_addon_tester.get_blender' from '/home/jd/.virtualenvs/gmicpy290numpy/lib/python3.7/site-packages/blender_addon_tester/get_blender.py'>
>>> BAT.get_blender("2.80")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: 'module' object is not callable
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

1 participant