Can't install from pip #1

Closed
opened 2021-09-19 16:04:02 +00:00 by Ghost · 3 comments

Hi!

Nice work you've done! Unfortunately, I've tried the install from pip, but it's broken:

$ python --version
Python 3.6.9

$ pip --version
pip 9.0.1 from /usr/lib/python2.7/dist-packages (python 2.7)

$ pip install plakativ
Collecting plakativ
  Using cached https://files.pythonhosted.org/packages/77/9e/277db6cde587d9a4f5d005d433558e9c18af832ccce88f88b26cf9bbd29a/plakativ-0.4.tar.gz
Collecting PyMuPDF (from plakativ)
  Using cached https://files.pythonhosted.org/packages/cc/b9/9e093ae8c2d1f9a80b61e1862479f2577ff0dcf2c356fdc86fd77f4472f2/PyMuPDF-1.18.19.tar.gz
Collecting img2pdf (from plakativ)
  Using cached https://files.pythonhosted.org/packages/a9/b4/b484d19a7c3565bbe47eb2118d323cb1e03456f70eb1c94e994ee5ece046/img2pdf-0.4.1.tar.gz
Collecting Pillow (from img2pdf->plakativ)
  Using cached https://files.pythonhosted.org/packages/12/ad/61f8dfba88c4e56196bf6d056cdbba64dc9c5dfdfbc97d02e6472feed913/Pillow-6.2.2-cp27-cp27mu-manylinux1_x86_64.whl
Collecting pikepdf (from img2pdf->plakativ)
  Using cached https://files.pythonhosted.org/packages/1c/18/3866e1dbee27e644b8020e006e67ace3fa34cb66c7d58265044f3df5cbcb/pikepdf-0.1.3.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-Dv6Yya/pikepdf/setup.py", line 126, in <module>
        "Topic :: Software Development :: Libraries",
      File "/usr/lib/python2.7/dist-packages/setuptools/__init__.py", line 128, in setup
        _install_setup_requires(attrs)
      File "/usr/lib/python2.7/dist-packages/setuptools/__init__.py", line 123, in _install_setup_requires
        dist.fetch_build_eggs(dist.setup_requires)
      File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 513, in fetch_build_eggs
        replace_conflicting=True,
      File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 774, in resolve
        replace_conflicting=replace_conflicting
      File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 1057, in best_match
        return self.obtain(req, installer)
      File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 1069, in obtain
        return installer(requirement)
      File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 580, in fetch_build_egg
        return cmd.easy_install(req)
      File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 698, in easy_install
        return self.install_item(spec, dist.location, tmpdir, deps)
      File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 724, in install_item
        dists = self.install_eggs(spec, download, tmpdir)
      File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 909, in install_eggs
        return self.build_and_install(setup_script, setup_base)
      File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1177, in build_and_install
        self.run_setup(setup_script, setup_base, args)
      File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1163, in run_setup
        run_setup(setup_script, args)
      File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 253, in run_setup
        raise
      File "/usr/lib/python2.7/contextlib.py", line 35, in __exit__
        self.gen.throw(type, value, traceback)
      File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 195, in setup_context
        yield
      File "/usr/lib/python2.7/contextlib.py", line 35, in __exit__
        self.gen.throw(type, value, traceback)
      File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 166, in save_modules
        saved_exc.resume()
      File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 141, in resume
        six.reraise(type, exc, self._tb)
      File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 154, in save_modules
        yield saved
      File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 195, in setup_context
        yield
      File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 250, in run_setup
        _execfile(setup_script, ns)
      File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 44, in _execfile
        code = compile(script, filename, 'exec')
      File "/tmp/easy_install-8eszoK/setuptools_scm-6.3.2/setup.py", line 22
        f"{type(self).__name__} is forbidden, "
                                              ^
    SyntaxError: invalid syntax
    
    ----------------------------------------

Any thoughts?

Hi! Nice work you've done! Unfortunately, I've tried the install from pip, but it's broken: ``` $ python --version Python 3.6.9 $ pip --version pip 9.0.1 from /usr/lib/python2.7/dist-packages (python 2.7) $ pip install plakativ Collecting plakativ Using cached https://files.pythonhosted.org/packages/77/9e/277db6cde587d9a4f5d005d433558e9c18af832ccce88f88b26cf9bbd29a/plakativ-0.4.tar.gz Collecting PyMuPDF (from plakativ) Using cached https://files.pythonhosted.org/packages/cc/b9/9e093ae8c2d1f9a80b61e1862479f2577ff0dcf2c356fdc86fd77f4472f2/PyMuPDF-1.18.19.tar.gz Collecting img2pdf (from plakativ) Using cached https://files.pythonhosted.org/packages/a9/b4/b484d19a7c3565bbe47eb2118d323cb1e03456f70eb1c94e994ee5ece046/img2pdf-0.4.1.tar.gz Collecting Pillow (from img2pdf->plakativ) Using cached https://files.pythonhosted.org/packages/12/ad/61f8dfba88c4e56196bf6d056cdbba64dc9c5dfdfbc97d02e6472feed913/Pillow-6.2.2-cp27-cp27mu-manylinux1_x86_64.whl Collecting pikepdf (from img2pdf->plakativ) Using cached https://files.pythonhosted.org/packages/1c/18/3866e1dbee27e644b8020e006e67ace3fa34cb66c7d58265044f3df5cbcb/pikepdf-0.1.3.tar.gz Complete output from command python setup.py egg_info: Traceback (most recent call last): File "<string>", line 1, in <module> File "/tmp/pip-build-Dv6Yya/pikepdf/setup.py", line 126, in <module> "Topic :: Software Development :: Libraries", File "/usr/lib/python2.7/dist-packages/setuptools/__init__.py", line 128, in setup _install_setup_requires(attrs) File "/usr/lib/python2.7/dist-packages/setuptools/__init__.py", line 123, in _install_setup_requires dist.fetch_build_eggs(dist.setup_requires) File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 513, in fetch_build_eggs replace_conflicting=True, File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 774, in resolve replace_conflicting=replace_conflicting File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 1057, in best_match return self.obtain(req, installer) File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 1069, in obtain return installer(requirement) File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 580, in fetch_build_egg return cmd.easy_install(req) File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 698, in easy_install return self.install_item(spec, dist.location, tmpdir, deps) File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 724, in install_item dists = self.install_eggs(spec, download, tmpdir) File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 909, in install_eggs return self.build_and_install(setup_script, setup_base) File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1177, in build_and_install self.run_setup(setup_script, setup_base, args) File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1163, in run_setup run_setup(setup_script, args) File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 253, in run_setup raise File "/usr/lib/python2.7/contextlib.py", line 35, in __exit__ self.gen.throw(type, value, traceback) File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 195, in setup_context yield File "/usr/lib/python2.7/contextlib.py", line 35, in __exit__ self.gen.throw(type, value, traceback) File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 166, in save_modules saved_exc.resume() File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 141, in resume six.reraise(type, exc, self._tb) File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 154, in save_modules yield saved File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 195, in setup_context yield File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 250, in run_setup _execfile(setup_script, ns) File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 44, in _execfile code = compile(script, filename, 'exec') File "/tmp/easy_install-8eszoK/setuptools_scm-6.3.2/setup.py", line 22 f"{type(self).__name__} is forbidden, " ^ SyntaxError: invalid syntax ---------------------------------------- ``` Any thoughts?
Owner

Hi,

this doesn't look like something is wrong with plakativ but it looks like you are unable to install pikepdf. Can you confirm this by running:

pip install pikepdf
Hi, this doesn't look like something is wrong with plakativ but it looks like you are unable to install pikepdf. Can you confirm this by running: ``` pip install pikepdf ```
Owner

This confirms my suspicion. It's not plakativ that cannot be installed but it's pikepdf. So you should file a bug with pikepdf instead. If you cannot install pikepdf, then you cannot install plakativ.

Also note, that from your log it seems that you are still using python 2.7. You should not use python2 anymore: https://pythonclock.org/

This confirms my suspicion. It's not plakativ that cannot be installed but it's pikepdf. So you should file a bug with pikepdf instead. If you cannot install pikepdf, then you cannot install plakativ. Also note, that from your log it seems that you are still using python 2.7. You should not use python2 anymore: https://pythonclock.org/
Owner
The deb already exists: https://packages.debian.org/sid/plakativ
josch closed this issue 2021-10-09 12:54:25 +00:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: josch/plakativ#1
No description provided.