tsinghua-rll / VoxelNet-tensorflow

A 3D object detection system for autonomous driving.
MIT License
454 stars 123 forks source link

AttributeError: '_NamespacePath' object has no attribute 'sort' #8

Closed szm88 closed 6 years ago

szm88 commented 6 years ago

~/tf_voxelnet$ python3 train.py

Traceback (most recent call last): File "train.py", line 15, in import tensorflow as tf File "/usr/local/lib/python3.5/dist-packages/tensorflow/init.py", line 24, in from tensorflow.python import File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/init.py", line 52, in from tensorflow.core.framework.graph_pb2 import File "/usr/local/lib/python3.5/dist-packages/tensorflow/core/framework/graph_pb2.py", line 6, in from google.protobuf import descriptor as _descriptor File "/usr/local/lib/python3.5/dist-packages/google/protobuf/init.py", line 37, in import('pkg_resources').declare_namespace(name) File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 2927, in @_call_aside File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 2913, in _call_aside f(*args, **kwargs) File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 2952, in _initialize_master_working_set add_activation_listener(lambda dist: dist.activate()) File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 956, in subscribe callback(dist) File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 2952, in add_activation_listener(lambda dist: dist.activate()) File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 2515, in activate declare_namespace(pkg) File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 2097, in declare_namespace _handle_ns(packageName, path_item) File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 2047, in _handle_ns _rebuild_mod_path(path, packageName, module) File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 2066, in _rebuild_mod_path orig_path.sort(key=position_in_sys_path) AttributeError: '_NamespacePath' object has no attribute 'sort'

jeasinema commented 6 years ago

It seems that this crack is caused by tensorflow itself, make sure you are using tensorflow 1.4.0+ with Python3.6+.

szm88 commented 6 years ago

thank you very much!