Skip to content
This repository has been archived by the owner on Oct 16, 2021. It is now read-only.

Release 0.5.0 #19

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Release 0.5.0 #19

wants to merge 2 commits into from

Conversation

st3107
Copy link
Contributor

@st3107 st3107 commented Oct 15, 2021

@st3107 st3107 requested a review from mrakitin October 15, 2021 17:17
@st3107
Copy link
Contributor Author

st3107 commented Oct 15, 2021

Something wrong with the pypi. The pip install yields error:

(pdfstream_env) ➜  temp pip install --user pdfstream-0.5.0.tar.gz
Processing ./pdfstream-0.5.0.tar.gz
ERROR: Exception:
Traceback (most recent call last):
  File "/Users/sst/anaconda3/envs/pdfstream_env/lib/python3.8/tarfile.py", line 1672, in gzopen
    t = cls.taropen(name, mode, fileobj, **kwargs)
  File "/Users/sst/anaconda3/envs/pdfstream_env/lib/python3.8/tarfile.py", line 1649, in taropen
    return cls(name, mode, fileobj, **kwargs)
  File "/Users/sst/anaconda3/envs/pdfstream_env/lib/python3.8/tarfile.py", line 1512, in __init__
    self.firstmember = self.next()
  File "/Users/sst/anaconda3/envs/pdfstream_env/lib/python3.8/tarfile.py", line 2313, in next
    tarinfo = self.tarinfo.fromtarfile(self)
  File "/Users/sst/anaconda3/envs/pdfstream_env/lib/python3.8/tarfile.py", line 1102, in fromtarfile
    buf = tarfile.fileobj.read(BLOCKSIZE)
  File "/Users/sst/anaconda3/envs/pdfstream_env/lib/python3.8/gzip.py", line 292, in read
    return self._buffer.read(size)
  File "/Users/sst/anaconda3/envs/pdfstream_env/lib/python3.8/_compression.py", line 68, in readinto
    data = self.read(len(byte_view))
  File "/Users/sst/anaconda3/envs/pdfstream_env/lib/python3.8/gzip.py", line 479, in read
    if not self._read_gzip_header():
  File "/Users/sst/anaconda3/envs/pdfstream_env/lib/python3.8/gzip.py", line 427, in _read_gzip_header
    raise BadGzipFile('Not a gzipped file (%r)' % magic)
gzip.BadGzipFile: Not a gzipped file (b'<h')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/sst/anaconda3/envs/pdfstream_env/lib/python3.8/site-packages/pip/_internal/cli/base_command.py", line 224, in _main
    status = self.run(options, args)
  File "/Users/sst/anaconda3/envs/pdfstream_env/lib/python3.8/site-packages/pip/_internal/cli/req_command.py", line 180, in wrapper
    return func(self, options, args)
  File "/Users/sst/anaconda3/envs/pdfstream_env/lib/python3.8/site-packages/pip/_internal/commands/install.py", line 320, in run
    requirement_set = resolver.resolve(
  File "/Users/sst/anaconda3/envs/pdfstream_env/lib/python3.8/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 121, in resolve
    self._result = resolver.resolve(
  File "/Users/sst/anaconda3/envs/pdfstream_env/lib/python3.8/site-packages/pip/_vendor/resolvelib/resolvers.py", line 445, in resolve
    state = resolution.resolve(requirements, max_rounds=max_rounds)
  File "/Users/sst/anaconda3/envs/pdfstream_env/lib/python3.8/site-packages/pip/_vendor/resolvelib/resolvers.py", line 310, in resolve
    name, crit = self._merge_into_criterion(r, parent=None)
  File "/Users/sst/anaconda3/envs/pdfstream_env/lib/python3.8/site-packages/pip/_vendor/resolvelib/resolvers.py", line 169, in _merge_into_criterion
    name = self._p.identify(requirement)
  File "/Users/sst/anaconda3/envs/pdfstream_env/lib/python3.8/site-packages/pip/_internal/resolution/resolvelib/provider.py", line 60, in identify
    return dependency.name
  File "/Users/sst/anaconda3/envs/pdfstream_env/lib/python3.8/site-packages/pip/_internal/resolution/resolvelib/requirements.py", line 41, in name
    return self.candidate.name
  File "/Users/sst/anaconda3/envs/pdfstream_env/lib/python3.8/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 188, in name
    return self.project_name
  File "/Users/sst/anaconda3/envs/pdfstream_env/lib/python3.8/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 182, in project_name
    self._name = canonicalize_name(self.dist.project_name)
  File "/Users/sst/anaconda3/envs/pdfstream_env/lib/python3.8/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 239, in dist
    self._prepare()
  File "/Users/sst/anaconda3/envs/pdfstream_env/lib/python3.8/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 226, in _prepare
    dist = self._prepare_distribution()
  File "/Users/sst/anaconda3/envs/pdfstream_env/lib/python3.8/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 318, in _prepare_distribution
    return self._factory.preparer.prepare_linked_requirement(
  File "/Users/sst/anaconda3/envs/pdfstream_env/lib/python3.8/site-packages/pip/_internal/operations/prepare.py", line 480, in prepare_linked_requirement
    return self._prepare_linked_requirement(req, parallel_builds)
  File "/Users/sst/anaconda3/envs/pdfstream_env/lib/python3.8/site-packages/pip/_internal/operations/prepare.py", line 503, in _prepare_linked_requirement
    local_file = unpack_url(
  File "/Users/sst/anaconda3/envs/pdfstream_env/lib/python3.8/site-packages/pip/_internal/operations/prepare.py", line 263, in unpack_url
    unpack_file(file.path, location, file.content_type)
  File "/Users/sst/anaconda3/envs/pdfstream_env/lib/python3.8/site-packages/pip/_internal/utils/unpacking.py", line 270, in unpack_file
    untar_file(filename, location)
  File "/Users/sst/anaconda3/envs/pdfstream_env/lib/python3.8/site-packages/pip/_internal/utils/unpacking.py", line 187, in untar_file
    tar = tarfile.open(filename, mode)
  File "/Users/sst/anaconda3/envs/pdfstream_env/lib/python3.8/tarfile.py", line 1619, in open
    return func(name, filemode, fileobj, **kwargs)
  File "/Users/sst/anaconda3/envs/pdfstream_env/lib/python3.8/tarfile.py", line 1676, in gzopen
    raise ReadError("not a gzip file")
tarfile.ReadError: not a gzip file

@st3107
Copy link
Contributor Author

st3107 commented Oct 15, 2021

Proposed solution: try if using the github as the source will work.

@mrakitin
Copy link
Contributor

Hi @st3107, we switched to using conda-forge for packaging. Could you please submit an update there? Please add yourself as a maintainer.

https://github.com/conda-forge/pdfstream-feedstock

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants