Forum

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Hunter

Pages: [1]
1
Python and Java API / Re: External python modules not found
« on: June 03, 2019, 02:39:39 AM »
Thanks Alexey.

I was able to eventually solve the problem by rolling back to Ubuntu 18.04.  Desktop install with nothing special.  I then copied libpython3.5m.so.1.0 to the metashape/python/bin folder.  Finally, I ran...

Code: [Select]
sudo ./python3.5 -m pip install Pillow
and it installed correctly.  I then started Metashape and my python script to extract and use metadata in the EXIF fields worked great.  Thanks again for the support!

2
Python and Java API / Re: External python modules not found
« on: May 30, 2019, 07:03:54 PM »
Code: [Select]
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 19.04
Release: 19.04
Codename: disco


Thanks for the quick response.

3
Python and Java API / External python modules not found
« on: May 29, 2019, 04:05:49 PM »
I'm having trouble installing external python modules to Metashape and hoping someone can provide some insight.  I've read the Metashape manual and Python addendum and have tried the following:

1.
Code: [Select]
$.../metashape-pro/python/bin$ ./python3.5 -m pip install Pillow
Requirement already satisfied: Pillow in /usr/local/lib/python3.7/dist-packages (6.0.0)

(similar results for module Image and module exifread)

Next, I start Metashape and attempt to run my script by clicking tools->run script (script starts with the following lines and errors on line 2):
Code: [Select]
import Metashape
from PIL import Image
import PIL.ExifTags

and get the message box "No module named 'PIL'"

2. I installed libssl 0.9.8 (as shown on https://agisoft.freshdesk.com/support/solutions/articles/31000136860-how-to-install-external-python-module-to-metashape-professional-package)

3. Tried #1 again, but same result.

4. One oddity, when I type:
Code: [Select]
$.../metashape-pro/python/bin$ ./python3.5
Python 3.7.3 (default, Apr  3 2019, 05:39:12)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>

Notice that it runs the default python install on my machine (3.7.3).


5.
Code: [Select]
$.../metashape-pro/python/bin$ ./pip install Pillow
bash: ./pip: /opt/python3.5/bin/python3.5m: bad interpreter: No such file or directory

6.
Code: [Select]
$uname -a
Linux <computername> 5.0.0-15-generic #16-Ubuntu SMP Mon May 6 17:41:33 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Any ideas? (Thanks in advance)

Pages: [1]