Giter VIP home page Giter VIP logo

Comments (7)

maxime-esa avatar maxime-esa commented on July 30, 2024

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?

from opengeode.

fcabaud avatar fcabaud commented on July 30, 2024
  • well, with > sudo update-ca-certificates
    It's OK

  • make install
    Trace is

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)

from opengeode.

maxime-esa avatar maxime-esa commented on July 30, 2024

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

from opengeode.

fcabaud avatar fcabaud commented on July 30, 2024
  • sudo git pull
    remote: Counting objects: 4, done.
    remote: Compressing objects: 100% (1/1), done.
    remote: Total 4 (delta 3), reused 4 (delta 3), pack-reused 0
    Dépaquetage des objets: 100% (4/4), fait.
    Depuis https://github.com/esa/opengeode
    3f6de43..1583a6a master -> origin/master
    Mise à jour 3f6de43..1583a6a
    Fast-forward
    Makefile | 20 ++++++++++----------
    README.md | 2 +-
    asn1-value-editor | 2 +-
    dmt | 2 +-
    properties | 2 +-
    pymsc | 2 +-
    6 files changed, 15 insertions(+), 15 deletions(-)

  • sudo make full-install
    Chemin de sous-module 'asn1-value-editor' : '5652026598202a7c3230b4e322f7aa0b66377842' extrait
    Chemin de sous-module 'dmt' : '6665e0632db0a1b11c2942bd8ae293a00d9bc126' extrait
    Chemin de sous-module 'properties' : 'bfaa6f1858d7cc21a3daa8a52cb66339022e9e7c' extrait
    Chemin de sous-module 'pymsc' : '291c7bcef7a6c4648e797103adeb42f4faf50a50' extrait
    make: pip2 : commande introuvable
    Makefile:47 : la recette pour la cible « dependencies » a échouée
    make: *** [dependencies] Erreur 127

    -> pip2 wasn't installed (I dont known the difference with pip)

sudo apt install python-pip

  • Then (again) sudo make full-install
    from ply import yacc
    ImportError: No module named ply
    -> sudo pip install ply
  • Then (again) sudo make full-install

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

from opengeode.

maxime-esa avatar maxime-esa commented on July 30, 2024

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.

from opengeode.

fcabaud avatar fcabaud commented on July 30, 2024

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

from opengeode.

maxime-esa avatar maxime-esa commented on July 30, 2024

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

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

from opengeode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.