You are not logged in.
Hello.
We are following the steps on 802.11 reference design> Experiments Framework > Examples scripts.
We got stuck in TX/RX Log Process Examples.
When we run the file log_process_summarize.py and error occurs at the console as below.
In [1]: runfile('C:/work/Mango_802.11_RefDes_v1.7.7/Python_Reference/examples/log/log_process_summarize.py', wdir='C:/work/Mango_802.11_RefDes_v1.7.7/Python_Reference/examples/log') Reading log file 'ap_two_node_two_flow_capture.hdf5' ( 36.0 MB) C:\Users\WCSL\Anaconda2\lib\site-packages\h5py\__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`. from ._conv import register_converters as _register_converters Log Index Contents: 1 of Type 1 1 of Type 6 70,705 of Type 10 2,195 of Type 11 5,138 of Type 15 24 of Type 20 63,708 of Type 21 2,016 of Type 25 69,326 of Type 26 -------------------------- 213,114 total entries Filtered Log Index: 1 of Type NODE_INFO 72,900 of Type RX_OFDM 1 of Type TIME_INFO 63,732 of Type TX_HIGH 71,342 of Type TX_LOW -------------------------- 207,976 total entries Traceback (most recent call last): File "<ipython-input-2-64841b33aae1>", line 1, in <module> runfile('C:/work/Mango_802.11_RefDes_v1.7.7/Python_Reference/examples/log/log_process_summarize.py', wdir='C:/work/Mango_802.11_RefDes_v1.7.7/Python_Reference/examples/log') File "C:\Users\WCSL\Anaconda2\lib\site-packages\spyder\utils\site\sitecustomize.py", line 705, in runfile execfile(filename, namespace) File "C:\Users\WCSL\Anaconda2\lib\site-packages\spyder\utils\site\sitecustomize.py", line 87, in execfile exec(compile(scriptfext, filename, 'exec'), glob, loc) File "C:/work/Mango_802.11_RefDes_v1.7.7/Python_Reference/examples/log/log_process_summarize.py", line 96, in <module> log_np = log_util.log_data_to_np_arrays(log_data, log_index) File "C:\work\Mango_802.11_RefDes_v1.7.7\Python_Reference\wlan_exp\log\util.py", line 427, in log_data_to_np_arrays entries_nd[k] = k.generate_numpy_array(log_data, log_index[k]) File "C:\work\Mango_802.11_RefDes_v1.7.7\Python_Reference\wlan_exp\log\entry_types.py", line 256, in generate_numpy_array np_arr = np.fromiter(index_iter, self.fileds_np_dt, len(byte_offsets)) ValueError: invalid literal for long() with base 10: '*~'
How can we solve this issue?
Thank you.
Offline
We haven't seen this error before. What versions of Python and NumPy (import numpy; numpy.__version__) are you running?
Offline
My python version is 2.7.15 and NumPy version is 1.14.3
Offline
I reproduced this bug after updating my numpy (I tried 1.14.5, same error). Something changed in numpy's fromiter() implementation, but I haven't figured out exactly what the problem is.
For now I implemented a workaround (committed as svn 6294) that uses the slower (but functional) fromstring(). You can use this entry_types.py for now, I'll keep looking for the underlying problem.
Offline
Thank you. We success running log process summarize.py file by using your entry_types.py.
Offline