NorthStarUAS / ImageAnalysis

Aerial imagery analysis, processing, and presentation scripts.
MIT License
145 stars 44 forks source link

where is 7a-explorer.py #12

Open fran2a opened 3 years ago

fran2a commented 3 years ago

I've processed my pictures with process.py and all went fine but where is the map? So I tried explorer.py but I have an error:

./explorer.py ./Pix4d/ Traceback (most recent call last): File "/Users/xxxx/Downloads/ImageAnalysis-master/scripts/./explorer.py", line 24, in from direct.showbase.ShowBase import ShowBase # pip install panda3d File "/opt/homebrew/lib/python3.9/site-packages/direct/showbase/ShowBase.py", line 40, in from panda3d.core import * ImportError: dlopen(/opt/homebrew/lib/python3.9/site-packages/panda3d/core.cpython-39-darwin.so, 2): no suitable image found. Did find: /opt/homebrew/lib/python3.9/site-packages/panda3d/core.cpython-39-darwin.so: code signature in (/opt/homebrew/lib/python3.9/site-packages/panda3d/core.cpython-39-darwin.so) not valid for use in process using Library Validation: Trying to load an unsigned library

thanks for help

clolsonus commented 3 years ago

I did change the name of the explorer program from 7a-explorer.py to just explorer.py so you found the right script. That's a strange library import error though. :-( I don't run mac here so I don't have any special insight. It seems like maybe there is an issue with the version of pandas (or python) you installed? Maybe one got upgraded, but not the other? The error says something about the code signature not being valid, and that's a bit above my paygrade. Maybe you need to uninstall and reinstall the latest pandas package? Sometimes googling the error message can help you find people that have seen this situation before and can provide hints or solutions or a little insight into what/why you are seeing this.

Curt.

On Wed, Mar 3, 2021 at 1:17 AM fran2a notifications@github.com wrote:

I've processed my pictures with process.py and all went fine but where is the map? So I tried explorer.py but I have an error:

./explorer.py ./Pix4d/ Traceback (most recent call last): File "/Users/xxxx/Downloads/ImageAnalysis-master/scripts/./explorer.py", line 24, in from direct.showbase.ShowBase import ShowBase # pip install panda3d File "/opt/homebrew/lib/python3.9/site-packages/direct/showbase/ShowBase.py", line 40, in from panda3d.core import * ImportError: dlopen(/opt/homebrew/lib/python3.9/site-packages/panda3d/ core.cpython-39-darwin.so, 2): no suitable image found. Did find: /opt/homebrew/lib/python3.9/site-packages/panda3d/ core.cpython-39-darwin.so: code signature in (/opt/homebrew/lib/python3.9/site-packages/panda3d/ core.cpython-39-darwin.so) not valid for use in process using Library Validation: Trying to load an unsigned library

thanks for help

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/UASLab/ImageAnalysis/issues/12, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACXYYDLFNA6XOBLQHIN7P7DTBXPCBANCNFSM4YQVTEQQ .

-- Curtis Olson University of Minnesota, Aerospace Engineering and Mechanics, UAS Lab

fran2a commented 3 years ago

Thanks for your answer. I don't find anything satisfaying related to the unsigned librray when googgling. But another question is this message : "importError: dlopen(/opt/homebrew/lib/python3.9/site-packages/panda3d/core.cpython-39-darwin.so, 2): no suitable image found." Which image file should the script find? I have nothing really exploitable when I run process.py...

clolsonus commented 3 years ago

If you look at the original message, it shows my script has an error at line #24 which reads:

from direct.showbase.ShowBase import ShowBase

So the actual error is deeper in the shared library dependencies of panda/python/macos. I run linux here so I would never see this exact error.

I am just totally guessing and I don't want you to screw up your system chasing my random ideas, but could you try uninstalling panda3d and reinstalling it? On my system here I would do that with pip, but maybe on the mac you use brew? It really feels like the versions of things got out of sync somehow ... like one part of your python install got upgraded, but not another?

Curt.

On Wed, Mar 3, 2021 at 1:19 PM fran2a notifications@github.com wrote:

Thanks for your answer. I don't find anything satisfaying related to the unsigned librray when googgling. But another question is this message : "importError: dlopen(/opt/homebrew/lib/python3.9/site-packages/panda3d/ core.cpython-39-darwin.so, 2): no suitable image found." Which image file should the script find? I have nothing really exploitable when I run process.py...

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/UASLab/ImageAnalysis/issues/12#issuecomment-789990695, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACXYYDO3FWY6XPPPJBDUWDTTB2DSTANCNFSM4YQVTEQQ .

-- Curtis Olson University of Minnesota, Aerospace Engineering and Mechanics, UAS Lab