Giter VIP home page Giter VIP logo

Comments (17)

relf avatar relf commented on August 23, 2024

It looks like there is an installation problem. How did you install SMT?

from smt.

hknarahari avatar hknarahari commented on August 23, 2024

I downloaded the files and using Anaconda environment used pip install. If there anotherway PL let me know, I will un-install and re-install. However, some of the other cases worked .

from smt.

relf avatar relf commented on August 23, 2024

If you have installed following the Readme here (pip install -e smt_dir) RMTB and RMTC are compiled on your machine during installation. Maybe something went wrong.

You can uninstall and then try to install from pypi directly with pip install smt.

from smt.

hknarahari avatar hknarahari commented on August 23, 2024

from smt.

relf avatar relf commented on August 23, 2024

That was exactly what I suggested. As you use Windows you can get binary distribution with:
pip install smt
Downloading the code followed by pip install -e is for development mode i.e. when you want to develop within SMT library. If you just want to use SMT, direct install from Pypi with pip install smt is simpler (and does not require compilation on Windows).

from smt.

relf avatar relf commented on August 23, 2024

See also documentation here

from smt.

hknarahari avatar hknarahari commented on August 23, 2024

Hi,
Did as instructed (uninstalled and installed again) and ran 'testflo'. While some tests ran OK some did not go through. As before I tried running CRM wing example and got a different error. I am attaching the testflo report as well as the screen shot of error message.

smt_rmtb_error
testflo_report.txt
Thanks for looking into my issues,
Narahari

from smt.

relf avatar relf commented on August 23, 2024

First, two remarks:

  • Installation with pip install smt will work without compilation only with Python 3, but I noticed you are still using Python 2.7. In that case, it may work with a previous version of smt: pip install smt==0.2.2
  • I noticed you have an smt-master directory like you downloaded a zip then install from the zip file which will fail to compile RMTB or RMTC surrogates if you do not have the right C++ compiler.

So, please just try: pip install smt==0.2.2
If it installs smt 0.2.2 successfully then you can use the code from the smt zip file you downloaded to run the crm wing example.
python examples\rans_crm_wing\run_rans_crm_wing_rmtb.py
do not execute from smt-master\smt directory, it might mess with the smt code present in the directory and smt code installed on your system.

from smt.

hknarahari avatar hknarahari commented on August 23, 2024

Tried that but got this message
new_smt_error

from smt.

hknarahari avatar hknarahari commented on August 23, 2024

I was using Python 3.6 but had to change to 2.7 as a couple of other packages run only on that. Can I have both versions of python (on different drives) working in the same laptop ? if so I may do that

from smt.

relf avatar relf commented on August 23, 2024

You can have several installations of Python. Then you just have to manage your paths consistently. The easier way to do that is to use Anaconda distribution with environments.

from smt.

relf avatar relf commented on August 23, 2024

I realize that what I suggest depends on the hardware architecture as well and will only work with a windows amd_64 (which is the architecture of my machine with which I generate SMT binaries).
Otherwise you have to compile SMT successfully. Again for that, I would suggest to install Anaconda distribution.

from smt.

hknarahari avatar hknarahari commented on August 23, 2024

I have installed Anaconda with python 3.73 (have another environment for 2.7) , installed SMT using 'pip install smt' . Whn I run some of the cases in the tutorial (LS, QP, Krigging) it runs fine , but stops when I run the RMTB case. I am attaching the sc
latest_SMT_error
ree shot , as you can see .pyc files are there , but the error I get is 'smt.examples' module not found.

from smt.

relf avatar relf commented on August 23, 2024

Examples are not meant to be installed (the smt.examples package is not found hence the error). It works when installing in development mode pip install -e smt_folder because the code is in the smt_folder.

If you want to make it work, copy rans_crm_wing.py and run_rans_crm_wing_rmtb.py in a directory, go in that directory, replace from smt.examples.rans_crm_wing.rans_crm_wing ... by from rans_crm_wing ... then just execute python run_rans_crm_wing_rmtb.py

from smt.

hknarahari avatar hknarahari commented on August 23, 2024

That is it ! working now. I guess I need to do the same for all the other cases in 'examples' directory. Btw, there are plot commands in the file but I did not see any plots, shoild I remove the 'agg' option in the Mathplotlib?

from smt.

relf avatar relf commented on August 23, 2024

Indeed, comment out the matplotlib.use("Agg") line and you should see the plots.

from smt.

hknarahari avatar hknarahari commented on August 23, 2024

from smt.

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.