-
-
Notifications
You must be signed in to change notification settings - Fork 314
Closed
Labels
questionFurther information is requestedFurther information is requested
Description
It doesn't work on my machine. I think the key message is the:
/home/bost/.local/share/virtualenvs/coronavirus-tracker-api-UDBrV3nM/bin/python3: can't find '__main__' module in 'tests'
What am I doing wrong?
Full output:
> git clone https://github.com/ExpDev07/coronavirus-tracker-api.git
Cloning into 'coronavirus-tracker-api'...
remote: Enumerating objects: 251, done.
remote: Counting objects: 100% (251/251), done.
remote: Compressing objects: 100% (192/192), done.
remote: Total 1650 (delta 124), reused 176 (delta 56), pack-reused 1399
Receiving objects: 100% (1650/1650), 367.78 KiB | 1.24 MiB/s, done.
Resolving deltas: 100% (924/924), done.
cd coronavirus-tracker-api
[18:57:26] bost@bost-new-64 /tmp/coronavirus-tracker-api (0)
> pipenv shell
Creating a virtualenv for this project…
Pipfile: /tmp/coronavirus-tracker-api/Pipfile
Using /usr/local/bin/python3 (3.8.2) to create virtualenv…
⠹ Creating virtual environment...created virtual environment CPython3.8.2.final.0-64 in 143ms
creator CPython3Posix(dest=/home/bost/.local/share/virtualenvs/coronavirus-tracker-api-UDBrV3nM, clear=False, global=False)
seeder FromAppData(download=False, pip=latest, setuptools=latest, wheel=latest, via=copy, app_data_dir=/home/bost/.local/share/virtualenv/seed-app-data/v1.0.1)
activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator
✔ Successfully created virtual environment!
Virtualenv location: /home/bost/.local/share/virtualenvs/coronavirus-tracker-api-UDBrV3nM
Launching subshell in virtual environment…
[18:57:42] bost@bost-new-64 /tmp/coronavirus-tracker-api (0)
> source /home/bost/.local/share/virtualenvs/coronavirus-tracker-api-UDBrV3nM/bin/activate.fish
(coronavirus-tracker-api) [18:57:42] bost@bost-new-64 /tmp/coronavirus-tracker-api (0)
> pipenv install
Installing dependencies from Pipfile.lock (f85813)…
🐍 ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ 25/25 — 00:00:03
(coronavirus-tracker-api) [18:58:07] bost@bost-new-64 /tmp/coronavirus-tracker-api (2)
> make test
python3 `which py.test` -s -v tests
import _frozen_importlib # frozen
import _imp # builtin
import '_thread' # <class '_frozen_importlib.BuiltinImporter'>
import '_warnings' # <class '_frozen_importlib.BuiltinImporter'>
import '_weakref' # <class '_frozen_importlib.BuiltinImporter'>
import '_frozen_importlib_external' # <class '_frozen_importlib.FrozenImporter'>
import '_io' # <class '_frozen_importlib.BuiltinImporter'>
import 'marshal' # <class '_frozen_importlib.BuiltinImporter'>
import 'posix' # <class '_frozen_importlib.BuiltinImporter'>
import _thread # previously loaded ('_thread')
import '_thread' # <class '_frozen_importlib.BuiltinImporter'>
import _weakref # previously loaded ('_weakref')
import '_weakref' # <class '_frozen_importlib.BuiltinImporter'>
# installing zipimport hook
import 'time' # <class '_frozen_importlib.BuiltinImporter'>
import 'zipimport' # <class '_frozen_importlib.FrozenImporter'>
# installed zipimport hook
# /usr/local/lib/python3.8/encodings/__pycache__/__init__.cpython-38.pyc matches /usr/local/lib/python3.8/encodings/__init__.py
# code object from '/usr/local/lib/python3.8/encodings/__pycache__/__init__.cpython-38.pyc'
# /usr/local/lib/python3.8/__pycache__/codecs.cpython-38.pyc matches /usr/local/lib/python3.8/codecs.py
# code object from '/usr/local/lib/python3.8/__pycache__/codecs.cpython-38.pyc'
import '_codecs' # <class '_frozen_importlib.BuiltinImporter'>
import 'codecs' # <_frozen_importlib_external.SourceFileLoader object at 0x7fa86e2c8a00>
# /usr/local/lib/python3.8/encodings/__pycache__/aliases.cpython-38.pyc matches /usr/local/lib/python3.8/encodings/aliases.py
# code object from '/usr/local/lib/python3.8/encodings/__pycache__/aliases.cpython-38.pyc'
import 'encodings.aliases' # <_frozen_importlib_external.SourceFileLoader object at 0x7fa86e263fd0>
import 'encodings' # <_frozen_importlib_external.SourceFileLoader object at 0x7fa86e2c87f0>
# /usr/local/lib/python3.8/encodings/__pycache__/utf_8.cpython-38.pyc matches /usr/local/lib/python3.8/encodings/utf_8.py
# code object from '/usr/local/lib/python3.8/encodings/__pycache__/utf_8.cpython-38.pyc'
import 'encodings.utf_8' # <_frozen_importlib_external.SourceFileLoader object at 0x7fa86e2c8880>
import '_signal' # <class '_frozen_importlib.BuiltinImporter'>
# /usr/local/lib/python3.8/encodings/__pycache__/latin_1.cpython-38.pyc matches /usr/local/lib/python3.8/encodings/latin_1.py
# code object from '/usr/local/lib/python3.8/encodings/__pycache__/latin_1.cpython-38.pyc'
import 'encodings.latin_1' # <_frozen_importlib_external.SourceFileLoader object at 0x7fa86e27b100>
# /usr/local/lib/python3.8/__pycache__/io.cpython-38.pyc matches /usr/local/lib/python3.8/io.py
# code object from '/usr/local/lib/python3.8/__pycache__/io.cpython-38.pyc'
# /usr/local/lib/python3.8/__pycache__/abc.cpython-38.pyc matches /usr/local/lib/python3.8/abc.py
# code object from '/usr/local/lib/python3.8/__pycache__/abc.cpython-38.pyc'
import '_abc' # <class '_frozen_importlib.BuiltinImporter'>
import 'abc' # <_frozen_importlib_external.SourceFileLoader object at 0x7fa86e27b5b0>
import 'io' # <_frozen_importlib_external.SourceFileLoader object at 0x7fa86e27b2e0>
# /usr/local/lib/python3.8/__pycache__/site.cpython-38.pyc matches /usr/local/lib/python3.8/site.py
# code object from '/usr/local/lib/python3.8/__pycache__/site.cpython-38.pyc'
# /usr/local/lib/python3.8/__pycache__/os.cpython-38.pyc matches /usr/local/lib/python3.8/os.py
# code object from '/usr/local/lib/python3.8/__pycache__/os.cpython-38.pyc'
# /usr/local/lib/python3.8/__pycache__/stat.cpython-38.pyc matches /usr/local/lib/python3.8/stat.py
# code object from '/usr/local/lib/python3.8/__pycache__/stat.cpython-38.pyc'
import '_stat' # <class '_frozen_importlib.BuiltinImporter'>
import 'stat' # <_frozen_importlib_external.SourceFileLoader object at 0x7fa86e219ee0>
# /usr/local/lib/python3.8/__pycache__/_collections_abc.cpython-38.pyc matches /usr/local/lib/python3.8/_collections_abc.py
# code object from '/usr/local/lib/python3.8/__pycache__/_collections_abc.cpython-38.pyc'
import '_collections_abc' # <_frozen_importlib_external.SourceFileLoader object at 0x7fa86e219f70>
# /usr/local/lib/python3.8/__pycache__/posixpath.cpython-38.pyc matches /usr/local/lib/python3.8/posixpath.py
# code object from '/usr/local/lib/python3.8/__pycache__/posixpath.cpython-38.pyc'
# /usr/local/lib/python3.8/__pycache__/genericpath.cpython-38.pyc matches /usr/local/lib/python3.8/genericpath.py
# code object from '/usr/local/lib/python3.8/__pycache__/genericpath.cpython-38.pyc'
import 'genericpath' # <_frozen_importlib_external.SourceFileLoader object at 0x7fa86e24a8b0>
import 'posixpath' # <_frozen_importlib_external.SourceFileLoader object at 0x7fa86e2228b0>
import 'os' # <_frozen_importlib_external.SourceFileLoader object at 0x7fa86e289640>
# /usr/local/lib/python3.8/__pycache__/_sitebuiltins.cpython-38.pyc matches /usr/local/lib/python3.8/_sitebuiltins.py
# code object from '/usr/local/lib/python3.8/__pycache__/_sitebuiltins.cpython-38.pyc'
import '_sitebuiltins' # <_frozen_importlib_external.SourceFileLoader object at 0x7fa86e289ee0>
# /usr/local/lib/python3.8/__pycache__/_bootlocale.cpython-38.pyc matches /usr/local/lib/python3.8/_bootlocale.py
# code object from '/usr/local/lib/python3.8/__pycache__/_bootlocale.cpython-38.pyc'
import '_locale' # <class '_frozen_importlib.BuiltinImporter'>
import '_bootlocale' # <_frozen_importlib_external.SourceFileLoader object at 0x7fa86e24ad60>
# code object from /home/bost/.local/share/virtualenvs/coronavirus-tracker-api-UDBrV3nM/lib/python3.8/site-packages/_virtualenv.py
# /usr/local/lib/python3.8/importlib/__pycache__/__init__.cpython-38.pyc matches /usr/local/lib/python3.8/importlib/__init__.py
# code object from '/usr/local/lib/python3.8/importlib/__pycache__/__init__.cpython-38.pyc'
# /usr/local/lib/python3.8/__pycache__/types.cpython-38.pyc matches /usr/local/lib/python3.8/types.py
# code object from '/usr/local/lib/python3.8/__pycache__/types.cpython-38.pyc'
import 'types' # <_frozen_importlib_external.SourceFileLoader object at 0x7fa86e205a30>
# /usr/local/lib/python3.8/__pycache__/warnings.cpython-38.pyc matches /usr/local/lib/python3.8/warnings.py
# code object from '/usr/local/lib/python3.8/__pycache__/warnings.cpython-38.pyc'
import 'warnings' # <_frozen_importlib_external.SourceFileLoader object at 0x7fa86e205ac0>
import 'importlib' # <_frozen_importlib_external.SourceFileLoader object at 0x7fa86e205880>
# /usr/local/lib/python3.8/importlib/__pycache__/abc.cpython-38.pyc matches /usr/local/lib/python3.8/importlib/abc.py
# code object from '/usr/local/lib/python3.8/importlib/__pycache__/abc.cpython-38.pyc'
# /usr/local/lib/python3.8/importlib/__pycache__/machinery.cpython-38.pyc matches /usr/local/lib/python3.8/importlib/machinery.py
# code object from '/usr/local/lib/python3.8/importlib/__pycache__/machinery.cpython-38.pyc'
import 'importlib.machinery' # <_frozen_importlib_external.SourceFileLoader object at 0x7fa86e1a0100>
import 'importlib.abc' # <_frozen_importlib_external.SourceFileLoader object at 0x7fa86e2058b0>
# /usr/local/lib/python3.8/importlib/__pycache__/util.cpython-38.pyc matches /usr/local/lib/python3.8/importlib/util.py
# code object from '/usr/local/lib/python3.8/importlib/__pycache__/util.cpython-38.pyc'
# /usr/local/lib/python3.8/__pycache__/contextlib.cpython-38.pyc matches /usr/local/lib/python3.8/contextlib.py
# code object from '/usr/local/lib/python3.8/__pycache__/contextlib.cpython-38.pyc'
# /usr/local/lib/python3.8/collections/__pycache__/__init__.cpython-38.pyc matches /usr/local/lib/python3.8/collections/__init__.py
# code object from '/usr/local/lib/python3.8/collections/__pycache__/__init__.cpython-38.pyc'
# /usr/local/lib/python3.8/__pycache__/operator.cpython-38.pyc matches /usr/local/lib/python3.8/operator.py
# code object from '/usr/local/lib/python3.8/__pycache__/operator.cpython-38.pyc'
import '_operator' # <class '_frozen_importlib.BuiltinImporter'>
import 'operator' # <_frozen_importlib_external.SourceFileLoader object at 0x7fa86e1cbf10>
# /usr/local/lib/python3.8/__pycache__/keyword.cpython-38.pyc matches /usr/local/lib/python3.8/keyword.py
# code object from '/usr/local/lib/python3.8/__pycache__/keyword.cpython-38.pyc'
import 'keyword' # <_frozen_importlib_external.SourceFileLoader object at 0x7fa86e1cbe20>
# /usr/local/lib/python3.8/__pycache__/heapq.cpython-38.pyc matches /usr/local/lib/python3.8/heapq.py
# code object from '/usr/local/lib/python3.8/__pycache__/heapq.cpython-38.pyc'
# extension module '_heapq' loaded from '/usr/local/lib/python3.8/lib-dynload/_heapq.cpython-38-x86_64-linux-gnu.so'
# extension module '_heapq' executed from '/usr/local/lib/python3.8/lib-dynload/_heapq.cpython-38-x86_64-linux-gnu.so'
import '_heapq' # <_frozen_importlib_external.ExtensionFileLoader object at 0x7fa86e1558e0>
import 'heapq' # <_frozen_importlib_external.SourceFileLoader object at 0x7fa86e1551c0>
import 'itertools' # <class '_frozen_importlib.BuiltinImporter'>
# /usr/local/lib/python3.8/__pycache__/reprlib.cpython-38.pyc matches /usr/local/lib/python3.8/reprlib.py
# code object from '/usr/local/lib/python3.8/__pycache__/reprlib.cpython-38.pyc'
import 'reprlib' # <_frozen_importlib_external.SourceFileLoader object at 0x7fa86e155550>
import '_collections' # <class '_frozen_importlib.BuiltinImporter'>
import 'collections' # <_frozen_importlib_external.SourceFileLoader object at 0x7fa86e1b4130>
# /usr/local/lib/python3.8/__pycache__/functools.cpython-38.pyc matches /usr/local/lib/python3.8/functools.py
# code object from '/usr/local/lib/python3.8/__pycache__/functools.cpython-38.pyc'
import '_functools' # <class '_frozen_importlib.BuiltinImporter'>
import 'functools' # <_frozen_importlib_external.SourceFileLoader object at 0x7fa86e1b42e0>
import 'contextlib' # <_frozen_importlib_external.SourceFileLoader object at 0x7fa86e1a0af0>
import 'importlib.util' # <_frozen_importlib_external.SourceFileLoader object at 0x7fa86e212bb0>
# /usr/local/lib/python3.8/__pycache__/threading.cpython-38.pyc matches /usr/local/lib/python3.8/threading.py
# code object from '/usr/local/lib/python3.8/__pycache__/threading.cpython-38.pyc'
# /usr/local/lib/python3.8/__pycache__/_weakrefset.cpython-38.pyc matches /usr/local/lib/python3.8/_weakrefset.py
# code object from '/usr/local/lib/python3.8/__pycache__/_weakrefset.cpython-38.pyc'
import '_weakrefset' # <_frozen_importlib_external.SourceFileLoader object at 0x7fa86e111100>
import 'threading' # <_frozen_importlib_external.SourceFileLoader object at 0x7fa86e1a0fa0>
import '_virtualenv' # <_frozen_importlib_external.SourceFileLoader object at 0x7fa86e1e8100>
import 'site' # <_frozen_importlib_external.SourceFileLoader object at 0x7fa86e27bf10>
Python 3.8.2 (default, Mar 26 2020, 12:09:42)
[GCC 9.2.1 20191008] on linux
Type "help", "copyright", "credits" or "license" for more information.
# /usr/local/lib/python3.8/__pycache__/runpy.cpython-38.pyc matches /usr/local/lib/python3.8/runpy.py
# code object from '/usr/local/lib/python3.8/__pycache__/runpy.cpython-38.pyc'
# /usr/local/lib/python3.8/__pycache__/pkgutil.cpython-38.pyc matches /usr/local/lib/python3.8/pkgutil.py
# code object from '/usr/local/lib/python3.8/__pycache__/pkgutil.cpython-38.pyc'
# /usr/local/lib/python3.8/__pycache__/weakref.cpython-38.pyc matches /usr/local/lib/python3.8/weakref.py
# code object from '/usr/local/lib/python3.8/__pycache__/weakref.cpython-38.pyc'
import 'weakref' # <_frozen_importlib_external.SourceFileLoader object at 0x7fa86e121b50>
import 'pkgutil' # <_frozen_importlib_external.SourceFileLoader object at 0x7fa86e121160>
import 'runpy' # <_frozen_importlib_external.SourceFileLoader object at 0x7fa86e205220>
/home/bost/.local/share/virtualenvs/coronavirus-tracker-api-UDBrV3nM/bin/python3: can't find '__main__' module in 'tests'
# clear sys.audit hooks
# clear builtins._
# clear sys.path
# clear sys.argv
# clear sys.ps1
# clear sys.ps2
# clear sys.last_type
# clear sys.last_value
# clear sys.last_traceback
# clear sys.path_hooks
# clear sys.path_importer_cache
# clear sys.meta_path
# clear sys.__interactivehook__
# restore sys.stdin
# restore sys.stdout
# restore sys.stderr
# cleanup[2] removing sys
# cleanup[2] removing builtins
# cleanup[2] removing _frozen_importlib
# cleanup[2] removing _imp
# cleanup[2] removing _warnings
# cleanup[2] removing _frozen_importlib_external
# cleanup[2] removing _io
# cleanup[2] removing marshal
# cleanup[2] removing posix
# cleanup[2] removing _thread
# cleanup[2] removing _weakref
# cleanup[2] removing time
# cleanup[2] removing zipimport
# cleanup[2] removing _codecs
# cleanup[2] removing codecs
# cleanup[2] removing encodings.aliases
# cleanup[2] removing encodings
# destroy encodings
# cleanup[2] removing encodings.utf_8
# cleanup[2] removing _signal
# cleanup[2] removing encodings.latin_1
# cleanup[2] removing _abc
# cleanup[2] removing abc
# cleanup[2] removing io
# cleanup[2] removing _stat
# cleanup[2] removing stat
# cleanup[2] removing _collections_abc
# cleanup[2] removing genericpath
# cleanup[2] removing posixpath
# cleanup[2] removing os.path
# cleanup[2] removing os
# cleanup[2] removing _sitebuiltins
# cleanup[2] removing _locale
# cleanup[2] removing _bootlocale
# destroy _bootlocale
# cleanup[2] removing importlib._bootstrap
# cleanup[2] removing importlib._bootstrap_external
# cleanup[2] removing types
# cleanup[2] removing warnings
# cleanup[2] removing importlib
# cleanup[2] removing importlib.machinery
# cleanup[2] removing importlib.abc
# cleanup[2] removing _operator
# cleanup[2] removing operator
# destroy operator
# cleanup[2] removing keyword
# destroy keyword
# cleanup[2] removing _heapq
# cleanup[2] removing heapq
# cleanup[2] removing itertools
# cleanup[2] removing reprlib
# destroy reprlib
# cleanup[2] removing _collections
# cleanup[2] removing collections
# destroy collections
# cleanup[2] removing _functools
# cleanup[2] removing functools
# cleanup[2] removing contextlib
# destroy contextlib
# cleanup[2] removing importlib.util
# cleanup[2] removing _weakrefset
# destroy _weakrefset
# cleanup[2] removing threading
# destroy threading
# cleanup[2] removing _virtualenv
# destroy _virtualenv
# cleanup[2] removing site
# destroy site
# cleanup[2] removing weakref
# destroy weakref
# cleanup[2] removing pkgutil
# destroy pkgutil
# cleanup[2] removing runpy
# destroy runpy
# cleanup[2] removing __main__
# destroy __main__
# destroy _signal
# destroy _sitebuiltins
# destroy _locale
# destroy importlib.util
# destroy importlib.machinery
# destroy importlib.abc
# destroy functools
# destroy heapq
# destroy _collections_abc
# destroy _operator
# destroy _heapq
# destroy itertools
# destroy _collections
# destroy _functools
# destroy io
# destroy types
# destroy importlib
# destroy warnings
# destroy zipimport
# cleanup[3] wiping importlib._bootstrap_external
# cleanup[3] wiping importlib._bootstrap
# destroy _frozen_importlib_external
# cleanup[3] wiping os
# destroy abc
# destroy posixpath
# cleanup[3] wiping genericpath
# cleanup[3] wiping stat
# cleanup[3] wiping _stat
# destroy _stat
# cleanup[3] wiping _abc
# cleanup[3] wiping encodings.latin_1
# cleanup[3] wiping encodings.utf_8
# cleanup[3] wiping encodings.aliases
# cleanup[3] wiping codecs
# cleanup[3] wiping _codecs
# cleanup[3] wiping time
# cleanup[3] wiping _weakref
# destroy _weakref
# cleanup[3] wiping _thread
# cleanup[3] wiping posix
# destroy posix
# cleanup[3] wiping marshal
# destroy marshal
# cleanup[3] wiping _io
# destroy io
# cleanup[3] wiping _warnings
# destroy _warnings
# cleanup[3] wiping _imp
# destroy _imp
# cleanup[3] wiping _frozen_importlib
# cleanup[3] wiping sys
# cleanup[3] wiping builtins
# destroy _abc
# destroy stat
# destroy genericpath
# destroy _frozen_importlib
make: *** [Makefile:18: test] Error 1
(coronavirus-tracker-api) [18:58:09] bost@bost-new-64 /tmp/coronavirus-tracker-api (2)
> Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested