I am using MacOS Monterey 12.3.1

I have download flink source and examples from GitHub

I have installed python 3.10.4 from https://www.python.org/downloads/macos/

In flink/libexec/examples/python/datastream, I run



/usr/local/bin/python3 word_count.py

But get error



Traceback (most recent call last):

  File "
/usr/local/Cellar/apache-flink/1.15.0/libexec/examples/python/datastream/word_count.py",
line 22, in <module>

    from pyflink.common import WatermarkStrategy, Encoder, Types

ModuleNotFoundError: No module named 'pyflink'



To install pyflink, I run

/usr/local/bin/python3 -m pip install apache-flink

But get error

      × Encountered error while trying to install package.

      ╰─> numpy



So I install numpy

/usr/local/bin/python3 -m pip install numpy

Which is successful.



Yet when I attempt to install pyflink now

/usr/local/bin/python3 -m pip install apache-flink

I get the same error regarding numpy.

How can I get around this error?



 The error messages from installing pyFlink are quite long.  I have
attached more of the end of the error message.


Thank you for any help you can give me.

-- 
This electronic communication and the information and any files transmitted 
with it, or attached to it, are confidential and are intended solely for 
the use of the individual or entity to whom it is addressed and may contain 
information that is confidential, legally privileged, protected by privacy 
laws, or otherwise restricted from disclosure to anyone else. If you are 
not the intended recipient or the person responsible for delivering the 
e-mail to the intended recipient, you are hereby notified that any use, 
copying, distributing, dissemination, forwarding, printing, or copying of 
this e-mail is strictly prohibited. If you received this e-mail in error, 
please return the e-mail to the sender, delete it from your computer, and 
destroy any printed copy of it.
^
                                        /* DISABLES CODE */ ( )
            numpy/core/src/umath/loops.c.src:2527:22: warning: code will never 
be executed [-Wunreachable-code]
                    npy_intp n = dimensions[0];
                                 ^~~~~~~~~~
            numpy/core/src/umath/loops.c.src:2526:29: note: silence by adding 
parentheses to mark code as explicitly dead
                if (IS_BINARY_REDUCE && 0) {
                                        ^
                                        /* DISABLES CODE */ ( )
            4 warnings generated.
            error: Command "clang -Wno-unused-result -Wsign-compare 
-Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch 
arm64 -arch x86_64 -g -DNPY_INTERNAL_BUILD=1 -DHAVE_NPY_CONFIG_H=1 
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 
-DNO_ATLAS_INFO=3 -DHAVE_CBLAS 
-Ibuild/src.macosx-10.9-universal2-3.1/numpy/core/src/umath 
-Ibuild/src.macosx-10.9-universal2-3.1/numpy/core/src/npymath 
-Ibuild/src.macosx-10.9-universal2-3.1/numpy/core/src/common 
-Inumpy/core/include 
-Ibuild/src.macosx-10.9-universal2-3.1/numpy/core/include/numpy 
-Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath 
-Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort 
-I/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10 
-Ibuild/src.macosx-10.9-universal2-3.1/numpy/core/src/common 
-Ibuild/src.macosx-10.9-universal2-3.1/numpy/core/src/npymath 
-Ibuild/src.macosx-10.9-universal2-3.1/numpy/core/src/common 
-Ibuild/src.macosx-10.9-universal2-3.1/numpy/core/src/npymath -c 
build/src.macosx-10.9-universal2-3.1/numpy/core/src/multiarray/scalartypes.c -o 
build/temp.macosx-10.9-universal2-3.10/build/src.macosx-10.9-universal2-3.1/numpy/core/src/multiarray/scalartypes.o
 -MMD -MF 
build/temp.macosx-10.9-universal2-3.10/build/src.macosx-10.9-universal2-3.1/numpy/core/src/multiarray/scalartypes.o.d
 -msse3 -I/System/Library/Frameworks/vecLib.framework/Headers" failed with exit 
status 1
            [end of output]
      
        note: This error originates from a subprocess, and is likely not a 
problem with pip.
      error: legacy-install-failure
      
      × Encountered error while trying to install package.
      ╰─> numpy
      
      note: This is an issue with the package mentioned above, not pip.
      hint: See above for output from the failure.
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem 
with pip.
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with 
pip.

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to