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

Fix Numpy error #101

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

marciogranzotto
Copy link

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)

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
Copy link
Owner

maybe we can delete the reference to numpy

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

Successfully merging this pull request may close these issues.

None yet

2 participants