'import quandl' produces 'Process finished with exit code -1073741819 (0xC0000005)'
Here is my entire program:
import quandl print("Hello World");
which results in:
Process finished with exit code -1073741819 (0xC0000005)
In the first place I imported Quandl, but then I received:
ModuleNotFoundError: No module named 'Quandl'
and then I googled it and read a suggestion to change the name to quandl.
I have installed the package in the project intercepter, there it's named Quandl though. Anyway, it looks like at least with the lower case it passes the compilation.
I run my program on Windows 10. My Python version is 3.7. I use PyCharm.
If I try to import a different package, then it works. Quandl is the problematic one.
You Probably have not installed the Quandl package properly. Because I've tried it in Juypter Notebook before installation it gives me the same error that you are getting. But after installing the package it works fine. Please see the attached screenshot. Incase of command line installation please type the following command:
pip install quandl
If it gives the pip installation then first you need to install pip.
Well, I use Quandl with Canopy and Anaconda (Windows and Mac) and never had any kind of problem at all. Sorry I did not see that you had already installed.
But on the other hand, I had some troubles using pip when I did not run it as administrator - sometimes it said that the package was installed but it was not.
if you install quandl sucessfully, then check where it installed. Generally, default library resides in
your installed python directory/lib, , in my case C:/Program Files (x86)/Python37-32/lib
and pip installs third party packages into
(your python dir/lib/site-packages, in my case C:/Program Files (x86)/Python37-32/lib/site-packages
you should be able to find quandl packages there, if not then you did not installed it correctly. And if you use pip in a venv(i.e, VirtualEnv- find more about venv at https://docs.python.org/3/tutorial/venv.html and pycharm uses venv by default, you'll find the library in (your project location)/venv/lib/site-packages, which in my case, C:/Users/user/Documents/PyProject1/venv/lib/site-packages, you'll definitely find your quandl packages there too; if not you need to re-install it. Python import mechanism is,
it always tries find modules into your code file home directory, PYTHONPATH, standard library directories, site-packages directory, .pth files, by default. you can see the path by the following command,
import sys print(sys.path)
then you can check the paths, check for quadl installation dir, if it's not in site-packages as mentioned earlier(which may be an exception and installation fault), update it. check PYTHONPATH in Windows
If you use pycharm then when you create a project, expand the
project Interpreter:new virtual environment, then check inherit global site-packages, then pycharm automatically import third party packages into venv site-packages.
and also you need to install anything using pip with administrator privileges in windows, otherwise pip'll not install packages correctly. Hope this helps
- "Import quandl" means nothing if the package is not installed - that appears to be in your case. See this instructions : docs.quandl.com/v1.0/docs/python-installation. I use Quandl a lot and it works fine.
- @Roberval_T_ I have installed the package. I mentioned that in my question.
- Windows 10 64 bit, Python 3.7.0, no errors. surely something wrong with your PyCharm settings.
- @MunimMunna that doesn't help me so much. Tell me what to check.
- IIRC 0xC0000005 means access violation, but judging by the
quandls source code, it's pure python - are you sure it's
quandland not some dependency? Can you at least try
import numpy, pandasfirst to see if those work?
- I did find the proper wheel to my pip in the link you attached. It is pandas-0.23.4-cp37-cp37m-win_amd64.whl. However I unistalled pandas and then installed the wheel and the exception is still thrown when I try to import pandas and run the program. I'm yet to try the other options (of 3rd party wheels and building from source file).
- @Alon If you found the wheel on PyPI and after reinstalling you still get the same error, I strongly encourage you to open an issue on pandas Github repo. On your machine, installing the official wheel makes
pandasunusable, so it's a severe issue to me. Also, keep in mind that Python 3.7 is still in its early days, so errors are likely to occur. You can install Python 3.6 alongside the 3.7, install
py -3.6 -m pip install pandas) and check whether the
import pandassucceeds. If it does, most probably you found a new bug.
- I'd also suggest to run the import line with
gdbto get some error stacktrace before filing the issue, but am unsure whether/how one can install and use
- I have installed both pip and Quandl. I tried now to reinstall it, but there's no change. This is not the case.