Closed mbecker911 closed 1 year ago
Hi, I don't know what's going on, but the best way to be sure would be to run the tests especially the "bundle" tests. Also you seem to be running version 2.0.0 of zipline-reloaded, try to upgrade to the latest release. I doubt it's has to do to with access writes. It seems that the instrument symbols cannot be saved.
@MBounouar Thank you so much for your comment. I created a new virtual environment from the scratch based on Python version 3.8 and installed zipline-reloaded via conda-forge with the command
conda install -c conda-forge zipline-reloaded
In the minimal example csvdir ingestion seems to run through now.
Closing; please feel free to reopen if the issue persists.
I am having the same issue and was not able to resolve it by starting from scratch and creating a new environment with python 3.8.
Dear Zipline Maintainers,
Before I tell you about my issue, let me describe my environment:
Environment
Now that you know a little about me, let me tell you about the issue I am having:
Description of Issue
sqlalchemy.exc.IntegrityError: (sqlite3.IntegrityError) NOT NULL constraint failed: equity_symbol_mappings.symbol [SQL: INSERT INTO equity_symbol_mappings (id, end_date, share_class_symbol, start_date, company_symbol, symbol, sid) VALUES (?, ?, ?, ?, ?, ?, ?)] [parameters: (0, 0, '', 0, '', None, 0)] (Background on this error at: https://sqlalche.me/e/14/gkpj)
Here is how you can reproduce this issue on your machine:
Reproduction Steps
In "extension.py"
import pandas as pd from zipline.data.bundles import register from zipline.data.bundles.csvdir import csvdir_equities
register( 'equity-bundle', # name we select for the bundle csvdir_equities(
name of the directory as specified above (named after data frequency)
On the Anaconda Prompt
zipline ingest -b equity-bundle
I would have expected to find a sql database file including the price data infrmation of my share. ...
What steps have you taken to resolve this already?
After closer investigation of the relevant subpackage "csvdir.py" being involved as described in
https://github.com/quantopian/zipline/blob/master/zipline/data/bundles/csvdir.py
my two guesses are that the daily_bar_writer either has no access rights or receives an empty list without any symbol information of tickers included, e.g. like for Apple "AAPL". I can see the path and symbols being handed over to the function _pricing_iter() are correct but when I look at the Bar chart loading the assets, I see no ticker or SID information at all. I would have expected the "AAPL" symbol and SID = 0 but it looks like this:
Loading custom pricing data: [####################################] 100% Merging daily equity files: [####################################]
I ran Spyder with Admin rights and deselected write selection for the relevant "daily" data folder ...
I tried for ages, reading a hundreds of relevant docus but no success.
...
Sincerely, Marcus