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

Error here for read block #2

Open
rajkotraja opened this issue Jul 18, 2018 · 1 comment
Open

Error here for read block #2

rajkotraja opened this issue Jul 18, 2018 · 1 comment

Comments

@rajkotraja
Copy link

Error here for read block

Reading the saved data pickle file

df_stocks = pd.read_pickle('/Users/Dinesh/Documents/Project Stock predictions/data/pickled_ten_year_filtered_data.pkl')
:


FileNotFoundError Traceback (most recent call last)
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pandas/io/pickle.py in try_read(path, encoding)
165 # We want to silencce any warnings about, e.g. moved modules.
--> 166 return read_wrapper(lambda f: pkl.load(f))
167 except Exception:

/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pandas/io/pickle.py in read_wrapper(func)
146 compression=inferred_compression,
--> 147 is_text=False)
148 try:

/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pandas/io/common.py in _get_handle(path_or_buf, mode, encoding, compression, memory_map, is_text)
405 # Python 3 and binary mode
--> 406 f = open(path_or_buf, mode)
407 handles.append(f)

FileNotFoundError: [Errno 2] No such file or directory: '/Users/SiddharthRaja/Downloads/Stock_Market_Prediction-master/Data/pickled_ten_year_filtered_data.pkl'

During handling of the above exception, another exception occurred:

FileNotFoundError Traceback (most recent call last)
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pandas/io/pickle.py in try_read(path, encoding)
170 return read_wrapper(
--> 171 lambda f: pc.load(f, encoding=encoding, compat=False))
172 # compat pickle

/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pandas/io/pickle.py in read_wrapper(func)
146 compression=inferred_compression,
--> 147 is_text=False)
148 try:

/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pandas/io/common.py in _get_handle(path_or_buf, mode, encoding, compression, memory_map, is_text)
405 # Python 3 and binary mode
--> 406 f = open(path_or_buf, mode)
407 handles.append(f)

FileNotFoundError: [Errno 2] No such file or directory: '/Users/SiddharthRaja/Downloads/Stock_Market_Prediction-master/Data/pickled_ten_year_filtered_data.pkl'

During handling of the above exception, another exception occurred:

FileNotFoundError Traceback (most recent call last)
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pandas/io/pickle.py in read_pickle(path, compression)
176 try:
--> 177 return try_read(path)
178 except:

/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pandas/io/pickle.py in try_read(path, encoding)
174 return read_wrapper(
--> 175 lambda f: pc.load(f, encoding=encoding, compat=True))
176 try:

/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pandas/io/pickle.py in read_wrapper(func)
146 compression=inferred_compression,
--> 147 is_text=False)
148 try:

/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pandas/io/common.py in _get_handle(path_or_buf, mode, encoding, compression, memory_map, is_text)
405 # Python 3 and binary mode
--> 406 f = open(path_or_buf, mode)
407 handles.append(f)

FileNotFoundError: [Errno 2] No such file or directory: '/Users/SiddharthRaja/Downloads/Stock_Market_Prediction-master/Data/pickled_ten_year_filtered_data.pkl'

During handling of the above exception, another exception occurred:

FileNotFoundError Traceback (most recent call last)
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pandas/io/pickle.py in try_read(path, encoding)
165 # We want to silencce any warnings about, e.g. moved modules.
--> 166 return read_wrapper(lambda f: pkl.load(f))
167 except Exception:

/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pandas/io/pickle.py in read_wrapper(func)
146 compression=inferred_compression,
--> 147 is_text=False)
148 try:

/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pandas/io/common.py in _get_handle(path_or_buf, mode, encoding, compression, memory_map, is_text)
405 # Python 3 and binary mode
--> 406 f = open(path_or_buf, mode)
407 handles.append(f)

FileNotFoundError: [Errno 2] No such file or directory: '/Users/SiddharthRaja/Downloads/Stock_Market_Prediction-master/Data/pickled_ten_year_filtered_data.pkl'

During handling of the above exception, another exception occurred:

FileNotFoundError Traceback (most recent call last)
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pandas/io/pickle.py in try_read(path, encoding)
170 return read_wrapper(
--> 171 lambda f: pc.load(f, encoding=encoding, compat=False))
172 # compat pickle

/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pandas/io/pickle.py in read_wrapper(func)
146 compression=inferred_compression,
--> 147 is_text=False)
148 try:

/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pandas/io/common.py in _get_handle(path_or_buf, mode, encoding, compression, memory_map, is_text)
405 # Python 3 and binary mode
--> 406 f = open(path_or_buf, mode)
407 handles.append(f)

FileNotFoundError: [Errno 2] No such file or directory: '/Users/SiddharthRaja/Downloads/Stock_Market_Prediction-master/Data/pickled_ten_year_filtered_data.pkl'

During handling of the above exception, another exception occurred:

FileNotFoundError Traceback (most recent call last)
in ()
1 # Reading the saved data pickle file
----> 2 df_stocks = pd.read_pickle('/Users/SiddharthRaja/Downloads/Stock_Market_Prediction-master/Data/pickled_ten_year_filtered_data.pkl')

/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pandas/io/pickle.py in read_pickle(path, compression)
178 except:
179 if PY3:
--> 180 return try_read(path, encoding='latin1')
181 raise
182

/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pandas/io/pickle.py in try_read(path, encoding)
173 except:
174 return read_wrapper(
--> 175 lambda f: pc.load(f, encoding=encoding, compat=True))
176 try:
177 return try_read(path)

/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pandas/io/pickle.py in read_wrapper(func)
145 f, fh = _get_handle(path, 'rb',
146 compression=inferred_compression,
--> 147 is_text=False)
148 try:
149 return func(f)

/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pandas/io/common.py in _get_handle(path_or_buf, mode, encoding, compression, memory_map, is_text)
404 else:
405 # Python 3 and binary mode
--> 406 f = open(path_or_buf, mode)
407 handles.append(f)
408

FileNotFoundError: [Errno 2] No such file or directory: '/Users/SiddharthRaja/Downloads/Stock_Market_Prediction-master/Data/pickled_ten_year_filtered_data.pkl'

@dineshdaultani
Copy link
Owner

You have to change the directory path of the pickled file to "Data" directory in the repo. Hope this helps.

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