Open CJHFUTURE opened 6 years ago
Yep, I've got the same issue - Python 3
change
from render import vis_of_vertices, render_texture
to
from utils.render import vis_of_vertices, render_texture
Thanks Seranus
@seranus Would you be willing to create a pull request on this change?? Python 3 does not like relative imports:
when i tried to create new-app i get this error how can i remove this can any one know please tell me...
frappe@abbas-VirtualBox:$ cd frappe-bench frappe@abbas-VirtualBox:/frappe-bench$ bench new-app meeting INFO:bench.app:creating new app meeting Traceback (most recent call last): File "/usr/lib/python3.5/runpy.py", line 184, in _run_module_as_main "main", mod_spec) File "/usr/lib/python3.5/runpy.py", line 85, in _run_code exec(code, run_globals) File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 97, in main() File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 13, in main commands = get_app_groups() File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 25, in get_app_groups app_commands = get_app_commands(app) File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 63, in get_app_commands if os.path.exists(frappe.get_app_path(app, 'commands.py')) File "/home/frappe/frappe-bench/apps/frappe/frappe/init.py", line 730, in get_app_path return get_pymodule_path(app_name, joins) File "/home/frappe/frappe-bench/apps/frappe/frappe/init.py", line 745, in get_pymodule_path return os.path.join(os.path.dirname(get_module(scrub(modulename)).file), joins) File "/home/frappe/frappe-bench/apps/frappe/frappe/init.py", line 707, in get_module return importlib.import_module(modulename) File "/home/frappe/frappe-bench/env/lib/python3.5/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 986, in _gcd_import File "", line 969, in _find_and_load File "", line 956, in _find_and_load_unlocked ImportError: No module named 'meeting' frappe@abbas-VirtualBox:~/frappe-bench$
Hi, Has anyone had this error? Traceback (most recent call last): File "demo.py", line 15, in
from utils.render_app import get_visibility, get_uv_mask, get_depth_image
File "C:\Users\PRNet-master\utils\render_app.py", line 2, in
from render import vis_of_vertices, render_texture
ImportError: No module named 'render'
Using python 3 (have done the fixes to "w" Also python run_basics.py runs fine)
Thanks in advance