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

python #390

Open
THEKINGSTAR opened this issue Aug 8, 2021 · 2 comments
Open

python #390

THEKINGSTAR opened this issue Aug 8, 2021 · 2 comments

Comments

@THEKINGSTAR
Copy link

build\bdist.win-amd64\egg\learntools\computer_vision\ex5.py:81: SyntaxWarning: "is" with a literal. Did you mean "=="?
assert (activations[0] is 'relu' and activations[1] is 'relu'),
build\bdist.win-amd64\egg\learntools\computer_vision\ex5.py:81: SyntaxWarning: "is" with a literal. Did you mean "=="?
assert (activations[0] is 'relu' and activations[1] is 'relu'),
byte-compiling build\bdist.win-amd64\egg\learntools\computer_vision\ex6.py to ex6.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\learntools\computer_vision\visiontools.py to visiontools.cpython-39.pyc
build\bdist.win-amd64\egg\learntools\computer_vision\visiontools.py:40: SyntaxWarning: "is" with a literal. Did you mean "=="?
if type is 'binary':
build\bdist.win-amd64\egg\learntools\computer_vision\visiontools.py:42: SyntaxWarning: "is" with a literal. Did you mean "=="?
elif type is 'sparse':
build\bdist.win-amd64\egg\learntools\computer_vision\visiontools.py:302: SyntaxWarning: "is" with a literal. Did you mean "=="?
if layer.class.name is 'Conv2D']
build\bdist.win-amd64\egg\learntools\computer_vision\visiontools.py:460: SyntaxWarning: "is" with a literal. Did you mean "=="?
if fill_method is 'replicate':
build\bdist.win-amd64\egg\learntools\computer_vision\visiontools.py:464: SyntaxWarning: "is" with a literal. Did you mean "=="?
elif fill_method is 'reflect':

@THEKINGSTAR
Copy link
Author

python introduction exercises 5,6,7 have errors while setup notebook before running codes

and this is the errors generated in the setup proses

@justineuro
Copy link

justineuro commented Aug 9, 2021

I also got an error while installing learntools in Debian 10 (buster) although the install was completed.
The command used was python3 setup.py install --prefix=$HOME/.local (issued using python-v3.7.3 within the cloned directory).
An excerpt of part of the output of the install where the error occurred follows:

...
byte-compiling build/bdist.linux-x86_64/egg/learntools/feature_engineering_new/ex4.py to ex4.cpython-37.pyc
byte-compiling build/bdist.linux-x86_64/egg/learntools/feature_engineering_new/ex5.py to ex5.cpython-37.pyc
byte-compiling build/bdist.linux-x86_64/egg/learntools/bqml/__init__.py to __init__.cpython-37.pyc
byte-compiling build/bdist.linux-x86_64/egg/learntools/bqml/ex1.py to ex1.cpython-37.pyc
  File "build/bdist.linux-x86_64/egg/learntools/bqml/ex1.py", line 33
    FIX THIS
           ^
SyntaxError: invalid syntax

byte-compiling build/bdist.linux-x86_64/egg/learntools/bqml/ex3.py to ex3.cpython-37.pyc
byte-compiling build/bdist.linux-x86_64/egg/learntools/bqml/ex4.py to ex4.cpython-37.pyc
byte-compiling build/bdist.linux-x86_64/egg/learntools/bqml/ex5.py to ex5.cpython-37.pyc
byte-compiling build/bdist.linux-x86_64/egg/learntools/machine_learning/ex8.py to ex8.cpython-37.pyc
 ...

I was also able to import ex1 up to ex5 👍 but got errors (NotADirectoryError: [Erno 20]) when importing ex6 and ex7:

  • NotADirectoryError: [Errno 20] Not a directory: '[HomeDir]/.local/lib/python3.7/site-packages/learntools-0.3.4-py3.7.egg/learntools/python/solns/word_search.py' for ex6.py and
  • NotADirectoryError: [Errno 20] Not a directory: '[HomeDir]/.local/lib/python3.7/site-packages/learntools-0.3.4-py3.7.egg/learntools/python/solns/jimmygraph.py' for ex7.py

I am not sure if these two errors are connected with the previous error from the installation process.

I'd appreciate any help that anyone can extend. Many thanks in advance!

P.S. Attached is the entire output (slightly edited) of the installation process: learntoolsInstall-20210810.txt

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