esa / opengeode

OpenGEODE - a free SDL State Machine editor for space applications...and more
https://opengeode.net
GNU Lesser General Public License v3.0
69 stars 20 forks source link

Installation problems in Ubuntu 16.10 #36

Closed fcabaud closed 7 years ago

fcabaud commented 7 years ago

sudo apt-get install gnat-5

sudo zxvf ASN1SCC-latest.tgz

maxime-esa commented 7 years ago

For gnat, any version will do, the more recent the better. I am using gnat-6 on Debian Stretch.

Regarding update-ca-certificates (there was a typo in the README, this is why it said "command not found", the instruction missed the s at the end) I think you will not have any error if you clone the github repo (i.e. this one). The error happened on the ESA Gitlab repository, but even here I think it is fixed now.

Do you still have issues with the installation after doing the fixes you describe?

fcabaud commented 7 years ago

Processing /home/fcabaud/opengeode Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 1, in File "/tmp/pip-p3ok552i-build/setup.py", line 12, in import opengeode File "/tmp/pip-p3ok552i-build/opengeode/init.py", line 28, in from opengeode import opengeode, version, SDL_Scene, SDL_View, parse, init_qt File "/tmp/pip-p3ok552i-build/opengeode/opengeode.py", line 2409 key=lambda (name, sort): name): ^ SyntaxError: invalid syntax

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-p3ok552i-build/ Makefile:58 : la recette pour la cible « install » a échouée make: [install] Erreur 1

python version is Python 2.7.12+ (default, Sep 17 2016, 12:08:02)

maxime-esa commented 7 years ago

There is no syntax error, so I suspect that pip does not point to pip2 but to pip3 in your distro. I updated the Makefile, can you run the following from the opengeode directory:

$ git pull
$ make full-install

This should properly install all dependencies. Then try to run the application with:

$ opengeode
fcabaud commented 7 years ago

sudo apt install python-pip

Processing ./pygraphviz Installing collected packages: pygraphviz Running setup.py install for pygraphviz ... error Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-QSovEn-build/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-sMVYkv-record/install-record.txt --single-version-externally-managed --compile --user --prefix=: /usr/lib/python2.7/dist-packages/setuptools/dist.py:364: UserWarning: Normalizing '1.4.dev' to '1.4.dev0' normalized_version, running install Trying pkg-config Package libcgraph was not found in the pkg-config search path. Perhaps you should add the directory containing `libcgraph.pc' to the PKG_CONFIG_PATH environment variable No package 'libcgraph' found Traceback (most recent call last): File "", line 1, in File "/tmp/pip-QSovEn-build/setup.py", line 93, in tests_require=['nose>=0.10.1', 'doctest-ignore-unicode>=0.1.0',], File "/usr/lib/python2.7/distutils/core.py", line 151, in setup dist.run_commands() File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands self.run_command(cmd) File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "setup_commands.py", line 44, in modified_run self.include_path, self.library_path = get_graphviz_dirs() File "setup_extra.py", line 121, in get_graphviz_dirs include_dirs, library_dirs = _pkg_config() File "setup_extra.py", line 44, in _pkg_config output = S.check_output(['pkg-config', '--libs-only-L', 'libcgraph']) File "/usr/lib/python2.7/subprocess.py", line 574, in check_output raise CalledProcessError(retcode, cmd, output=output) subprocess.CalledProcessError: Command '['pkg-config', '--libs-only-L', 'libcgraph']' returned non-zero exit status 1

----------------------------------------

Command "/usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-QSovEn-build/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-sMVYkv-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-QSovEn-build/ Makefile:47 : la recette pour la cible « dependencies » a échouée make: *** [dependencies] Erreur 1

maxime-esa commented 7 years ago

Make sure you have installed all dependencies indicated in the README, including pkg-config, python-pyside, pyside-tools, graphviz, graphviz-dev. libgraphviz-dev, python-pip.

I don't think you should use sudo to run the makefile and the pip installations. The installation is done in the user space because pip is called with the --user flag.

fcabaud commented 7 years ago

Bingo Installing collected packages: opengeode Running setup.py install for opengeode ... done Successfully installed opengeode-1.5.28

Well, for running it. It's in

~/.local/bin/opengeode

Thank so much

maxime-esa commented 7 years ago

Yep, you have to add ~/.local/bin to your PATH.

Thanks for reporting these issues, the README and Makefile are better now.