Error during installation attempt at Ubuntu 16.04
Object-oriented equation-based modelling and optimisation software
Brought to you by:
ciroki
During installation of DAE Tools 1.8.0 at Ubuntu 16.04 64 bit, I get the following error:
error: can't copy 'daetools/docs/html/_static/bootstrap-3.3.6': doesn't exist or not a regular file
I followed the steps at 4.3.1.1.1. Use the system’s Python
Earlier, it gives UserWarning: Unknown distribution option: 'python_requires'
Also, I think the package name to be installed must be python-pyqt5 rather than python-qt5.
Anonymous
It is difficult to tell what is the error. Does the daetools/docs/html/_static/bootstrap-3.3.6 folder exist? What is your Python version?
The warning is probably due to the outdated setuptools. You are correct about python-pyqt5, I'll update the docs.
Yes, the folder exists, containing three subfolders.
My Python version is 2.7.12, and Setuptool 20.7.0-1
Well, it is hard to tell why it fails to copy the files from a folder when the files do exist.
Could you send me the output and perhaps run it with the
--verboseflag? Perhaps it can help with the source of the error.Yes, sure.
By the way, I got DAE Tools to work on another machine running Debian 9, with
Python 2.7.13andsetuptools 33.1.1-1. So with Ubuntu 16.04, there seems to be some version issue I guess.I had the same problem.
I just saw the post, it was stuck in moderation.
From the output I would say it tries to copy a folder as a file and fails. If I can recall correctly I faced something similar in the past, but can't remember the versions of python and the OS.
I'll try to install Ubuntu 16.04 and detect the error.
Dragan
I would need one more thing.
Can you guys take setup.py, uncomment line 291:
print('\n'.join(docshtmldirs))
add sys.exit() after it and send me the output?
I'd like to check the contents of the list on buntu 16.04.
Since I do not get that error, can you test the solution for me?
Please replace the lines in setup.py:
with
and let me know if it works.
The error you get is because in your system copying of the glob:
directory/*.*fails if that directory does not contain files (only folders).Dragan
I tested in Ubuntu 16.04 and this is the working solution.
The lines starting at 291:
should be replaced wth:
Please try.
Thanks a lot for looking into this! I can confirm the installation now finishes on my machine!
I used Python3, i.e., I installed the
python3-*versions of the required packages (viaapt-get), and also ran the installation script as insudo python3 setup.py installWhen I try starting
daeplotterordaeexamples, I get:/usr/bin/python: No module named daetools.dae_plotter(Python version is
3.5.2btw)Since I mostly use the
daeCSVFileDataReporter()for my model, it's not that big of an issue, except that most tutorials won't run. Do you have an idea how to fix this?Looking forward to start working seriously with DAE Tools for my research.
No problem. Great that it works.
Can't say for sure, but these scripts use the default python. It could be that the default python command in your system is python2 and you explicitly used python3. Try with:
python -m daetools.dae_plotter.plotterand
python3 -m daetools.dae_plotter.plotterand see what happens. It should work in the second case.
Probably it is the same issues with daeexamples.