Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
codespaces faults
@epogrebnyak ➜ /workspaces/rides-blueprint (package ✗) $ poetry run python -c "import pandas"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/workspaces/rides-blueprint/.venv/lib/python3.8/site-packages/pandas/__init__.py", line 50, in <module>
from pandas.core.api import (
File "/workspaces/rides-blueprint/.venv/lib/python3.8/site-packages/pandas/core/api.py", line 48, in <module>
from pandas.core.groupby import (
File "/workspaces/rides-blueprint/.venv/lib/python3.8/site-packages/pandas/core/groupby/__init__.py", line 1, in <module>
from pandas.core.groupby.generic import (
File "/workspaces/rides-blueprint/.venv/lib/python3.8/site-packages/pandas/core/groupby/generic.py", line 73, in <module>
from pandas.core.frame import DataFrame
File "/workspaces/rides-blueprint/.venv/lib/python3.8/site-packages/pandas/core/frame.py", line 129, in <module>
from pandas.core import (
File "/workspaces/rides-blueprint/.venv/lib/python3.8/site-packages/pandas/core/generic.py", line 122, in <module>
from pandas.core.describe import describe_ndframe
File "/workspaces/rides-blueprint/.venv/lib/python3.8/site-packages/pandas/core/describe.py", line 39, in <module>
from pandas.io.formats.format import format_percentiles
File "/workspaces/rides-blueprint/.venv/lib/python3.8/site-packages/pandas/io/formats/format.py", line 99, in <module>
from pandas.io.common import stringify_path
File "/workspaces/rides-blueprint/.venv/lib/python3.8/site-packages/pandas/io/common.py", line 4, in <module>
import bz2
File "/opt/python/3.8.6/lib/python3.8/bz2.py", line 19, in <module>
from _bz2 import BZ2Compressor, BZ2Decompressor
ModuleNotFoundError: No module named '_bz2'
1. pandas installed
@epogrebnyak ➜ /workspaces/rides-blueprint (package) $ pip install pandas
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: pandas in /home/codespace/.local/lib/python3.8/site-packages (1.3.3)
Requirement already satisfied: numpy>=1.17.3 in /home/codespace/.local/lib/python3.8/site-packages (from pandas) (1.21.2)
Requirement already satisfied: python-dateutil>=2.7.3 in /home/codespace/.local/lib/python3.8/site-packages (from pandas) (2.8.2)
Requirement already satisfied: pytz>=2017.3 in /home/codespace/.local/lib/python3.8/site-packages (from pandas) (2021.3)
Requirement already satisfied: six>=1.5 in /usr/lib/python3/dist-packages (from python-dateutil>=2.7.3->pandas) (1.14.0)
2. six not found
@epogrebnyak ➜ /workspaces/rides-blueprint (package) $ python -c "import pandas"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/codespace/.local/lib/python3.8/site-packages/pandas/__init__.py", line 22, in <module>
from pandas.compat import (
File "/home/codespace/.local/lib/python3.8/site-packages/pandas/compat/__init__.py", line 15, in <module>
from pandas.compat.numpy import (
File "/home/codespace/.local/lib/python3.8/site-packages/pandas/compat/numpy/__init__.py", line 7, in <module>
from pandas.util.version import Version
File "/home/codespace/.local/lib/python3.8/site-packages/pandas/util/__init__.py", line 1, in <module>
from pandas.util._decorators import ( # noqa
File "/home/codespace/.local/lib/python3.8/site-packages/pandas/util/_decorators.py", line 14, in <module>
from pandas._libs.properties import cache_readonly # noqa
File "/home/codespace/.local/lib/python3.8/site-packages/pandas/_libs/__init__.py", line 13, in <module>
from pandas._libs.interval import Interval
File "pandas/_libs/interval.pyx", line 1, in init pandas._libs.interval
File "pandas/_libs/hashtable.pyx", line 1, in init pandas._libs.hashtable
File "pandas/_libs/missing.pyx", line 1, in init pandas._libs.missing
File "/home/codespace/.local/lib/python3.8/site-packages/pandas/_libs/tslibs/__init__.py", line 31, in <module>
from pandas._libs.tslibs.conversion import (
File "pandas/_libs/tslibs/conversion.pyx", line 1, in init pandas._libs.tslibs.conversion
File "pandas/_libs/tslibs/timezones.pyx", line 14, in init pandas._libs.tslibs.timezones
File "/home/codespace/.local/lib/python3.8/site-packages/dateutil/tz/__init__.py", line 2, in <module>
from .tz import *
File "/home/codespace/.local/lib/python3.8/site-packages/dateutil/tz/tz.py", line 19, in <module>
import six
ModuleNotFoundError: No module named 'six'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment