Exactly.
Thanks!
explorer.exe %APPDATA%/FFGo/Logs
C:\Windows>explorer.exe C:\Users\$Username\AppData\Roaming\FFGo\Logs\
##########################
#### Updating FFGo! ####
##########################
Already up-to-date.
make -C share/icons
make[1]: Entering directory '/media/FG/ffgo/share/icons'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/media/FG/ffgo/share/icons'
make -C ffgo/data/pics
make[1]: Entering directory '/media/FG/ffgo/ffgo/data/pics'
make[1]: Nothing to be done for 'default'.
make[1]: Leaving directory '/media/FG/ffgo/ffgo/data/pics'
make -C ffgo/data/locale update-mo
make[1]: Entering directory '/media/FG/ffgo/ffgo/data/locale'
make[1]: Nothing to be done for 'update-mo'.
make[1]: Leaving directory '/media/FG/ffgo/ffgo/data/locale'
Traceback (most recent call last):
File "bin/pip", line 7, in <module>
from pip import main
ImportError: No module named 'pip'
/media/FG/ffgo/bin/ffgo
Traceback (most recent call last):
File "/media/FG/ffgo/bin/ffgo", line 5, in <module>
from pkg_resources import load_entry_point
ImportError: No module named 'pkg_resources'
pip install --upgrade --force-reinstall FFGo ./
Unpacking /media/FG/ffgo
Running setup.py (path:/tmp/pip-JyYq5v-build/setup.py) egg_info for package from file:///media/FG/ffgo
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/tmp/pip-JyYq5v-build/setup.py", line 23, in <module>
with open(version_file, "r", encoding="utf-8") as f:
TypeError: 'encoding' is an invalid keyword argument for this function
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/tmp/pip-JyYq5v-build/setup.py", line 23, in <module>
with open(version_file, "r", encoding="utf-8") as f:
TypeError: 'encoding' is an invalid keyword argument for this function
----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip-JyYq5v-build
Storing debug log for failure in /home/chris/.pip/pip.log
pip install FFGo ./
Unpacking /media/FG/ffgo
Running setup.py (path:/tmp/pip-iAL1Fd-build/setup.py) egg_info for package from file:///media/FG/ffgo
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/tmp/pip-iAL1Fd-build/setup.py", line 23, in <module>
with open(version_file, "r", encoding="utf-8") as f:
TypeError: 'encoding' is an invalid keyword argument for this function
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/tmp/pip-iAL1Fd-build/setup.py", line 23, in <module>
with open(version_file, "r", encoding="utf-8") as f:
TypeError: 'encoding' is an invalid keyword argument for this function
----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip-iAL1Fd-build
Storing debug log for failure in /home/chris/.pip/pip.log
------------------------------------------------------------
/usr/bin/pip run on Sun Jan 24 17:10:17 2016
Unpacking /media/FG/ffgo
Running setup.py (path:/tmp/pip-iAL1Fd-build/setup.py) egg_info for package from file:///media/FG/ffgo
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/tmp/pip-iAL1Fd-build/setup.py", line 23, in <module>
with open(version_file, "r", encoding="utf-8") as f:
TypeError: 'encoding' is an invalid keyword argument for this function
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/tmp/pip-iAL1Fd-build/setup.py", line 23, in <module>
with open(version_file, "r", encoding="utf-8") as f:
TypeError: 'encoding' is an invalid keyword argument for this function
----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip-iAL1Fd-build
Exception information:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main
status = self.run(options, args)
File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 290, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1230, in prepare_files
req_to_install.run_egg_info()
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 326, in run_egg_info
command_desc='python setup.py egg_info')
File "/usr/lib/python2.7/dist-packages/pip/util.py", line 716, in call_subprocess
% (command_desc, proc.returncode, cwd))
InstallationError: Command python setup.py egg_info failed with error code 1 in /tmp/pip-iAL1Fd-build
chris_blues wrote in Sun Jan 24, 2016 5:23 pm:Hi there!
I just decided, that I am too lazy and inexperienced with Python3 and pip and all that, so I'll switch to the debian repository. Now, all I'm missing is the key to verify the packages(key C785B90B5053A3A2). Apt is really annoyed! Where can I get it? Maybe a hint on the Homepage would be nice too...
gpg2 --recv-keys C785B90B5053A3A2
gpg2 --list-keys --fingerprint C785B90B5053A3A2
pub rsa4096/0xC785B90B5053A3A2 2010-03-17 [expires: 2016-10-19]
Key fingerprint = 125B 5A0F DB78 8FDD 0EF4 1A9D C785 B90B 5053 A3A2
gpg2 --export -o ~/tmp/flo-key C785B90B5053A3A2
wget -O ~/tmp/flo-key https://people.via.ecp.fr/~flo/OpenPGP-key.asc
apt-key add flo-key
wget -O- https://people.via.ecp.fr/~flo/OpenPGP-key.asc | apt-key add -
chris_blues wrote in Sun Jan 24, 2016 5:23 pm:Many ppa's provide their keys in a keyring deb-package inside their repo.
chris_blues wrote in Sun Jan 24, 2016 5:23 pm:Additionally, FFGo doesn't require FlightGear to work. There a lot of unnecessary dependencies in there. Maybe you'd like to change that, so only necessary packages are being pulled along.
% dpkg -s ffgo
Package: ffgo
[...]
Version: 1.9.0-1~frougon+deb9
Depends: python3-condconfigparser, python3:any (>= 3.4~), libjs-sphinxdoc (>= 1.0), python3-pkg-resources, python3-tk
Recommends: flightgear (>= 2.0.0), python3-pil.imagetk, geographiclib-tools
% man apt-get
[...]
--no-install-recommends
Do not consider recommended packages as a dependency for
installing. Configuration Item: APT::Install-Recommends.
# apt-get install equivs
% cat >/tmp/flightgear-control <<EOF
Section: games
Priority: optional
Standards-Version: 3.9.6
Package: flightgear
Version: 2016.1.0+dummy
Maintainer: Your Name <yourname@example.com>
Description: dummy package pretending to be flightgear
This package is empty. Install it if you want apt and dpkg to believe you
have the flightgear Debian package installed.
.
Note that this package does *not* contain FlightGear!
EOF
% cd /tmp
/tmp % equivs-build flightgear-control
/tmp # dpkg -i flightgear_2016.1.0+dummy_all.deb # installs the dummy pkg
chris_blues wrote in Sun Jan 24, 2016 5:23 pm:
- Code: Select all
The following additional packages will be installed:
flightgear flightgear-data-ai flightgear-data-aircrafts flightgear-data-all flightgear-data-base flightgear-data-models geographiclib-tools
libgeographic14 libhtsengine1 libjs-excanvas libjs-jquery-flot libjs-leaflet libjs-sphinxdoc libsimgearcore3.4.0v5 libsimgearscene3.4.0v5
python3-condconfigparser
The only really required package is python3* and python3-condconfigparser. all the others are maybe recommended, but not required. (Don't know about this libjs/jquery stuff... seems odd...
apt-get install --no-install-recommends ffgo
chris_blues wrote in Sun Jan 24, 2016 5:23 pm:This is, because FFGo or Python3 or whatever refuses tu build/update my copy of FFGo. So I thought, maybe I did sth stupid to my copy (No idea what I possibly could have done. Never touched this dir...)
chris_blues wrote in Sun Jan 24, 2016 5:23 pm:Outputs:
* update script
- Code: Select all
##########################
#### Updating FFGo! ####
##########################
Already up-to-date.
make -C share/icons
make[1]: Entering directory '/media/FG/ffgo/share/icons'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/media/FG/ffgo/share/icons'
make -C ffgo/data/pics
make[1]: Entering directory '/media/FG/ffgo/ffgo/data/pics'
make[1]: Nothing to be done for 'default'.
make[1]: Leaving directory '/media/FG/ffgo/ffgo/data/pics'
make -C ffgo/data/locale update-mo
make[1]: Entering directory '/media/FG/ffgo/ffgo/data/locale'
make[1]: Nothing to be done for 'update-mo'.
make[1]: Leaving directory '/media/FG/ffgo/ffgo/data/locale'
Traceback (most recent call last):
File "bin/pip", line 7, in <module>
from pip import main
ImportError: No module named 'pip'
cd ../ffgo
git pull
make
bin/pip install --upgrade --force-reinstall FFGo ./
chris_blues wrote in Sun Jan 24, 2016 5:23 pm:* Try to start FFGo:
- Code: Select all
/media/FG/ffgo/bin/ffgo
Traceback (most recent call last):
File "/media/FG/ffgo/bin/ffgo", line 5, in <module>
from pkg_resources import load_entry_point
ImportError: No module named 'pkg_resources'
chris_blues wrote in Sun Jan 24, 2016 5:23 pm:* Try to update "by hand":
- Code: Select all
pip install --upgrade --force-reinstall FFGo ./
Unpacking /media/FG/ffgo
Running setup.py (path:/tmp/pip-JyYq5v-build/setup.py) egg_info for package from file:///media/FG/ffgo
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/tmp/pip-JyYq5v-build/setup.py", line 23, in <module>
with open(version_file, "r", encoding="utf-8") as f:
TypeError: 'encoding' is an invalid keyword argument for this function
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/tmp/pip-JyYq5v-build/setup.py", line 23, in <module>
with open(version_file, "r", encoding="utf-8") as f:
TypeError: 'encoding' is an invalid keyword argument for this function
pip install --upgrade --force-reinstall FFGo ./
/foo/bar/bin/pip install pkg1 pkg2 ... pkgn
chris_blues wrote in Sun Jan 24, 2016 5:23 pm:* without the options:
- Code: Select all
pip install FFGo ./
Unpacking /media/FG/ffgo
Running setup.py (path:/tmp/pip-iAL1Fd-build/setup.py) egg_info for package from file:///media/FG/ffgo
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/tmp/pip-iAL1Fd-build/setup.py", line 23, in <module>
with open(version_file, "r", encoding="utf-8") as f:
TypeError: 'encoding' is an invalid keyword argument for this function
[...]
# Mandatory
apt-get install python3 python3-tk python3-venv
# Optional; may help if you want to compile Pillow
apt-get install libpython3-dev tcl-dev tk-dev
# Optional: to have magnetic headings and magnetic declination
apt-get install geographiclib-tools
/usr/sbin/geographiclib-get-magnetic minimal
# Highly optional, for better precision (no idea if one can see the
# difference for typical aviation needs):
/usr/sbin/geographiclib-get-magnetic emm2015
~ % mkdir ~/my-venvs
~ % cd ~/my-venvs/
# You may want to use '/usr/bin/pyvenv-3.4' or '/usr/bin/python3.4
# -m venv' instead of '/usr/bin/pyvenv' to make sure which Python
# version you are working with. It is *very* important that you are
# clear about that. Of course, it must correspond to the packages
# you installed above.
~/my-venvs % /usr/bin/pyvenv-3.4 venv1
~/my-venvs % ls my-venv1
bin include lib lib64 pyvenv.cfg
# Install FFGo in this venv using the pip executable **_from this venv_**
~/my-venvs % venv1/bin/pip install ffgo
Downloading/unpacking ffgo
Downloading FFGo-1.9.0.tar.gz (767kB): 767kB downloaded
Running setup.py (path:/tmp/pip-build-phq2qtge/ffgo/setup.py) egg_info for package ffgo
[...]
Downloading/unpacking CondConfigParser (from ffgo)
Downloading CondConfigParser-1.0.2.tar.bz2 (46kB): 46kB downloaded
Running setup.py (path:/tmp/pip-build-phq2qtge/CondConfigParser/setup.py) egg_info for package CondConfigParser
[...]
Installing collected packages: ffgo, CondConfigParser
Running setup.py install for ffgo
[...]
Successfully installed ffgo CondConfigParser
Cleaning up...
~/my-venvs % venv1/bin/ffgo
FFGo 1.9.0 started
Using:
- Python 3.4.4
- CondConfigParser 1.0.2
- MagneticField: GeographicLib version 1.45
[FFGo warning] Pillow library not found. Aircraft thumbnails won't be
displayed.
[FFGo notice] GeographicLib's Python binding not found. FFGo has fallback
strategies, therefore you shouldn't see much of a difference. However, some
particular geodetic calculations can only be done with GeographicLib. You will
be notified when such a case is encountered.
Detected FlightGear version: 2016.1.0
# FFGo works. It just told us about the two optional dependencies we
# haven't installed. Let's install them. There is another way that
# uses Debian packages (creating the venv with
# --system-site-packages), this is explained in INSTALL_en, I can't
# replicate all of its contents here.
~/my-venvs % venv1/bin/pip install Pillow geographiclib
Downloading/unpacking Pillow
Downloading Pillow-3.1.0.tar.gz (9.9MB): 9.9MB downloaded
[...]
Installing collected packages: Pillow, geographiclib
Running setup.py install for Pillow
warning: no previously-included files found matching '.editorconfig'
building 'PIL._imaging' extension
[...]
Cleaning up...
# Let's start FFGo again
~/my-venvs % venv1/bin/ffgo
FFGo 1.9.0 started
Using:
- Python 3.4.4
- CondConfigParser 1.0.2
- GeographicLib's Python binding 1.45
- MagneticField: GeographicLib version 1.45
Detected FlightGear version: 2016.1.0
~/my-venvs %
# No warning anymore: all optional deps are installed for
# ~/my-venvs/venv1/bin/ffgo.
~ % cd ~/my-venvs
# Create a virtual environment
~/my-venvs % /usr/bin/pyvenv-3.4 venv2
# Install CondConfigParser in this venv using the pip executable
# **_from this venv_**
~/my-venvs % venv2/bin/pip install CondConfigParser
Downloading/unpacking CondConfigParser
Downloading CondConfigParser-1.0.2.tar.bz2 (46kB): 46kB downloaded
Running setup.py (path:/tmp/pip-build-gdlz9yez/CondConfigParser/setup.py)
[...]
Successfully installed CondConfigParser
Cleaning up...
~ % mkdir ~/src
~ % cd ~/src
# Clone FFGo's Git repository
~/src % git clone https://github.com/frougon/FFGo.git ffgo.git
Cloning into 'ffgo.git'...
remote: Counting objects: 3001, done.
remote: Total 3001 (delta 0), reused 0 (delta 0), pack-reused 3001
Receiving objects: 100% (3001/3001), 1.39 MiB | 940.00 KiB/s, done.
Resolving deltas: 100% (1927/1927), done.
Checking connectivity... done.
~/src % cd ffgo.git
# This must be done whenever you work with FFGo's Git repo (unless
# you know what you are doing), after 'git clone' and every 'git
# pull' to have exisiting and up-to-date icons and translation (.mo)
# files. This requires installing stuff indicated in
# INSTALL_en's “Installation from the Git repository” section.
~/src/ffgo.git % make
make -C share/icons
make[1]: Entering directory '/home/flo/src/ffgo.git/share/icons'
[...]
make[1]: Leaving directory '/home/flo/src/ffgo.git/ffgo/data/locale'
# Since FFGo was not installed with pip in this case, no 'ffgo'
# executable has been created. The recommended way to run FFGo in
# such a case is via the ffgo-launcher.py script. The full path to
# ffgo-launcher.py is not needed here since it is in the current
# directory, however if you create an alias for this command, or if
# you configure an icon in your menu bar/whatever to run it, you
# will need the path (and maybe '/home/username' instead of '~'
# too). The path to the Python interpreter, however
# (~/my-venvs/venv2/bin/python), is crucial since it is for *this*
# Python interpreter that we have installed CondConfigParser.
~/src/ffgo.git % ~/my-venvs/venv2/bin/python ~/src/ffgo.git/ffgo-launcher.py
FFGo 1.9.0 started
Using:
- Python 3.4.4
- CondConfigParser 1.0.2
- MagneticField: GeographicLib version 1.45
[FFGo warning] Pillow library not found. Aircraft thumbnails won't be
displayed.
[FFGo notice] GeographicLib's Python binding not found. FFGo has fallback
strategies, therefore you shouldn't see much of a difference. However, some
particular geodetic calculations can only be done with GeographicLib. You will
be notified when such a case is encountered.
Detected FlightGear version: 2016.1.0
~/src/ffgo.git %
# Again, FFGo works fine and just warns us about the two optional
# dependencies it couldn't find. They can be installed in exactly
# the same way as above by substituting 'venv2' for 'venv1'.
# Examine what is installed in ~/my-venvs/venv1
% ~/my-venvs/venv1/bin/pip list
CondConfigParser (1.0.2)
FFGo (1.9.0)
geographiclib (1.45)
Pillow (3.1.0)
pip (1.5.6)
setuptools (18.8)
# Now, let's see what can be updated
% ~/my-venvs/venv1/bin/pip list --outdated
setuptools (Current: 18.8 Latest: 19.5)
pip (Current: 1.5.6 Latest: 8.0.2)
# Only 'setuptools' and 'pip' are out-of-date in this venv, let's upgrade them:
% ~/my-venvs/venv1/bin/pip install --upgrade setuptools pip
Downloading/unpacking setuptools from https://pypi.python.org/packages/3.5/s/setuptools/setuptools-19.5-py2.py3-none-any.whl#md5=c44407cb10f9b231f5a05908dea1a803
Downloading setuptools-19.5-py2.py3-none-any.whl (471kB): 471kB downloaded
Downloading/unpacking pip from https://pypi.python.org/packages/py2.py3/p/pip/pip-8.0.2-py2.py3-none-any.whl#md5=2056f553d5b593d3a970296f229c1b79
Downloading pip-8.0.2-py2.py3-none-any.whl (1.2MB): 1.2MB downloaded
[...]
Successfully installed setuptools pip
Cleaning up...
%
# For what is installed in the venv, it is the same as in the first
# case.
% ~/my-venvs/venv2/bin/pip list --outdated
setuptools (Current: 18.8 Latest: 19.5)
pip (Current: 1.5.6 Latest: 8.0.2)
# Again, the same two packages need an update; all others are at
# their latest upstream stable version.
% ~/my-venvs/venv2/bin/pip install --upgrade setuptools pip
Downloading/unpacking setuptools from https://pypi.python.org/packages/3.5/s/setuptools/setuptools-19.5-py2.py3-none-any.whl#md5=c44407cb10f9b231f5a05908dea1a803
[...]
Successfully installed setuptools pip
Cleaning up...
# FFGo was not installed via pip in the venv. We use the Git repo for FFGo:
% cd ~/src/ffgo.git
~/src/ffgo.git % git pull
Already up-to-date.
~/src/ffgo.git % make
make -C share/icons
make[1]: Entering directory '/home/flo/src/ffgo.git/share/icons'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/flo/src/ffgo.git/share/icons'
make -C ffgo/data/pics
make[1]: Entering directory '/home/flo/src/ffgo.git/ffgo/data/pics'
make[1]: Nothing to be done for 'default'.
make[1]: Leaving directory '/home/flo/src/ffgo.git/ffgo/data/pics'
make -C ffgo/data/locale update-mo
make[1]: Entering directory '/home/flo/src/ffgo.git/ffgo/data/locale'
make[1]: Nothing to be done for 'update-mo'.
make[1]: Leaving directory '/home/flo/src/ffgo.git/ffgo/data/locale'
~/src/ffgo.git %
# Everything is up-to-date now.
Users browsing this forum: No registered users and 9 guests