Skip to content

won't import #13

@brianppowell

Description

@brianppowell

(/discover/nobackup/bppowel1/tfv2) bppowel1@discover14:/discover/nobackup/bppowel1> ipython
Python 3.10.4 (main, Mar 31 2022, 08:41:55) [GCC 7.5.0]
Type 'copyright', 'credits' or 'license' for more information
IPython 8.6.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import numpy as np
...: import pandas as pd
...: from tess_asteroids import MovingTPF
Matplotlib is building the font cache; this may take a moment.

AttributeError Traceback (most recent call last)
Cell In [1], line 3
1 import numpy as np
2 import pandas as pd
----> 3 from tess_asteroids import MovingTPF

File /discover/nobackup/bppowel1/tfv2/lib/python3.10/site-packages/tess_asteroids/init.py:14
11 loc = path.abspath(path.dirname(file))
12 straps = pd.read_csv(f"{loc}/data/straps.csv", comment="#")
---> 14 from .movingtpf import MovingTPF # noqa: E402
16 version = "0.6.0"
17 all = ["MovingTPF"]

File /discover/nobackup/bppowel1/tfv2/lib/python3.10/site-packages/tess_asteroids/movingtpf.py:15
13 from scipy import ndimage, stats
14 from tess_ephem import ephem
---> 15 from tesscube import TESSCube
16 from tesscube.fits import get_wcs_header_by_extension
17 from tesscube.utils import _sync_call, convert_coordinates_to_runs

File /discover/nobackup/bppowel1/tfv2/lib/python3.10/site-packages/tesscube/init.py:71
68 from .config import load_config # noqa
70 load_config()
---> 71 from .cube import TESSCube

File /discover/nobackup/bppowel1/tfv2/lib/python3.10/site-packages/tesscube/cube.py:18
10 from . import BYTES_PER_PIX, DATA_OFFSET, log
11 from .fits import (
12 get_header_dict,
13 get_output_first_extention_header,
(...)
16 get_wcs_header_by_extension,
17 )
---> 18 from .query import QueryMixin, async_get_ffi, get_last_hdu, get_primary_hdu
19 from .utils import _sync_call, validate_tuple
20 from .wcs import WCSMixin, WCS_ATTRS

File /discover/nobackup/bppowel1/tfv2/lib/python3.10/site-packages/tesscube/query.py:11
8 from typing import Optional, Tuple, List, Union
10 import numpy as np
---> 11 from aiobotocore.session import get_session
12 from aiobotocore.client import AioBaseClient
13 from astropy.io import fits

File /discover/nobackup/bppowel1/tfv2/lib/python3.10/site-packages/aiobotocore/session.py:3
1 from botocore import UNSIGNED
2 from botocore import version as botocore_version
----> 3 from botocore import translate
4 from botocore.exceptions import PartialCredentialsError
5 from botocore.session import EVENT_ALIASES, ServiceModel

File /discover/nobackup/bppowel1/tfv2/lib/python3.10/site-packages/botocore/translate.py:16
1 # Copyright (c) 2012-2013 Mitch Garnaat http://garnaat.org/
2 # Copyright 2012-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 #
(...)
12 # ANY KIND, either express or implied. See the License for the specific
13 # language governing permissions and limitations under the License.
14 import copy
---> 16 from botocore.utils import merge_dicts
19 def build_retry_config(
20 endpoint_prefix, retry_model, definitions, client_retry_config=None
21 ):
22 service_config = retry_model.get(endpoint_prefix, {})

File /discover/nobackup/bppowel1/tfv2/lib/python3.10/site-packages/botocore/utils.py:39
37 import botocore
38 import botocore.awsrequest
---> 39 import botocore.httpsession
41 # IP Regexes retained for backwards compatibility
42 from botocore.compat import HEX_PAT # noqa: F401

File /discover/nobackup/bppowel1/tfv2/lib/python3.10/site-packages/botocore/httpsession.py:45
43 warnings.simplefilter("ignore", category=DeprecationWarning)
44 # Always import the original SSLContext, even if it has been patched
---> 45 from urllib3.contrib.pyopenssl import (
46 orig_util_SSLContext as SSLContext,
47 )
48 except ImportError:
49 from urllib3.util.ssl_ import SSLContext

File /discover/nobackup/bppowel1/tfv2/lib/python3.10/site-packages/urllib3/contrib/pyopenssl.py:46
1 """
2 SSL with SNI_-support for Python 2. Follow these instructions if you would
3 like to verify SSL certificates in Python 2. Note, the default libraries do
(...)
42 .. _crime attack: https://en.wikipedia.org/wiki/CRIME_(security_exploit)
43 """
44 from future import absolute_import
---> 46 import OpenSSL.SSL
47 from cryptography import x509
48 from cryptography.hazmat.backends.openssl import backend as openssl_backend

File /discover/nobackup/bppowel1/tfv2/lib/python3.10/site-packages/OpenSSL/init.py:8
1 # Copyright (C) AB Strakt
2 # See LICENSE for details.
4 """
5 pyOpenSSL - A simple wrapper around the OpenSSL library
6 """
----> 8 from OpenSSL import crypto, SSL
9 from OpenSSL.version import (
10 author, copyright, email, license, summary, title,
11 uri, version,
12 )
15 all = [
16 "SSL", "crypto",
17
18 "author", "copyright", "email", "license", "summary",
19 "title", "uri", "version",
20 ]

File /discover/nobackup/bppowel1/tfv2/lib/python3.10/site-packages/OpenSSL/crypto.py:1517
1513 ext._extension = _ffi.gc(extension, _lib.X509_EXTENSION_free)
1514 return ext
-> 1517 class X509StoreFlags(object):
1518 """
1519 Flags for X509 verification, used to change the behavior of
1520 :class:X509Store.
(...)
1525 https://www.openssl.org/docs/manmaster/man3/X509_VERIFY_PARAM_set_flags.html
1526 """
1527 CRL_CHECK = _lib.X509_V_FLAG_CRL_CHECK

File /discover/nobackup/bppowel1/tfv2/lib/python3.10/site-packages/OpenSSL/crypto.py:1537, in X509StoreFlags()
1535 NOTIFY_POLICY = _lib.X509_V_FLAG_NOTIFY_POLICY
1536 CHECK_SS_SIGNATURE = _lib.X509_V_FLAG_CHECK_SS_SIGNATURE
-> 1537 CB_ISSUER_CHECK = _lib.X509_V_FLAG_CB_ISSUER_CHECK

AttributeError: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions