v1.7.3 install issue under linux
Object-oriented equation-based modelling and optimisation software
Brought to you by:
ciroki
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.
Anonymous
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).
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.
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
thank you
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:
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
I have installed libgfortran3 and python3-tk package and itwas solved.
Is this problem caused because I installed daetools in a virtualenv ?
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?
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
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
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:
(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.
(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