ArduPilot / ArduPilot/MissionPlanner

[Numpy import error] Using Python Scripts in Mission Planner

Open
#2,390 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
2.4k
Forks
2.9k
Avg merge
19h 16m
Merged PRs (30d)
4

Description

#### Issue details

1. I would like to **upload my python script (which contains `import numpy as np`) in Mission Planner** and I have an error message. I think that there are some similar issues as follows:
- #1889
- #1391

2. I deleted all Python and Numpy on my computer and then, I just have installed Anaconda 2 for the stability between them.

3. In the python script, I have added several lines as follows:

- `sys.path.append('C:/Users/quads/Anaconda2')`
- `sys.path.append('C:/Users/quads/Anaconda2/Library/mingw-w64/bin')`
- `sys.path.append('C:/Users/quads/Anaconda2/Library/usr/bin')`
- `sys.path.append('C:/Users/quads/Anaconda2/Library/bin')`
- `sys.path.append('C:/Users/quads/Anaconda2/Scripts')`
- `sys.path.append('C:/Users/quads/Anaconda2/Lib/site-packages')`
- `sys.path.append('C:/Users/quads/Anaconda2/libs')`
- `sys.path.append('C:/Users/quads/Anaconda2/include')`

![Capture](https://user-images.githubusercontent.com/44656535/82649723-f2cf2a80-9c19-11ea-9cd9-bea2a18280e0.PNG)

#### Version

- Mission Planner: 1.3.70
- OS: **(64 bit)**
- Anaconda2: Anaconda2-2019.10-Windows-x86_64.exe
- --> Python: 2.7.16 **(64 bit)**
- --> Numpy: 1.16.5 **(64 bit)**

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the numpy import failure in Mission Planner 1.3.70 using the reported 64-bit Anaconda2, Python 2.7.16, and NumPy 1.16.5 setup. The issue names no source files or tests; done would require a confirmed cause and a reproducible resolution for importing NumPy scripts.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, numpy, python
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.