CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > SU2 > SU2 Installation

Error in enabling the python wrapper

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 31, 2022, 12:07
Default Error in enabling the python wrapper
  #1
New Member
 
Join Date: Nov 2021
Posts: 8
Rep Power: 5
Jinn is on a distinguished road
Hi, I was trying to enable the python wrapper to run the unsteady fsi case on Ubuntu 18.04. There was an ERROR saying that "Python dependency not found". But it previously showed that"Program python3 found: YES (/usr/bin/python3)
". How could I fix this? Thanks in advance.

( I had several python versions(2.x, 3.5, 3.7 etc.) installed )

Here are the full screen outputs:



Code:
jin@jin:~/SU2$ ./meson.py build --reconfigure -Denable-pywrapper=true --prefix=/home/jin/SU2
The Meson build system
Version: 0.61.1
Source dir: /home/jin/SU2
Build dir: /home/jin/SU2/build
Build type: native build
Project name: SU2
Project version: 7.3.0 "Blackbird"
C compiler for the host machine: cc (gcc 7.5.0 "cc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0")
C linker for the host machine: cc ld.bfd 2.30
C++ compiler for the host machine: c++ (gcc 7.5.0 "c++ (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0")
C++ linker for the host machine: c++ ld.bfd 2.30
Host machine cpu family: x86_64
Host machine cpu: x86_64
Program python3 found: YES (/usr/bin/python3)
WARNING: Python files installed by Meson might not be found by python interpreter.
 This warning can be avoided by setting "python.platlibdir" option.
WARNING: Python files installed by Meson might not be found by python interpreter.
 This warning can be avoided by setting "python.purelibdir" option.
Dependency mpi found: YES 2.1.1 (cached)
Dependency mpi found: YES 2.1.1 (cached)
Dependency zlib found: YES 1.2.11 (cached)
Found pkg-config: /usr/bin/pkg-config (0.29.1)
Found CMake: /usr/bin/cmake (3.10.2)
Run-time dependency szip found: NO (tried pkgconfig and cmake)
Has header "zlib.h" : YES (cached)
Checking for function "inflate" with dependency ZLIB: YES (cached)
Has header "sys/file.h" : YES (cached)
Has header "sys/ioctl.h" : YES (cached)
Has header "sys/resource.h" : YES (cached)
Has header "sys/socket.h" : YES (cached)
Has header "sys/stat.h" : YES (cached)
Has header "sys/time.h" : YES (cached)
Has header "sys/types.h" : YES (cached)
Has header "features.h" : YES (cached)
Has header "dirent.h" : YES (cached)
Has header "setjmp.h" : YES (cached)
Has header "stddef.h" : YES (cached)
Has header "stdint.h" : YES (cached)
Has header "unistd.h" : YES (cached)
Has header "io.h" : NO (cached)
Has header "winsock2.h" : NO (cached)
Has header "globus/common.h" : NO (cached)
Has header "pdb.h" : NO (cached)
Has header "pthread.h" : YES (cached)
Has header "srbclient.h" : NO (cached)
Has header "string.h" : YES (cached)
Has header "strings.h" : YES (cached)
Has header "stdlib.h" : YES (cached)
Has header "memory.h" : YES (cached)
Has header "dlfcn.h" : YES (cached)
Has header "inttypes.h" : YES (cached)
Has header "netinet/in.h" : YES (cached)
Has header "netdb.h" : YES (cached)
Has header "arpa/inet.h" : YES (cached)
Has header "stdbool.h" : YES (cached)
Has header "quadmath.h" : YES (cached)
Library m found: YES
Checking for function "ceil" with dependency -lm: YES (cached)
Library dl found: YES
Checking for function "dlopen" with dependency -ldl: YES (cached)
Library ucb found: NO
Checking for function "gethostbyname" with dependency -lucb: NO (cached)
Checking for function "lseek64" : NO (cached)
Checking for function "fseeko" : NO (cached)
Checking for function "stat64" : NO (cached)
Checking for size of "char" : 1
Checking for size of "short" : 2
Checking for size of "int" : 4
Checking for size of "unsigned" : 4
Checking for size of "long" : 8
Checking for size of "long long" : 8
Checking for size of "__int64" : -1
Checking for size of "float" : 4
Checking for size of "double" : 8
Checking for size of "long double" : 16
Checking for size of "int8_t" : 1
Checking for size of "uint8_t" : 1
Checking for size of "int_least8_t" : 1
Checking for size of "uint_least8_t" : 1
Checking for size of "int_fast8_t" : 1
Checking for size of "uint_fast8_t" : 1
Checking for size of "int16_t" : 2
Checking for size of "uint16_t" : 2
Checking for size of "int_least16_t" : 2
Checking for size of "uint_least16_t" : 2
Checking for size of "int_fast16_t" : 8
Checking for size of "uint_fast16_t" : 8
Checking for size of "int32_t" : 4
Checking for size of "uint32_t" : 4
Checking for size of "int_least32_t" : 4
Checking for size of "uint_least32_t" : 4
Checking for size of "int_fast32_t" : 8
Checking for size of "uint_fast32_t" : 8
Checking for size of "int64_t" : 8
Checking for size of "uint64_t" : 8
Checking for size of "int_least64_t" : 8
Checking for size of "uint_least64_t" : 8
Checking for size of "int_fast64_t" : 8
Checking for size of "uint_fast64_t" : 8
Checking for size of "size_t" : 8
Checking for size of "ssize_t" : 8
Checking for size of "ptrdiff_t" : -1
Checking for size of "off_t" : 8
Checking for size of "off64_t" : -1
Checking for size of "time_t" : 8
Checking for size of "bool" : 1
Checking for size of "_Quad" : -1
Checking for size of "__float128" : 16
Checking if "check dev_t" : compiles: YES (cached)
Checking if "check dev_t scalar" runs: NO (1)
Checking if "CLOCK_MONOTONIC" : compiles: YES (cached)
Checking whether type "struct tm" has member "tm_gmtoff" : YES (cached)
Checking whether type "struct tm" has member "__tm_gmtoff" : NO (cached)
Checking whether type "struct tm" has member "tm_sec" : YES (cached)
Checking whether type "struct tm" has member "tz_minuteswest" : NO (cached)
Checking for function "gettimeofday" : YES (cached)
Checking whether type "struct stat" has member "st_blocks" : YES (cached)
Checking for function "ioctl" : YES (cached)
Header <sys/ioctl.h> has symbol "TIOCGWINSZ" : YES (cached)
Header <sys/ioctl.h> has symbol "TIOCGETD" : YES (cached)
Checking for function "getpwuid" : YES (cached)
Checking for function "alarm" : YES (cached)
Checking for function "fcntl" : YES (cached)
Checking for function "flock" : YES (cached)
Checking for function "fork" : YES (cached)
Checking for function "frexpf" : YES (cached)
Checking for function "frexpl" : YES (cached)
Checking for function "gethostname" : YES (cached)
Checking for function "getrusage" : YES (cached)
Checking for function "llround" : YES (cached)
Checking for function "llroundf" : YES (cached)
Checking for function "lround" : YES (cached)
Checking for function "lroundf" : YES (cached)
Checking for function "lstat" : YES (cached)
Checking for function "pread" : YES (cached)
Checking for function "pwrite" : YES (cached)
Checking for function "rand_r" : YES (cached)
Checking for function "random" : YES (cached)
Checking for function "round" : YES (cached)
Checking for function "roundf" : YES (cached)
Checking for function "setsysinfo" : NO (cached)
Checking for function "signal" : YES (cached)
Checking for function "longjmp" : YES (cached)
Checking for function "setjmp" : YES (cached)
Checking for function "siglongjmp" : YES (cached)
Checking for function "sigsetjmp" : NO (cached)
Checking for function "sigprocmask" : YES (cached)
Checking for function "snprintf" : YES (cached)
Checking for function "srandom" : YES (cached)
Checking for function "strdup" : YES (cached)
Checking for function "strtoll" : YES (cached)
Checking for function "strtoull" : YES (cached)
Checking for function "symlink" : YES (cached)
Checking for function "system" : YES (cached)
Checking for function "tmpfile" : YES (cached)
Checking for function "asprintf" : YES (cached)
Checking for function "vasprintf" : YES (cached)
Checking for function "waitpid" : YES (cached)
Checking for function "vsnprintf" : YES (cached)
Header <setjmp.h> has symbol "sigsetjmp" : YES (cached)
Checking if "inline keyword check" : compiles: YES (cached)
Configuring H5pubconf.h using configuration
Checking for size of "long" : 8
Checking for size of "void *" : 8
Configuring cgnstypes.h using configuration
Configuring cg_hash_types.h using configuration
Configuring cgnsconfig.h using configuration
WARNING: You should add the boolean check kwarg to the run_command call.
         It currently defaults to false,
         but it will default to true in future releases of meson.
         See also: https://github.com/mesonbuild/meson/issues/9300
Message: Boost sources found.
Program swig found: YES (/usr/bin/swig)
Message: Using mpi4py from 

SU2_PY/pySU2/meson.build:21:0: ERROR: Python dependency not found
Jinn is offline   Reply With Quote

Old   April 1, 2022, 16:25
Default
  #2
Senior Member
 
bigfoot
Join Date: Dec 2011
Location: Netherlands
Posts: 657
Rep Power: 19
bigfootedrockmidget is on a distinguished road
You need to install mpi4py as well
bigfootedrockmidget is offline   Reply With Quote

Old   April 23, 2022, 14:52
Default
  #3
New Member
 
S. Ali Naghedifar
Join Date: Feb 2014
Posts: 7
Rep Power: 12
alinaghedifar is on a distinguished road
Enter this command in the Terminal:
sudo apt-get install python3-distutils
alinaghedifar is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Python wrapper set up clacon21 SU2 0 January 19, 2022 04:39
Multiple MPI communicators for python wrapper jbae SU2 2 April 19, 2021 14:31
[PyFoam] Using pyFoamPlotWatcher.py To Plot Residuals m_ridzon OpenFOAM Community Contributions 22 January 26, 2021 19:48
Running Fluent from Python: UDF Compilation problems Ames Fluent UDF and Scheme Programming 5 November 16, 2020 07:12
Extracting parameters to the python wrapper Arad SU2 0 August 9, 2016 07:41


All times are GMT -4. The time now is 22:07.