Menu

#15 v1.7.3 install issue under linux

v1.0_(example)
open
nobody
None
1
2018-02-17
2018-01-07
Anonymous
No

Installation of daetools-1.7.3-gnu_linux-x86_64.tar.gz on linux (Ubuntu 16.04 lts, python 3.6.4 in pyenv) will fail with:

error: [Errno 2] No such file or directory: 'build/scripts-3.6/create_daetools_shortcuts.bat'

After:

touch build/scripts-3.6/create_daetools_shortcuts.bat

python setup.py install will complete normally and daetools is installed as expected.

svn2github mirrors your repository on github here. Can/do/will you check the github mirror and respond to issues there?

FWIW, thank you for this. Been hoping for something like daetoos since stumbling across ASCEND a while ago and I'm looking forward to making use of it should the chance arise.

Discussion

  • ciroki

    ciroki - 2018-01-08

    Hi,
    No problem, thanks for reporting it.
    That means the mentioned file does not exist (for some reasons) and the touch command creates it if it does not exist. I will check what is the reason (I get some other file missing).

     
  • ciroki

    ciroki - 2018-01-09

    It seems that under GNU/Linux setuptools does not copy empty files (create_daetools_shortcuts.bat is empty and not used at the moment) and therefore fails to finish the installation. When you run "touch" it is created and everything is fine.
    Apart from that the usr/share directory is missing (not related to virtual environments, only to system pythons).
    I will update the installation files on the SourceForge soon.

     
  • Anonymous

    Anonymous - 2018-01-11

    thank you

     
  • Jaime Souza

    Jaime Souza - 2018-02-17

    Hi.

    I had the same problem with Ubuntu 17.11. After:

    touch build/scripts-3.6/create_daetools_shortcuts.bat

    I could conclude the "python setup.py install", but I still have a problem when I try to run the tutorial cases:

    from daetools.pyDAE import *
      File "/home/jaimenms/PycharmProjects/teste/venv/lib/python3.6/site-packages/daetools-1.7.3-py3.6-linux-x86_64.egg/daetools/pyDAE/__init__.py", line 23, in <module>
        import pyIDAS
    ImportError: libgfortran.so.3: cannot open shared object file: No such file or directory
    

    I mannualy installed the gfortran package, but it didn't solve. I found the libgfortran.so.4 in my Ubuntu libs. Could you help me on this?

    p.s.: The next step would be to compile the daetools. I tried it but many packages for Ubuntu 17.11 have different names. I will to spend some hours searching for these packages.

     

    Last edit: Jaime Souza 2018-02-17
    • Jaime Souza

      Jaime Souza - 2018-02-17

      I have installed libgfortran3 and python3-tk package and itwas solved.

      Is this problem caused because I installed daetools in a virtualenv ?

       
      • ciroki

        ciroki - 2018-02-17

        I thought it is a problem with using daetools linked against the newer version of libc and libstdc++ but if it works then it is fine. Perhaps those libs were missing in the virtualenv. What do you use, environments in miniconda or you set them up in the system python?

         
    • ciroki

      ciroki - 2018-02-17

      Hi Jaime,

      Thanks for reporting the issue.

      I think I resolved the first issue (will be there in the new release, in a few days).

      As for the second one, on GNU Linux systems libgfortran is usually automatically installed. But that is not the problem I think.

      What I see first, is that you run daetools from the installation folder: /home/jaimenms/Downloads/daetools-1.7.3-gnu_linux-x86_64
      Although it is possible to run it without installation (i.e. by adding daetools folder to sys.path or just creating a symlink in the site-packages directory) you did install it.
      Perhaps it tries to do local imports and fails. Try to run tutorials from some other location.

      Second, (and I think that this is a problem) it could be that you installed the version for new systems (meaning daetools binaries are linked to newer versions of libc and stdc++ libraries, available only in Debian Stretch and Ubuntu 18+). Ubuntu 17 is supported by the installation for Older GNU/Linux (daetools-1.7.3-gnu_linux-x86_64-gcc4.9.tar.gz). Please try the version for the older systems and let me know if it works.

      If you want to compile it yourself it shouldn't be difficult on GNU/Linux (and particularly on Debian-based systems). Have a look on the Getting DAE Tools/Compiling from source section.
      First run the following scripts in the trunk directory: install_dependencies_linux.sh and install_python_dependencies_linux.sh to install required libraries. In those scripts, I tried to query the name of the distribution and use package names for that distribution.
      It should be easy then. Please try and let me know the outcome.

      Cheers
      Dragan

       
  • Anonymous

    Anonymous - 2018-02-17

    Hi Dragan,

    Thanks for the prompt response.

    (1) Installation approach

    I was not using miniconda. I was trying to work with virtualenv's directly py "python -m venv" and installed the packages using pypi. When I followed the "4.3.1.1.2. Install one of scientific python distributions¶" instructions, it worked almost fine.

    (2) "run daetools from the installation folder"

    You are correct. The example I sent was using the installation folder. But the same behaviour happened when using the venv.

    (3) "Ubuntu 17 is supported by the installation for Older GNU/Linux"

    That's important. I didn't realize that my Linux 17.11 was the "Older GNU/Linux". SO I installed the daetools-1.7.3-gnu_linux-x86_64.tar.gz one. I will upgrade to 18 and reinstall everything

    (4) "If you want to compile it yourself it shouldn't be difficult on GNU/Linux"

    I also tried it, but some packages were not found:

    sh install_dependencies_linux.sh 
    [sudo] password for jaimenms: 
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    E: Unable to locate package libqt4-dev
    E: Unable to locate package qtcreator
    E: Unable to locate package qt4-designer
    E: Unable to locate package swig
    

    (5) Miniconda in Ubuntu 17.11: Mayavi problem

    (just for your information, because I will now upgrade to Ubuntu 18.04)

    I followed the miniconda installation insctructions and it worked. I had some problems with the pygraphviz that required a manual installation of libgraphviz-dev and a parameter --include_dirs to identify the location of the graphviz source code. All worked fine except the Mayavi. When I run tutorial_dealii_3.py and try to create a 3D plot, I get the following error.

    ********************************************************************************
    WARNING: Imported VTK version (7.0) does not match the one used
             to build the TVTK classes (8.1). This may cause problems.
             Please rebuild TVTK.
    ********************************************************************************
    
    Traceback (most recent call last):
      File "/home/jaimenms/miniconda3/envs/teste2/lib/python3.6/site-packages/daetools-1.7.3-py3.6-linux-x86_64.egg/daetools/dae_plotter/plotter.py", line 283, in slotPlot3D
        if plot3D.newSurface() == False:
      File "/home/jaimenms/miniconda3/envs/teste2/lib/python3.6/site-packages/daetools-1.7.3-py3.6-linux-x86_64.egg/daetools/dae_plotter/mayavi_plot3d.py", line 72, in newSurface
        mlab.figure()
      File "/home/jaimenms/miniconda3/envs/teste2/lib/python3.6/site-packages/mayavi/tools/figure.py", line 63, in figure
        engine = get_engine()
      File "/home/jaimenms/miniconda3/envs/teste2/lib/python3.6/site-packages/mayavi/tools/engine_manager.py", line 101, in get_engine
        return self.new_engine()
      File "/home/jaimenms/miniconda3/envs/teste2/lib/python3.6/site-packages/mayavi/tools/engine_manager.py", line 146, in new_engine
        check_backend()
      File "/home/jaimenms/miniconda3/envs/teste2/lib/python3.6/site-packages/mayavi/tools/engine_manager.py", line 49, in check_backend
        ''')
    ImportError: Could not import backend for traits
    _______________________________________________________________________________
    Make sure that you have either the TraitsBackendWx or the TraitsBackendQt
    projects installed. If you installed Mayavi with easy_install, try
    easy_install <pkg_name>. easy_install Mayavi[app] will also work.
    
    If you performed a source checkout, be sure to run 'python setup.py install'
    in Traits, TraitsGUI, and the Traits backend of your choice.
    
    Also make sure that either wxPython or PyQT is installed.
    wxPython: http://www.wxpython.org/
    PyQT: http://www.riverbankcomputing.co.uk/software/pyqt/intro
    
     
  • ciroki

    ciroki - 2018-02-17

    (1) Right. I asked for I never used it that way and was curious if it works.
    (2) (3) ok
    (4) Again it's good that you tried. That's how the free/open source software works: it does require some effort :-). I forgot to update the packages for the new versions, will be available soon in 1.8.0. In the meantime, you need python-pyqt5, qtbase5-dev, and you don't need qtcreator. swig should be there, though.
    (5) That's a known problem with mayavi. It requires some mental gymnastics for different platforms/pythons etc. What's on DAE Tools site should work for miniconda, and system pythons. The same for pygraphviz. Perhaps it is best to use pip. Anyway, please check. Does the mayavi in system python work properly?

    Dragan

     
  • Anonymous

    Anonymous - 2018-02-17
    Post awaiting moderation.

Anonymous
Anonymous

Add attachments
Cancel