Skip to content

Error when running python load_into_pg.py -d stackoverflow -s pgload #15

Open
@flfilip

Description

@flfilip

Hi Team,

Could you please help me with the below error when trying to run python load_into_pg.py? Am I missing something?

Traceback (most recent call last):
File "load_into_pg.py", line 413, in
import libarchive
File "/home/pgadminuser/.local/lib/python2.7/site-packages/libarchive/init.py", line 1, in
from .entry import ArchiveEntry
File "/home/pgadminuser/.local/lib/python2.7/site-packages/libarchive/entry.py", line 6, in
from . import ffi
File "/home/pgadminuser/.local/lib/python2.7/site-packages/libarchive/ffi.py", line 108, in
errno = ffi('errno', [c_archive_p], c_int)
File "/home/pgadminuser/.local/lib/python2.7/site-packages/libarchive/ffi.py", line 95, in ffi
f = getattr(libarchive, 'archive_'+name)
File "/usr/lib/python2.7/ctypes/init.py", line 379, in getattr
func = self.getitem(name)
File "/usr/lib/python2.7/ctypes/init.py", line 384, in getitem
func = self._FuncPtr((name_or_ordinal, self))

When running the below command it all seems ok.

pip install -r requirements.txt
Collecting argparse==1.2.1 (from -r requirements.txt (line 1))
Collecting distribute==0.6.24 (from -r requirements.txt (line 2))
Collecting libarchive-c==2.9 (from -r requirements.txt (line 3))
Using cached https://files.pythonhosted.org/packages/23/16/622ae829e9c1795479df865bbcbb4e7e3990f3e451e440f00bf1615be7fc/libarchive_c-2.9-py2.py3-none-any.whl
Collecting lxml==4.5.2 (from -r requirements.txt (line 4))
Using cached https://files.pythonhosted.org/packages/d1/2d/642ef7013aa56af52e14b5b7d53c5d591e6d038c9688e06d0f2a20ed26b2/lxml-4.5.2-cp27-cp27mu-manylinux1_x86_64.whl
Collecting psycopg2-binary==2.8.4 (from -r requirements.txt (line 5))
Using cached https://files.pythonhosted.org/packages/97/2a/b854019bcb9b925cd10ff245dbc9448a82fe7fdb40127e5cf1733ad0765c/psycopg2_binary-2.8.4-cp27-cp27mu-manylinux1_x86_64.whl
Collecting six==1.10.0 (from -r requirements.txt (line 6))
Using cached https://files.pythonhosted.org/packages/c8/0a/b6723e1bc4c516cb687841499455a8505b44607ab535be01091c0f24f079/six-1.10.0-py2.py3-none-any.whl
Installing collected packages: argparse, distribute, libarchive-c, lxml, psycopg2-binary, six
Successfully installed argparse-1.2.1 distribute-0.6.24 libarchive-c-2.9 lxml-4.6.2 psycopg2-binary-2.8.4 six-1.10.0

Thank you,
Florin

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions