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

Has someone successfully imported Quantmod? I'm getting errors #14

Open
arunklama opened this issue Apr 14, 2020 · 1 comment
Open

Has someone successfully imported Quantmod? I'm getting errors #14

arunklama opened this issue Apr 14, 2020 · 1 comment

Comments

@arunklama
Copy link

When I try to import quantmod after installing it, I get several errors like -

"C:\ProgramData\Anaconda3\lib\site-packages\pandas_datareader\compat_init_.py:7: FutureWarning: pandas.util.testing is deprecated. Use the functions in the public API at pandas.testing instead.
from pandas.util.testing import assert_frame_equal"

ModuleNotFoundError: No module named 'quantmod.theming'

ImportError:
The plotly.plotly module is deprecated,
please install the chart-studio package and use the
chart_studio.plotly module instead.

I've almost tried every solution I got but it never worked. Is there any single person who has imported quantmod successfully in a jupyter notebook?

@millerh1
Copy link

I've got it working. Almost all of the real functionality of the package doesn't really require the chart_studio part. If you remove the line from __init__.py about tools module, it works fine as far as I can tell. Here's my modified __init__.py:

"""Quantmod

A powerful financial charting library based on R's Quantmod.

With a Plotly backend and Cufflinks simplicity,
Quantmod provides beautiful charts and a variety of
quantitiative and technical finance tools.

Author
------
    @jackwluo

Credits
-------
    plotly.py : @chriddyp, @theengineear, et al.
    cufflinks : @jorgesantos

"""
# flake8: noqa

from __future__ import absolute_import

from .core import *
from .chart import *
from .version import __version__
from . import ta

__docformat__ = 'restructuredtext'


# Offline mode from config initialization

I also changed the lines from chart.py from

import plotly.plotly as py

to

import chart_studio.plotly as py

But I kinda doubt that was actually necessary...

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

No branches or pull requests

2 participants