Giter VIP home page Giter VIP logo

mpt_medium_notebook's People

Contributors

taiypeo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

mpt_medium_notebook's Issues

from functools import cache # Python 3.9 required

how do i Solve this error

Collecting functools
Using cached functools-0.5.tar.gz (4.9 kB)
Building wheels for collected packages: functools
Building wheel for functools (setup.py) ... ?25lerror
ERROR: Command errored out with exit status 1:
command: /Users/hakon-wilhelm/opt/miniconda3/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/84/w8ftyyhn1qvcc4pdvkf27r4m0000gn/T/pip-install-2rlqyyjt/functools_e2b25273428448358d2a8f1f2543c600/setup.py'"'"'; file='"'"'/private/var/folders/84/w8ftyyhn1qvcc4pdvkf27r4m0000gn/T/pip-install-2rlqyyjt/functools_e2b25273428448358d2a8f1f2543c600/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/84/w8ftyyhn1qvcc4pdvkf27r4m0000gn/T/pip-wheel-lokdz2gk
cwd: /private/var/folders/84/w8ftyyhn1qvcc4pdvkf27r4m0000gn/T/pip-install-2rlqyyjt/functools_e2b25273428448358d2a8f1f2543c600/
Complete output (26 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.9-x86_64-3.8
copying functools.py -> build/lib.macosx-10.9-x86_64-3.8
running build_ext
building '_functools' extension
creating build/temp.macosx-10.9-x86_64-3.8
creating build/temp.macosx-10.9-x86_64-3.8/src
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/hakon-wilhelm/opt/miniconda3/include -arch x86_64 -I/Users/hakon-wilhelm/opt/miniconda3/include -arch x86_64 -I/Users/hakon-wilhelm/opt/miniconda3/include/python3.8 -c src/functools.c -o build/temp.macosx-10.9-x86_64-3.8/src/functools.o
src/functools.c:43:6: warning: implicit declaration of function 'Py_InitModule3' is invalid in C99 [-Wimplicit-function-declaration]
m = Py_InitModule3("_functools", NULL, functools_doc);
^
src/functools.c:43:6: warning: this function declaration is not a prototype [-Wstrict-prototypes]
src/functools.c:43:4: warning: incompatible integer to pointer conversion assigning to 'PyObject *' (aka 'struct _object *') from 'int' [-Wint-conversion]
m = Py_InitModule3("_functools", NULL, functools_doc);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/functools.c:45:3: error: non-void function 'init_functools' should return a value [-Wreturn-type]
return;
^
src/functools.c:49:2: error: non-void function 'init_functools' should return a value [-Wreturn-type]
return;
^
3 warnings and 2 errors generated.
error: command 'gcc' failed with exit status 1

ERROR: Failed building wheel for functools
?25h Running setup.py clean for functools
Failed to build functools
Installing collected packages: functools
Running setup.py install for functools ... ?25lerror
ERROR: Command errored out with exit status 1:
command: /Users/hakon-wilhelm/opt/miniconda3/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/84/w8ftyyhn1qvcc4pdvkf27r4m0000gn/T/pip-install-2rlqyyjt/functools_e2b25273428448358d2a8f1f2543c600/setup.py'"'"'; file='"'"'/private/var/folders/84/w8ftyyhn1qvcc4pdvkf27r4m0000gn/T/pip-install-2rlqyyjt/functools_e2b25273428448358d2a8f1f2543c600/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /private/var/folders/84/w8ftyyhn1qvcc4pdvkf27r4m0000gn/T/pip-record-0bprin5j/install-record.txt --single-version-externally-managed --compile --install-headers /Users/hakon-wilhelm/opt/miniconda3/include/python3.8/functools
cwd: /private/var/folders/84/w8ftyyhn1qvcc4pdvkf27r4m0000gn/T/pip-install-2rlqyyjt/functools_e2b25273428448358d2a8f1f2543c600/
Complete output (26 lines):
running install
running build
running build_py
creating build
creating build/lib.macosx-10.9-x86_64-3.8
copying functools.py -> build/lib.macosx-10.9-x86_64-3.8
running build_ext
building '_functools' extension
creating build/temp.macosx-10.9-x86_64-3.8
creating build/temp.macosx-10.9-x86_64-3.8/src
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/hakon-wilhelm/opt/miniconda3/include -arch x86_64 -I/Users/hakon-wilhelm/opt/miniconda3/include -arch x86_64 -I/Users/hakon-wilhelm/opt/miniconda3/include/python3.8 -c src/functools.c -o build/temp.macosx-10.9-x86_64-3.8/src/functools.o
src/functools.c:43:6: warning: implicit declaration of function 'Py_InitModule3' is invalid in C99 [-Wimplicit-function-declaration]
m = Py_InitModule3("_functools", NULL, functools_doc);
^
src/functools.c:43:6: warning: this function declaration is not a prototype [-Wstrict-prototypes]
src/functools.c:43:4: warning: incompatible integer to pointer conversion assigning to 'PyObject *' (aka 'struct _object *') from 'int' [-Wint-conversion]
m = Py_InitModule3("_functools", NULL, functools_doc);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/functools.c:45:3: error: non-void function 'init_functools' should return a value [-Wreturn-type]
return;
^
src/functools.c:49:2: error: non-void function 'init_functools' should return a value [-Wreturn-type]
return;
^
3 warnings and 2 errors generated.
error: command 'gcc' failed with exit status 1
----------------------------------------
?25hERROR: Command errored out with exit status 1: /Users/hakon-wilhelm/opt/miniconda3/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/84/w8ftyyhn1qvcc4pdvkf27r4m0000gn/T/pip-install-2rlqyyjt/functools_e2b25273428448358d2a8f1f2543c600/setup.py'"'"'; file='"'"'/private/var/folders/84/w8ftyyhn1qvcc4pdvkf27r4m0000gn/T/pip-install-2rlqyyjt/functools_e2b25273428448358d2a8f1f2543c600/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /private/var/folders/84/w8ftyyhn1qvcc4pdvkf27r4m0000gn/T/pip-record-0bprin5j/install-record.txt --single-version-externally-managed --compile --install-headers /Users/hakon-wilhelm/opt/miniconda3/include/python3.8/functools Check the logs for full command output.

ImportError Traceback (most recent call last)
in
8 get_ipython().system('pip install functools')
9
---> 10 from functools import cache # Python 3.9 required
11
12 import yfinance as yf

ImportError: cannot import name 'cache' from 'functools' (/Users/hakon-wilhelm/opt/miniconda3/lib/python3.8/functools.py)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.