<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>I' ve seen too in the future library's web that the
standard_library is located in the importlib package. But when I
do pip3 install importlib crashes too<br>
<br>
<i><font size="-1">Traceback (most recent call last):<br>
File "<string>", line 1, in <module><br>
File
"/usr/lib/python3/dist-packages/setuptools/__init__.py", line
5, in <module><br>
import distutils.core<br>
File "/usr/lib/python3.5/distutils/core.py", line 16, in
<module><br>
from distutils.dist import Distribution<br>
File "/usr/lib/python3.5/distutils/dist.py", line 19, in
<module><br>
from distutils.util import check_environ, strtobool,
rfc822_escape<br>
File "/usr/lib/python3.5/distutils/util.py", line 9, in
<module><br>
import importlib.util<br>
ImportError: No module named 'importlib.util'<br>
Error in sys.excepthook:<br>
Traceback (most recent call last):<br>
File
"/usr/lib/python3/dist-packages/apport_python_hook.py", line
63, in apport_excepthook<br>
from apport.fileutils import likely_packaged,
get_recent_crashes<br>
File
"/usr/lib/python3/dist-packages/apport/__init__.py", line 5,
in <module><br>
from apport.report import Report<br>
File "/usr/lib/python3/dist-packages/apport/report.py",
line 13, in <module><br>
import fnmatch, glob, traceback, errno, sys, atexit,
locale, imp<br>
File "/usr/lib/python3.5/imp.py", line 19, in
<module><br>
from importlib._bootstrap import _ERR_MSG, _exec,
_load, _builtin_from_name<br>
ImportError: No module named 'importlib._bootstrap'<br>
<br>
Original exception was:<br>
Traceback (most recent call last):<br>
File "<string>", line 1, in <module><br>
File
"/usr/lib/python3/dist-packages/setuptools/__init__.py", line
5, in <module><br>
import distutils.core<br>
File "/usr/lib/python3.5/distutils/core.py", line 16, in
<module><br>
from distutils.dist import Distribution<br>
File "/usr/lib/python3.5/distutils/dist.py", line 19, in
<module><br>
from distutils.util import check_environ, strtobool,
rfc822_escape<br>
File "/usr/lib/python3.5/distutils/util.py", line 9, in
<module><br>
import importlib.util<br>
ImportError: No module named 'importlib.util'<br>
<br>
----------------------------------------<br>
Command "python setup.py egg_info" failed with error code 1 in
/tmp/pip-build-2m9qjc26/importlib/</font></i><br>
</p>
<p>Thanks<br>
</p>
<br>
<div class="moz-cite-prefix">El 18/12/16 a las 18:45, Jose Antonio
escribió:<br>
</div>
<blockquote
cite="mid:b3b11efe-e9c8-18f0-0ffc-8fc4168a599e@gmail.com"
type="cite">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
Hi all,<br>
<br>
I'm on install SITL software to emulate a plane which can be
operated over MAVLink commands, all the install instruction are
here <a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://ardupilot.org/dev/docs/setting-up-sitl-on-linux.html">http://ardupilot.org/dev/docs/setting-up-sitl-on-linux.html</a>
for anyone interested.<br>
<br>
<i><font size="-1">I had a trouble finished the installation on
the first launch. <br>
<br>
Waf: Entering directory `/home/josete/ardupilot/build/sitl'<br>
[4/4] Processing
modules/mavlink/message_definitions/v1.0/ardupilotmega.xml<br>
Traceback (most recent call last):<br>
File
"/home/josete/ardupilot/modules/mavlink/pymavlink/tools/mavgen.py",
line 16, in <module><br>
from pymavlink.generator import mavgen<br>
File
"/home/josete/ardupilot/modules/mavlink/pymavlink/generator/mavgen.py",
line 12, in <module><br>
from future import standard_library<br>
ImportError: No module named future<br>
<br>
mavgen returned 1 error code<br>
Waf: Leaving directory `/home/josete/ardupilot/build/sitl'<br>
Build failed<br>
-> task in 'mavlink' failed (exit status 1):<br>
{task 140126879052096: mavgen ardupilotmega.xml -> }<br>
''</font></i><br>
<br>
It seems can't do the import " from future import
standard_library". Future library is installed and in the last
version but for import future y usually use __future__ not future.
Searching more information I saw in the future's web <a
moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://python-future.org/quickstart.html"><a class="moz-txt-link-freetext" href="http://python-future.org/quickstart.html">http://python-future.org/quickstart.html</a></a>
the import is correct but ¿what can I do to solve the problem?<br>
<br>
Thanks a lot </blockquote>
<br>
</body>
</html>