ArduPilot / ArduPilot/MissionPlanner
Issue with Python libraries
- Dominant language
- C#
- Stars
- 2.4k
- Forks
- 2.9k
- Avg merge
- 19h 16m
- Merged PRs (30d)
- 4
Description
#### Issue details
Hello, don't know if it was my unique problem or some bug during the update, but after automatic update to the newest version I had a problem with my python scripts.
I'm adding my anaconda libraries path to the sys.path at the start of the script. Then I was trying to import the python os library
`import os`
This gave an error: Error running script Odwołanie do obiektu nie zostało ustawione na wystąpienie obiektu. - that's in polish, but basically it is a System.NullReferenceException
During that the sys.path was:
`['.', 'C:\\Program Files (x86)\\Mission Planner\\Lib', 'C:\\Program Files (x86)\\Mission Planner\\DLLs', 'C:\\Program Files (x86)\\Mission Planner\\Lib.zip', 'C:\\Users\\Zbyszek\\Anaconda2\\Lib']`
but the first folder was missing - in the Mission Planner directory there was only the Lib.zip file, but it was not unpacked. The issue was fixed by unpacking the zip file manually.
I do not understand the nature of this issue, as I expected the os library to be imported from the Anaconda directory anyway, but I decided to report it in case it is some problem with the installation.
Before the today's update it was working correctly - the os library was imported, but I do not know if it was imported from Anaconda or if the Lib folder was existing in the Mission Planner directory.
#### Version
1.3.55
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the 1.3.55 automatic update and installation process that places Mission Planner's Lib.zip and Lib paths under C:\Program Files (x86)\Mission Planner. Reproduce the update, inspect whether Lib.zip is unpacked, and run a script containing `import os` with the shown Anaconda path. Done means a fresh update makes the embedded Python libraries available without manual extraction.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- anaconda, python
- Domain
- desktop, release
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100