ModuleNotFoundError: No module named 'quantmod.theming' - python-3.x

Trying to install quantmod in Python 3.6 and getting this error:
ModuleNotFoundError: No module named 'quantmod.theming'
Here are the imports:
import pandas as pd
pd.core.common.is_list_like = pd.api.types.is_list_like
import numpy as np
import plotly.graph_objs as go
from plotly.offline import download_plotlyjs, init_notebook_mode, plot, iplot
init_notebook_mode(connected=True)
from plotly import tools
from datetime import datetime
from dateutil import parser
import quantmod as qm
Here is the error:
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-11-e0fff5c4d1f1> in <module>()
8 from datetime import datetime
9 from dateutil import parser
---> 10 import quantmod as qm
~\Anaconda3\lib\site-packages\quantmod-0.1.3-py3.6.egg\quantmod\__init__.py in <module>()
21 from __future__ import absolute_import
22
---> 23 from .core import *
24 from .chart import *
25 from .tools import (go_offline, go_online, is_offline,
~\Anaconda3\lib\site-packages\quantmod-0.1.3-py3.6.egg\quantmod\core.py in <module>()
11 import pandas_datareader.data as web
12
---> 13 from .chart import Chart
14
15
~\Anaconda3\lib\site-packages\quantmod-0.1.3-py3.6.egg\quantmod\chart.py in <module>()
20
21 from . import tools
---> 22 from . import factory
23 from .valid import VALID_FIGURE_KWARGS, VALID_TRACES, OHLC_TRACES
24 from .ta import * # noqa : F405
~\Anaconda3\lib\site-packages\quantmod-0.1.3-py3.6.egg\quantmod\factory.py in <module>()
12 from . import utils
13 from . import tools
---> 14 from .theming.skeleton import SKELETON
15 from .theming.themes import THEMES
16 from .vendors.sources import SOURCES
ModuleNotFoundError: No module named 'quantmod.theming'
I'm not sure how to interpret this.

Related

Problem in importing Autograph in Tensorflow

I have installed Tensorflow (1.13.0) using conda as follows:
conda install -c anaconda tensorflow
on my Win64 machine with python 3.6 in my conda environment. I am able to import tensorflow from my Jupyter notebook. In my project, I need to use AutoGraph. However, when I try to import autograph, then I get this error - ImportError: cannot import name 'deprecated_endpoints'
I am able to verify that autograph folder exists in my tensorflow package "..\py36\Lib\site-packages\tensorflow\python\autograph". However, the below code statement gives that Import Error.
import tensorflow.python.autograph as ag
Complete error trace:
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-13-9224a57db065> in <module>
1 import tensorflow as tf
----> 2 import tensorflow.python.autograph as ag
~\AppData\Local\Continuum\anaconda3\envs\py36\lib\site-packages\tensorflow\python\autograph\__init__.py in <module>
33
34 # TODO(mdan): Bring only the relevant symbols to the top level.
---> 35 from tensorflow.python.autograph import operators
36 from tensorflow.python.autograph import utils
37 from tensorflow.python.autograph.core.converter import ConversionOptions
~\AppData\Local\Continuum\anaconda3\envs\py36\lib\site-packages\tensorflow\python\autograph\operators\__init__.py in <module>
38 from __future__ import print_function
39
---> 40 from tensorflow.python.autograph.operators.control_flow import for_stmt
41 from tensorflow.python.autograph.operators.control_flow import if_stmt
42 from tensorflow.python.autograph.operators.control_flow import while_stmt
~\AppData\Local\Continuum\anaconda3\envs\py36\lib\site-packages\tensorflow\python\autograph\operators\control_flow.py in <module>
19 from __future__ import print_function
20
---> 21 from tensorflow.python.autograph.operators import py_builtins
22 from tensorflow.python.data.ops import dataset_ops
23 from tensorflow.python.framework import tensor_util
~\AppData\Local\Continuum\anaconda3\envs\py36\lib\site-packages\tensorflow\python\autograph\operators\py_builtins.py in <module>
24 import six
25
---> 26 from tensorflow.python.autograph.utils import py_func
27 from tensorflow.python.autograph.utils import tensors
28 from tensorflow.python.framework import constant_op
~\AppData\Local\Continuum\anaconda3\envs\py36\lib\site-packages\tensorflow\python\autograph\utils\__init__.py in <module>
22 from tensorflow.python.autograph.utils.misc import alias_tensors
23 from tensorflow.python.autograph.utils.py_func import wrap_py_func
---> 24 from tensorflow.python.autograph.utils.tensor_list import dynamic_list_append
25 from tensorflow.python.autograph.utils.testing import fake_tf
26 from tensorflow.python.autograph.utils.type_check import is_tensor
~\AppData\Local\Continuum\anaconda3\envs\py36\lib\site-packages\tensorflow\python\autograph\utils\tensor_list.py in <module>
20
21 from tensorflow.python.framework import ops
---> 22 from tensorflow.python.ops import list_ops
23 from tensorflow.python.ops import tensor_array_ops
24
~\AppData\Local\Continuum\anaconda3\envs\py36\lib\site-packages\tensorflow\python\ops\list_ops.py in <module>
24 from tensorflow.python.framework import tensor_shape
25 from tensorflow.python.ops import array_ops
---> 26 from tensorflow.python.ops import gen_list_ops
27 # go/tf-wildcard-import
28 # pylint: disable=wildcard-import
~\AppData\Local\Continuum\anaconda3\envs\py36\lib\site-packages\tensorflow\python\ops\gen_list_ops.py in <module>
21 from tensorflow.python.framework import ops as _ops
22 from tensorflow.python.framework import op_def_library as _op_def_library
---> 23 from tensorflow.python.util.deprecation import deprecated_endpoints
24 from tensorflow.python.util import dispatch as _dispatch
25 from tensorflow.python.util.tf_export import tf_export
ImportError: cannot import name 'deprecated_endpoints'
---------------------------------------------------------------------------
How should I fix it?

How to Fix: "ImportError: DLL load failed The specified procedure could not be found." when the DLLs are there

Updated to new Anaconda 2018, opened a jupyter notebook that worked prior to the update. Having problems with loading seaborn into the script. Tried following several threads on this but nothing worked question.
I've tried:
-Setting Enviromental Variables
-Reinstalling Anaconda2018
-Uninstalled and reinstalled seaborn using conda
-Reinstalled SciPy
Running out of options as I want to use Seaborn 0.9.0 and python-3.7 but I cannot seem to get 3.7 to play with 0.9.0. Help?
import seaborn as sns
ImportError Traceback (most recent call last)
<ipython-input-1-a84c0541e888> in <module>
----> 1 import seaborn as sns
~\Anaconda3\lib\site-packages\seaborn\__init__.py in <module>
4
5 # Import seaborn objects
----> 6 from .rcmod import *
7 from .utils import *
8 from .palettes import *
~\Anaconda3\lib\site-packages\seaborn\rcmod.py in <module>
3 import functools
4 import matplotlib as mpl
----> 5 from . import palettes, _orig_rc_params
6
7
~\Anaconda3\lib\site-packages\seaborn\palettes.py in <module>
10 from .external.six.moves import range
11
---> 12 from .utils import desaturate, set_hls_values, get_color_cycle
13 from .colors import xkcd_rgb, crayons
14
~\Anaconda3\lib\site-packages\seaborn\utils.py in <module>
5
6 import numpy as np
----> 7 from scipy import stats
8 import pandas as pd
9 import matplotlib as mpl
~\Anaconda3\lib\site-packages\scipy\stats\__init__.py in <module>
343 from __future__ import division, print_function, absolute_import
344
--> 345 from .stats import *
346 from .distributions import *
347 from .morestats import *
~\Anaconda3\lib\site-packages\scipy\stats\stats.py in <module>
169 import scipy.special as special
170 import scipy.linalg as linalg
--> 171 from . import distributions
172 from . import mstats_basic
173 from ._distn_infrastructure import _lazywhere
~\Anaconda3\lib\site-packages\scipy\stats\distributions.py in <module>
8 from __future__ import division, print_function, absolute_import
9
---> 10 from ._distn_infrastructure import (entropy, rv_discrete, rv_continuous,
11 rv_frozen)
12
~\Anaconda3\lib\site-packages\scipy\stats\_distn_infrastructure.py in <module>
22
23 # for root finding for discrete distribution ppf, and max likelihood estimation
---> 24 from scipy import optimize
25
26 # for functions of continuous distributions (e.g. moments, entropy, cdf)
~\Anaconda3\lib\site-packages\scipy\optimize\__init__.py in <module>
269
270 from .optimize import *
--> 271 from ._minimize import *
272 from ._root import *
273 from .minpack import *
~\Anaconda3\lib\site-packages\scipy\optimize\_minimize.py in <module>
19 from scipy._lib.six import callable
20
---> 21 from scipy.sparse.linalg import LinearOperator
22
23 # unconstrained minimization
~\Anaconda3\lib\site-packages\scipy\sparse\linalg\__init__.py in <module>
115 from .dsolve import *
116 from .interface import *
--> 117 from .eigen import *
118 from .matfuncs import *
119 from ._onenormest import *
~\Anaconda3\lib\site-packages\scipy\sparse\linalg\eigen\__init__.py in <module>
9 from __future__ import division, print_function, absolute_import
10
---> 11 from .arpack import *
12 from .lobpcg import *
13
~\Anaconda3\lib\site-packages\scipy\sparse\linalg\eigen\arpack\__init__.py in <module>
20 from __future__ import division, print_function, absolute_import
21
---> 22 from .arpack import *
~\Anaconda3\lib\site-packages\scipy\sparse\linalg\eigen\arpack\arpack.py in <module>
43 __all__ = ['eigs', 'eigsh', 'svds', 'ArpackError', 'ArpackNoConvergence']
44
---> 45 from . import _arpack
46 import numpy as np
47 import warnings
ImportError: DLL load failed: The specified procedure could not be found.
Any Tips on how to make my question better would also be welcomed as I want to get better at asking these questions.
I have met the same problem and be puzzled by it either this morning........
By carefully checking the Traceback
----> 4 from scipy.sparse.linalg import LinearOperator
It's the issue of scipy, not seaborn.
I try to uninstall conda versions and install pip versions scipy and numpy, it works now. please have a try, hopefully it could help u too.
$> conda remove --force numpy, scipy
$> pip install numpy
$> pip install scipy
i have removed completely seaborn, numpy and scipy then i reinstalled them and it works for me.
In my anaconda Powershell i excuted this command:
conda remove --force seaborn numpy scipy
then, in jupyter notebook and execut this in one cell.
pip install seaborn numpy scipy

Import error while importing tensorflow,keras

I installed tensorflow 1.8. When import kerasor import tensorflow.Iam getting
ImportError Traceback (most recent call last)
<ipython-input-2-dc6fd3b71e3e> in <module>
----> 1 from keras.preprocessing.text import Tokenizer
2 from keras.preprocessing.sequence import pad_sequences
3 from keras.models import Sequential
4 from keras.layers import Dense, Flatten, LSTM, Conv1D, MaxPooling1D, Dropout, Activation
5 from keras.layers.embeddings import Embedding
~\Anaconda3\lib\site-packages\keras\__init__.py in <module>
1 from __future__ import absolute_import
2
----> 3 from . import utils
4 from . import activations
5 from . import applications
~\Anaconda3\lib\site-packages\keras\utils\__init__.py in <module>
4 from . import data_utils
5 from . import io_utils
----> 6 from . import conv_utils
7
8 # Globally-importable utils.
~\Anaconda3\lib\site-packages\keras\utils\conv_utils.py in <module>
7 from six.moves import range
8 import numpy as np
----> 9 from .. import backend as K
10
11
~\Anaconda3\lib\site-packages\keras\backend\__init__.py in <module>
87 elif _BACKEND == 'tensorflow':
88 sys.stderr.write('Using TensorFlow backend.\n')
---> 89 from .tensorflow_backend import *
90 else:
91 # Try and load external backend.
~\Anaconda3\lib\site-packages\keras\backend\tensorflow_backend.py in <module>
3 from __future__ import print_function
4
----> 5 import tensorflow as tf
6 from tensorflow.python.framework import ops as tf_ops
7 from tensorflow.python.training import moving_averages
~\Anaconda3\lib\site-packages\tensorflow\__init__.py in <module>
22
23 # pylint: disable=g-bad-import-order
---> 24 from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import
25
26 try:
~\Anaconda3\lib\site-packages\tensorflow\python\__init__.py in <module>
57
58 # Protocol buffers
---> 59 from tensorflow.core.framework.graph_pb2 import *
60 from tensorflow.core.framework.node_def_pb2 import *
61 from tensorflow.core.framework.summary_pb2 import *
~\Anaconda3\lib\site-packages\tensorflow\core\framework\graph_pb2.py in <module>
4 import sys
5 _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
----> 6 from google.protobuf import descriptor as _descriptor
7 from google.protobuf import message as _message
8 from google.protobuf import reflection as _reflection
~\Anaconda3\lib\site-packages\google\protobuf\descriptor.py in <module>
45 import binascii
46 import os
---> 47 from google.protobuf.pyext import _message
48 _USE_C_DESCRIPTORS = getattr(_message, '_USE_C_DESCRIPTORS', False)
49
ImportError: DLL load failed: The specified procedure could not be found.
Please someone help me with this.

Why I can't import pdfplumber

When I was trying to import pdfplumber, it gives me error.
Python 3.6.5 |Anaconda, Inc.| (default, Apr 26 2018, 08:42:37)
Type 'copyright', 'credits' or 'license' for more information
IPython 6.4.0 -- An enhanced Interactive Python. Type '?' for help.
In [1]: import pdfplumber
ImportError Traceback (most recent call last)
in ()
----> 1 import pdfplumber
/anaconda3/lib/python3.6/site-packages/pdfplumber/init.py in ()
---->
1 from pdfplumber.pdf import PDF
2 import pdfplumber.utils
3 import pdfminer
4 import pdfminer.pdftypes
5 from ._version import __version__
/anaconda3/lib/python3.6/site-packages/pdfplumber/pdf.py in ()
4
5 from pdfminer.pdfparser import PDFParser
----> 6 from pdfminer.pdfdocument import PDFDocument
7 from pdfminer.pdfpage import PDFPage
8 from pdfminer.pdfinterp import PDFResourceManager,
PDFPageInterpreter
/anaconda3/lib/python3.6/site-packages/pdfminer/pdfdocument.py in ()
24 from .pdftypes import PDFTypeError
25 from .pdftypes import PDFStream
---> 26 from .pdftypes import PDFObjectNotFound
27 from .pdftypes import decipher_all
28 from .pdftypes import int_value
ImportError: cannot import name 'PDFObjectNotFound'
Any solutions?
Thanks!
You should install imagemagick as guided here
Restart after installed and then, import pdfplumber again

Error while importing seaborn in Anaconda

I'm getting the below error while importing seaborn.
Installing/Uninstalling is not working.
Copying dll files in win32 folder and setting path didn't work.I'm using 32-bit windows 7 machine. output of sys.path as below :
['',
'C:\\Users\\PAL\\Anaconda3\\python35.zip',
'C:\\Users\\PAL\\Anaconda3\\DLLs',
'C:\\Users\\PAL\\Anaconda3\\lib',
'C:\\Users\\PAL\\Anaconda3',
'C:\\Users\\PAL\\Anaconda3\\lib\\site-packages',
'C:\\Users\\PAL\\Anaconda3\\lib\\site-packages\\Sphinx-1.4.1-py3.5.egg',
'C:\\Users\\PAL\\Anaconda3\\lib\\site-packages\\win32',
'C:\\Users\\PAL\\Anaconda3\\lib\\site-packages\\win32\\lib',
'C:\\Users\\PAL\\Anaconda3\\lib\\site-packages\\Pythonwin',
'C:\\Users\\PAL\\Anaconda3\\lib\\site-packages\\setuptools-23.0.0-py3.5.egg',
'C:\\Users\\PAL\\Anaconda3\\lib\\site-packages\\IPython\\extensions',
'C:\\Users\\PAL\\.ipython']
Error while importing seaborn:
ImportError Traceback (most recent call last)
in ()
----> 1 import seaborn as sns
C:\Users\PAL\Anaconda3\lib\site-packages\seaborn\__init__.py in <module>()
4
5 # Import seaborn objects
----> 6 from .rcmod import *
7 from .utils import *
8 from .palettes import *
C:\Users\PAL\Anaconda3\lib\site-packages\seaborn\rcmod.py in <module>()
6 import matplotlib as mpl
7
----> 8 from . import palettes, _orig_rc_params
9
10
C:\Users\PAL\Anaconda3\lib\site-packages\seaborn\palettes.py in <module>()
10 from .external.six.moves import range
11
---> 12 from .utils import desaturate, set_hls_values, get_color_cycle
13 from .xkcd_rgb import xkcd_rgb
14 from .crayons import crayons
C:\Users\PAL\Anaconda3\lib\site-packages\seaborn\utils.py in <module>()
6
7 import numpy as np
----> 8 from scipy import stats
9 import pandas as pd
10 import matplotlib as mpl
C:\Users\PAL\Anaconda3\lib\site-packages\scipy\stats\__init__.py in <module>()
336 from __future__ import division, print_function, absolute_import
337
--> 338 from .stats import *
339 from .distributions import *
340 from .morestats import *
C:\Users\PAL\Anaconda3\lib\site-packages\scipy\stats\stats.py in <module>()
178 from scipy._lib.six import callable, string_types
179 from numpy import array, asarray, ma, zeros
--> 180 import scipy.special as special
181 import scipy.linalg as linalg
182 import numpy as np
C:\Users\PAL\Anaconda3\lib\site-packages\scipy\special\__init__.py in <module>()
625 from __future__ import division, print_function, absolute_import
626
--> 627 from ._ufuncs import *
628
629 from .basic import *
ImportError: DLL load failed: The specified procedure could not be
found.

Resources