Posts

Showing posts with the label anaconda

zipline RLock issue

zipline RLock issue I have successfully downloaded zipline using conda but I keep getting this error when I try to import it into a program in jupyter notebook. I am relatively new to zipline so pardon me if the the solution is obvious. Please advise as I cannot find a solution anywhere and quantopian said this is an anaconda, not zipline issue. zipline conda zipline zipline Error: ~Anaconda3libsite-packageslogbookconcurrency.py in <module>() 29 30 if has_gevent: ---> 31 from gevent._threading import (Lock as ThreadLock, 32 RLock as ThreadRLock, 33 get_ident as thread_get_ident, ImportError: cannot import name 'RLock Successful install ==> Solving environment: | Warning: 4 possible package resolutions (only showing differing packages): - anaconda::ca-certificates-2018.03.07-0, anaconda::openssl-1.0.2o-h8ea7d77_0 - anaconda::ca-certificates-2018.03.07-0, defaults::op...

NameError: name 'Date' is not defined

NameError: name 'Date' is not defined I am trying the code below from the tutorial in youtube: https://www.youtube.com/watch?v=83-_3x2AjXI&t=3s I'm getting stuck on the following line plt.plot_date(date, closep,'-', label='Price') When running the script I'm getting the error message "NameError: name 'Date' is not defined" import matplotlib.pyplot as plt import numpy as np import urllib import matplotlib.dates as mdates #date converter/date processing def bytesdate2num(fmt, encoding='uftf-8'): strconverter = mdates.strdate2num(fmt) def bytesconverter(b): s = b.decode(encoding) return strconverter(s) return bytesconverter def graph_data(stock): stock_price_url = 'https://pythonprogramming.net/yahoo_finance_replacement' #dash dash plus stock plus dash dash source_code = urllib.request.urlopen(stock_price_url).read().decode() #add decode anytime python 'reads...

Anaconda installing error

Image
Anaconda installing error When I install Anaconda in Linux , it shows an error after selecting location. After installing: python-3.6.5-hc3d631a_2 ... it shows: python-3.6.5-hc3d631a_2 ... ./Anaconda3-5.2.0-Linux-x86.sh: line 362: 28004 Illegal instruction "$PREFIX/pkgs/python-3.6.5-hc3d631a_2/bin/python" -E -s "$PREFIX"/pkgs/.install.py $INST_OPT --root-prefix="$PREFIX" --link-dist="$1" Please do not post terminal output in images. See here for why: unix.meta.stackexchange.com/q/4086/40481 – darthbith Jun 29 at 15:32 By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.