YueChen-C / py-ios-device

IOS Professional Performance Testing Tool . You can get CPU, GPU, Memory , Lifecycle and other metrics from real iOS devices . iOS 性能测试工具
GNU General Public License v3.0
667 stars 183 forks source link

Fix Numpy error #101

Closed marciogranzotto closed 3 weeks ago

marciogranzotto commented 1 year ago

Fixes this error:

/Users/myuser/myproject/venv/lib/python3.10/site-packages/ios_device/py_ios_device.py:7: FutureWarning: In the future `np.long` will be defined as the corresponding NumPy scalar.
  from numpy import long, mean
Traceback (most recent call last):
  File "/Users/myuser/myproject/test.py", line 1, in <module>
    from ios_device import py_ios_device
  File "/Users/myuser/myproject/venv/lib/python3.10/site-packages/ios_device/py_ios_device.py", line 7, in <module>
    from numpy import long, mean
ImportError: cannot import name 'long' from 'numpy' (/Users/myuser/myproject/venv/lib/python3.10/site-packages/numpy/__init__.py)
YueChen-C commented 1 year ago

maybe we can delete the reference to numpy