Atom topic feed | site map | contact | login | Protection des données personnelles | Powered by FluxBB | réalisation artaban
You are not logged in.
Hello developers,
I am trying to repeatedly install CodeAster_11.0 on several new HardDrives (under Ubuntu 11.04 Natty 64 Bit) and have found a minor shortcoming in the setup.py script. It does not check for the presence of 'wish' and so subsequently the install fails after some time (well into the process)
It would be a good idea to have 'python setup.py test' check for all the necessary packages so a user knows before hand whether there is a reasonable chance of success. Also flagging certain packages as 'Reqd', others as 'Optional' would be nice feature to add as the 'test or install' is checking for them. For example if the output looks something like:
R Checking for something1 ... found /usr/lib/something1.so ..... [OK]
O Checking for something2 ... not found ..... [OK]
R Checking for something3 ... not found ..... [FAIL]
Stopped due to previous error!
where the 'R' = Required and "O" = Optional and with colored [OK] &[FAIL] would be nice to have as done elsewhere in the compilation process.
Such an enhancement would make CodeAster a bit easier to compile on various platforms... As I am doing this I hope to bring to light some of these little tweaks that can improve the installation experience. Thanks!
Regards, JMB
Last edited by JMB365 (2011-10-16 14:26:16)
SalomeMeca 2021
Ubuntu 20.04, 22.04
Offline
Hello developers,
By running an install over the past few days using MPI I noticed several quirks in the install / as_run process. Here is one more.
Here is what I did:
echo "`uname -n`" > /opt/aster/etc/codeaster/aster-mpihosts
cp /opt/aster/etc/codeaster/aster-mpihosts /opt/aster/etc/codeaster/mpi_hostfile
This works fine when I subsequently run:
/opt/aster/bin/as_run --auto_update --nolocal --vers=NEW11.0
But if I choose to:
ln -s /opt/aster/etc/codeaster/aster-mpihosts /opt/aster/etc/codeaster/mpi_hostfile
then the as_run update process fails with:
copying /opt/aster/share/codeaster/backup/backup_1.10.0/etc/codeaster/.mysql_connect_REX -> /opt/aster/etc/codeaster/.orig-.mysql_connect_REX
copying /opt/aster/share/codeaster/backup/backup_1.10.0/etc/codeaster/aster.install_NEW11.0 -> /opt/aster/etc/codeaster
Traceback (most recent call last):
File "setup.py", line 223, in <module>
main()
File "setup.py", line 219, in main
configuration.configure()
File "/tmp/astk_ks/ks-ubuntu31-astk_update.29479/astk-1.10.2/configuration/__init__.py", line 110, in configure
finalize(_rootdir, _prefix, _parameters, _previous_version, **_options)
File "/tmp/astk_ks/ks-ubuntu31-astk_update.29479/astk-1.10.2/configuration/post_install.py", line 84, in finalize
copy_tree(old, new)
File "/usr/lib/python2.7/distutils/dir_util.py", line 128, in copy_tree
"cannot copy tree '%s': not a directory" % src
distutils.errors.DistutilsFileError: cannot copy tree '/opt/aster/share/codeaster/backup/backup_1.10.0/etc/codeaster/mpi_hostfile': not a directory
EXIT_COMMAND_29479_00000008=1
Here is why I believe it should be fixed. Since the two files contain the same information keeping the files synchronized is easier when on uses links. I am open alternative ways or to arguments opposing my viewpoint too. Thanks.
Regards, JMB
SalomeMeca 2021
Ubuntu 20.04, 22.04
Offline
Hello Developers,
When one runs ASTK (CA_11+) the ~/.astkrc/config file gets deleted even though the 2nd line of /opt/aster/etc/codeaster/asrun says:
# "These values could be overridden by ~/.astkrc/config"
What is going on? !!!
Regards, JMB
SalomeMeca 2021
Ubuntu 20.04, 22.04
Offline
Hello Developers,
When one runs ASTK (CA_11+) the ~/.astkrc/config file gets deleted even though the 2nd line of /opt/aster/etc/codeaster/asrun says:
# "These values could be overridden by ~/.astkrc/config"What is going on? !!!
Regards, JMB
The config file has been deprecated, it has been replacee by the prefs file.
TdS
Offline
The config file has been deprecated, it has been replacee by the prefs file.TdS
Thanks! That solved another problem for me posted here:
http://www.code-aster.org/forum2/viewtopic.php?id=15823
Regards, JMB
SalomeMeca 2021
Ubuntu 20.04, 22.04
Offline