Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

I sometimes get an error from "import panther as pd" line in python3

0 votes
asked Sep 9, 2019 by Delta144 (120 points)
I have some code and I use numpy and panther imported and sometimes the original fork works and sometimes it does not, forking coming off the original never work. Below is the error I get

Traceback (most recent call last):
  File "main.py", line 2, in <module>
    import pandas as pd
  File "/usr/lib/python3/dist-packages/pandas/__init__.py", line 40, in <module>
    from pandas.core.api import *
  File "/usr/lib/python3/dist-packages/pandas/core/api.py", line 12, in <module>
    from pandas.core.series import Series, TimeSeries
  File "/usr/lib/python3/dist-packages/pandas/core/series.py", line 2617, in <module>
    import pandas.tools.plotting as _gfx
  File "/usr/lib/python3/dist-packages/pandas/tools/plotting.py", line 23, in <module>
    import pandas.tseries.converter as conv
  File "/usr/lib/python3/dist-packages/pandas/tseries/converter.py", line 7, in <module>
    import matplotlib.units as units
  File "/usr/lib/python3/dist-packages/matplotlib/__init__.py", line 967, in <module>
    rcParams = rc_params()
  File "/usr/lib/python3/dist-packages/matplotlib/__init__.py", line 876, in rc_params
    fname = matplotlib_fname()
  File "/usr/lib/python3/dist-packages/matplotlib/__init__.py", line 744, in matplotlib_fname
    configdir = _get_configdir()
  File "/usr/lib/python3/dist-packages/matplotlib/__init__.py", line 613, in _get_configdir
    return _get_config_or_cache_dir(_get_xdg_config_dir())
  File "/usr/lib/python3/dist-packages/matplotlib/__init__.py", line 590, in _get_config_or_cache_dir
    return _create_tmp_config_dir()
  File "/usr/lib/python3/dist-packages/matplotlib/__init__.py", line 522, in _create_tmp_config_dir
    tempdir = os.path.join(tempdir, 'matplotlib-%s' % getpass.getuser())
  File "/usr/lib/python3.4/getpass.py", line 170, in getuser
    return pwd.getpwuid(os.getuid())[0]
KeyError: 'getpwuid(): uid not found: 14080'

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.