Forum

Author Topic: Interactive mode doesn't have readline  (Read 3024 times)

tinco

  • Newbie
  • *
  • Posts: 8
    • View Profile
Interactive mode doesn't have readline
« on: May 20, 2019, 11:47:29 AM »
This is more sort of a bug report or feature request I think. Sometimes I have to experiment on the server a little to prepare a render, and I use:

Code: [Select]
metashape.sh -platform offscreen -i

To load the project and make some tweaks. This works well, but an inconvenience is that the metashape python doesn't have the readline package installed. This means that the arrow keys don't work, so I can not correct typos or go back to a previous line in history.

It's a small thing, but I get that it might be complicated to work in production for you guys, maybe just a way or a guide on how to enable readline would be nice.  :)

tinco

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Interactive mode doesn't have readline
« Reply #1 on: May 21, 2019, 12:04:37 PM »
I tried adding the readline module like in the guide here:

https://agisoft.freshdesk.com/support/solutions/articles/31000136860-how-to-install-external-python-module-to-metashape-professional-package

And I got libssl0.9.8 installed, but I'm still getting the "cannot import name 'HTTPSHandler'" error. Is there some step to reconfigure python missing?

Code: [Select]
tinco@metashape-experiment:~$ ls /usr/lib/libssl.so.0.9.8
/usr/lib/libssl.so.0.9.8
tinco@metashape-experiment:~$ uname -a
Linux metashape-experiment 4.9.0-9-amd64 #1 SMP Debian 4.9.168-1 (2019-04-12) x86_64 GNU/Linux
tinco@metashape-experiment:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 9.9 (stretch)
Release:        9.9
Codename:       stretch
tinco@metashape-experiment:~$ ./bin/metashape_interactive.sh
Agisoft Metashape Professional Version: 1.5.2 build 7838 (64 bit)
Platform: Linux
CPU: Intel(R) Xeon(R) CPU @ 2.00GHz
CPU family: 6 model: 85 signature: 50653h
RAM: 354.3 GB
Starting Interactive Python Console
Type exit() and press Enter to exit
>>>
tinco@metashape-experiment:~$ ./metashape-pro/python/bin/python3.5 -m pip install readline
Traceback (most recent call last):
.....
  File "/home/tinco/metashape-pro/python/lib/python3.5/site-packages/pip/_vendor/distlib/compat.py", line 66, in <module>
    from urllib.request import (urlopen, urlretrieve, Request, url2pathname,
ImportError: cannot import name 'HTTPSHandler'