Closed snas1690 closed 1 year ago
It seems like there might be an issue with the way you have imported and call the package.
please refer to demo.py on how you should import and use the library
mark close
I have got the same issue.
It seems the problem is in 'from .db import *' line in main.py. There is no db.py in FOC folder.
please refer to demo.py on how you should import and use the library, let me know if it works for you =)
from FOC import FOC Traceback (most recent call last): See below, imported exactly as in demo.py. Still getting the same issue.
File "
File "C:\ProgramData\Anaconda3\lib\site-packages\FOC__init__.py", line 2, in
ModuleNotFoundError: No module named 'FOC.db'
from FOC import FOC Traceback (most recent call last):
File "
File "C:\ProgramData\Anaconda3\lib\site-packages\FOC__init__.py", line 2, in
ModuleNotFoundError: No module named 'FOC.db'
may i check what is the python version you are using?
i have release version:0.01
please update the package, do let me know if you still encounter the same error
pip install --upgrade freeoptionschain
Thanks!
(base) PS C:\Windows\system32> python --version Python 3.7.6
upgraded. Still have issue, see below
(base) PS C:\Windows\system32> python Python 3.7.6 (default, Jan 8 2020, 20:23:39) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32 Type "help", "copyright", "credits" or "license" for more information.
from FOC import FOC Traceback (most recent call last): File "
", line 1, in File "C:\ProgramData\Anaconda3\lib\site-packages\FOC__init__.py", line 2, in from .db import * ModuleNotFoundError: No module named 'FOC.db'
thanks for sharing the info, i'll check it out on a PC with windows OS.
I'll reopen the issue as a bug fix
Thanks a lot!
Hi there, I think the commit is just missing the db.py file. I was able to get it to work by manually creating it.
i found out the reason for the error was because i did not provide the cython-compiled db library that is compatible for windows OS.
i have updated the repository with 'db.cp38-win_amd64.pyd', please update the package, do let me know if you still encounter the same error
pip install freeoptionschain==0.6
Completed all requirements but getting this error