|
15 | 15 | # specific language governing permissions and limitations |
16 | 16 | # under the License. |
17 | 17 |
|
18 | | -from pyarrow._flight import ( # noqa:F401 |
19 | | - connect, |
20 | | - Action, |
21 | | - ActionType, |
22 | | - BasicAuth, |
23 | | - CallInfo, |
24 | | - CertKeyPair, |
25 | | - ClientAuthHandler, |
26 | | - ClientMiddleware, |
27 | | - ClientMiddlewareFactory, |
28 | | - DescriptorType, |
29 | | - FlightCallOptions, |
30 | | - FlightCancelledError, |
31 | | - FlightClient, |
32 | | - FlightDataStream, |
33 | | - FlightDescriptor, |
34 | | - FlightEndpoint, |
35 | | - FlightError, |
36 | | - FlightInfo, |
37 | | - FlightInternalError, |
38 | | - FlightMetadataReader, |
39 | | - FlightMetadataWriter, |
40 | | - FlightMethod, |
41 | | - FlightServerBase, |
42 | | - FlightServerError, |
43 | | - FlightStreamChunk, |
44 | | - FlightStreamReader, |
45 | | - FlightStreamWriter, |
46 | | - FlightTimedOutError, |
47 | | - FlightUnauthenticatedError, |
48 | | - FlightUnauthorizedError, |
49 | | - FlightUnavailableError, |
50 | | - FlightWriteSizeExceededError, |
51 | | - GeneratorStream, |
52 | | - Location, |
53 | | - MetadataRecordBatchReader, |
54 | | - MetadataRecordBatchWriter, |
55 | | - RecordBatchStream, |
56 | | - Result, |
57 | | - SchemaResult, |
58 | | - ServerAuthHandler, |
59 | | - ServerCallContext, |
60 | | - ServerMiddleware, |
61 | | - ServerMiddlewareFactory, |
62 | | - Ticket, |
63 | | - TracingServerMiddlewareFactory, |
64 | | -) |
| 18 | +try: |
| 19 | + from pyarrow._flight import ( # noqa:F401 |
| 20 | + connect, |
| 21 | + Action, |
| 22 | + ActionType, |
| 23 | + BasicAuth, |
| 24 | + CallInfo, |
| 25 | + CertKeyPair, |
| 26 | + ClientAuthHandler, |
| 27 | + ClientMiddleware, |
| 28 | + ClientMiddlewareFactory, |
| 29 | + DescriptorType, |
| 30 | + FlightCallOptions, |
| 31 | + FlightCancelledError, |
| 32 | + FlightClient, |
| 33 | + FlightDataStream, |
| 34 | + FlightDescriptor, |
| 35 | + FlightEndpoint, |
| 36 | + FlightError, |
| 37 | + FlightInfo, |
| 38 | + FlightInternalError, |
| 39 | + FlightMetadataReader, |
| 40 | + FlightMetadataWriter, |
| 41 | + FlightMethod, |
| 42 | + FlightServerBase, |
| 43 | + FlightServerError, |
| 44 | + FlightStreamChunk, |
| 45 | + FlightStreamReader, |
| 46 | + FlightStreamWriter, |
| 47 | + FlightTimedOutError, |
| 48 | + FlightUnauthenticatedError, |
| 49 | + FlightUnauthorizedError, |
| 50 | + FlightUnavailableError, |
| 51 | + FlightWriteSizeExceededError, |
| 52 | + GeneratorStream, |
| 53 | + Location, |
| 54 | + MetadataRecordBatchReader, |
| 55 | + MetadataRecordBatchWriter, |
| 56 | + RecordBatchStream, |
| 57 | + Result, |
| 58 | + SchemaResult, |
| 59 | + ServerAuthHandler, |
| 60 | + ServerCallContext, |
| 61 | + ServerMiddleware, |
| 62 | + ServerMiddlewareFactory, |
| 63 | + Ticket, |
| 64 | + TracingServerMiddlewareFactory, |
| 65 | + ) |
| 66 | +except ImportError as exc: |
| 67 | + raise ImportError( |
| 68 | + f"The pyarrow installation is not built with support for 'flight' ({str(exc)})" |
| 69 | + ) from None |
0 commit comments