Python Forum
problems with netcdf if I compile Android
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
problems with netcdf if I compile Android
#11
I have a new error with the same file:
File "/home/dirk/openvario/android/OpenSoar/./build/thirdparty.py", line 138, in <module>
if not x.is_installed(toolchain):
AttributeError: 'str' object has no attribute 'is_installed'

I tried to use Grok, but I think the way I used it was not optimal. I couldn't solve the error
Reply
#12
I think the reason with this new error is because of "netcdf" and "netcdfcxx" instead of netcdf and netcdfcxx

Any ideas? Big Grin
Reply
#13
You have not provided thirdparty.py where your error originates.
Reply
#14
Sorry, here is thirdparty.py
https://github.com/OpenSoaring/OpenSoar/...rdparty.py
Reply
#15
What are you using to execute this code?
It's expecting the following arguments: lib_path, host_triplet, arch_cflags, cppflags, arch_ldflags, cc, cxx, ar, arflags, ranlib, strip, windres
I have no idea what to feed this.
Reply
#16
Unfortunately, I can't provide any information about the code. It's not mine; I just want to compile a new Android version of OpenSoar, and I'm running into this problem.
The developer has already compiled the code this way. He didn't have the problem, and currently has no idea why I'm having the problem.
Reply
#17
I was able to solve the problem. I had made adjustments because OpenSoar was also supposed to be compiled for a different operating system. These adjustments triggered the conflict.
Reply
#18
Thanks for sharing your experience with compiling OpenSoar for Android. Encountering a NameError for 'netcdf' suggests that the variable netcdf hasn't been defined before it's used in your thirdparty.py script. Ensure that netcdf is properly initialized or imported prior to its usage. Additionally, verify that all necessary dependencies are correctly installed and accessible in your build environment. For instance, when working on our canvas photo printing platform, we faced similar issues with undefined variables during the build process. Carefully managing dependencies and build scripts helped us resolve such errors. Here's the project for reference:
Link removed
Hope this helps, and best of luck with your compilation process!
Larz60+ write Yesterday, 09:27 AM:
clickbait link removed. Please read What to NOT include in a post
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  combining netcdf data sebastiansieloff 1 2,889 Nov-19-2020, 03:59 PM
Last Post: Larz60+
  Selecting netcdf data files Jodman92 4 4,059 Nov-21-2018, 10:56 PM
Last Post: Larz60+
  Converting units in NetCdf Files in Python fyec 1 5,336 Jun-18-2018, 12:53 PM
Last Post: gontajones
  Storing Python data output as a Netcdf file Lightning1800 1 3,323 May-16-2018, 10:14 PM
Last Post: micseydel
  netCDF issue with filling a variable HeavyLoads 1 14,564 Oct-03-2016, 08:34 PM
Last Post: micseydel

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020