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

cannot import name 'DXFeedPy' from 'dxfeed.core' #50

Open
wbwatkinson opened this issue May 8, 2024 · 1 comment
Open

cannot import name 'DXFeedPy' from 'dxfeed.core' #50

wbwatkinson opened this issue May 8, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@wbwatkinson
Copy link

wbwatkinson commented May 8, 2024

Describe the bug

  • A very basic test of the dxfeed api results in an error when attempting to import DXFeePy from dxfeed.core

To Reproduce

  • I created a very basic file with only the following import statements:
import dxfeed as dx
from datetime import datetime  # for timed subscription

Behavior
Full trace:

Traceback (most recent call last):
  File "~/dxfeed-python-api/tastytrade_sdk_demo.py", line 1, in <module>
    import dxfeed as dx
  File "~/dxfeed-python-api/dxfeed/__init__.py", line 1, in <module>
    from dxfeed.wrappers.endpoint import Endpoint
  File "~/dxfeed-python-api/dxfeed/wrappers/endpoint.py", line 1, in <module>
    from dxfeed.core import DXFeedPy as dxp
ImportError: cannot import name 'DXFeedPy' from 'dxfeed.core' (~/dxfeed-python-api/dxfeed/core/__init__.py)

Expected behavior

  • I expected all modules to be imported without error

Environment:

  • OS: MacOS 14.4.1
  • Python version: 3.9.16 (also fails with 3.10.11 and 3.11.3)
  • Package version: 0.5.3 (via git repository -- running poetry install on tar.gz file resulted in compilation errors)

Additional context

@wbwatkinson wbwatkinson added the bug Something isn't working label May 8, 2024
@Mahmoud-Elbahnasawy
Copy link

The same here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants