Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import error in pyvo #530

Open
gkakumari opened this issue Feb 27, 2024 · 3 comments
Open

Import error in pyvo #530

gkakumari opened this issue Feb 27, 2024 · 3 comments
Labels

Comments

@gkakumari
Copy link

Quite new to coding and github in general. I am trying to import the pyvo for my work and it shows some import error. Any help would be appreciated.
import pyvo as vo

`ImportError Traceback (most recent call last)
/tmp/ipykernel_4155/2276636013.py in
----> 1 import pyvo as vo

~/.conda/envs/gk/lib/python3.9/site-packages/pyvo/init.py in
33 # ----------------------------------------------------------------------------
34
---> 35 from . import registry
36 from .dal import ssa, sia, sla, scs, tap
37 from . import auth

~/.conda/envs/gk/lib/python3.9/site-packages/pyvo/registry/init.py in
6 """
7
----> 8 from .regtap import search, ivoid2service, get_RegTAP_query, choose_RegTAP_service
9
10 from .rtcons import (Constraint,

~/.conda/envs/gk/lib/python3.9/site-packages/pyvo/registry/regtap.py in
28 import numpy
29
---> 30 from . import rtcons
31 from ..dal import scs, sia, sia2, ssa, sla, tap, query as dalq
32 from ..io.vosi import vodataservice

~/.conda/envs/gk/lib/python3.9/site-packages/pyvo/registry/rtcons.py in
18 import numpy
19
---> 20 from ..dal import query as dalq
21 from ..utils import vocabularies
22 from .import regtap

~/.conda/envs/gk/lib/python3.9/site-packages/pyvo/dal/init.py in
1 # Licensed under a 3-clause BSD style license - see LICENSE.rst
----> 2 from .sia import search as imagesearch
3 from .sia2 import search as imagesearch2
4 from .ssa import search as spectrumsearch
5 from .sla import search as linesearch

~/.conda/envs/gk/lib/python3.9/site-packages/pyvo/dal/sia.py in
37 from astropy.units import Quantity, Unit
38
---> 39 from .query import DALResults, DALQuery, DALService, Record
40 from .mimetype import mime2extension
41 from .adhoc import DatalinkResultsMixin, DatalinkRecordMixin, SodaRecordMixin

~/.conda/envs/gk/lib/python3.9/site-packages/pyvo/dal/query.py in
39
40 from .mimetype import mime_object_maker
---> 41 from .exceptions import (DALFormatError, DALServiceError, DALQueryError,
42 DALOverflowWarning)
43

ImportError: cannot import name 'DALOverflowWarning' from 'pyvo.dal.exceptions' `

I am using this in a conda env

@gkakumari
Copy link
Author

The import seem to work well in the version 1.3 in my system without any error so far.

@msdemlei
Copy link
Contributor

msdemlei commented Feb 28, 2024 via email

@bsipocz
Copy link
Member

bsipocz commented Feb 28, 2024

Please try to uninstall and reinstall pyvo, this looks to be very much a local environment/installation issue rather than something inherent to the library itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants