Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error installing zowie with pipx #18

Closed
luispuerto opened this issue Mar 17, 2023 · 3 comments
Closed

Error installing zowie with pipx #18

luispuerto opened this issue Mar 17, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@luispuerto
Copy link

luispuerto commented Mar 17, 2023

I'm not able to install zowie with pipx. Which pip install with no issue.

pipx install zowie
Fatal error from pip prevented installation. Full pip output in file:
    /Users/luispuerto/Developer/zzStorageRoom/dotfiles/.local/pipx/logs/cmd_2023-03-17_17.03.52_pip_errors.log

pip seemed to fail to build package:
    pyobjc-framework-Cocoa>=7.3

Some possibly relevant errors from pip install:
    error: subprocess-exited-with-error
    TypeError: not enough arguments for format string
    error: metadata-generation-failed

Error installing zowie.
Fatal error from pip prevented installation. Full pip output in file:
    /Users/luispuerto/Developer/zzStorageRoom/dotfiles/.local/pipx/logs/cmd_2023-03-17_17.03.52_pip_errors.log

pip seemed to fail to build package:
    pyobjc-framework-Cocoa>=7.3

Some possibly relevant errors from pip install:
    error: subprocess-exited-with-error
    TypeError: not enough arguments for format string
    error: metadata-generation-failed

Error installing zowie.
PIP STDOUT
----------
Collecting zowie
  Using cached zowie-1.2.0-py3-none-any.whl (38 kB)
Collecting aenum==3.1.0
  Using cached aenum-3.1.0-py3-none-any.whl (123 kB)
Collecting biplist==1.0.3
  Using cached biplist-1.0.3.tar.gz (21 kB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting boltons==21.0.0
  Using cached boltons-21.0.0-py2.py3-none-any.whl (193 kB)
Collecting bun==0.0.8
  Using cached bun-0.0.8-py3-none-any.whl (11 kB)
Collecting commonpy==1.5.0
  Using cached commonpy-1.5.0-py3-none-any.whl (23 kB)
Collecting keyring==23.2.1
  Using cached keyring-23.2.1-py3-none-any.whl (33 kB)
Collecting keyrings.alt==4.1.0
  Using cached keyrings.alt-4.1.0-py3-none-any.whl (20 kB)
Collecting pdfrw==0.4
  Using cached pdfrw-0.4-py2.py3-none-any.whl (69 kB)
Collecting plac==1.3.3
  Using cached plac-1.3.3-py2.py3-none-any.whl (22 kB)
Collecting py-applescript==1.0.2
  Using cached py_applescript-1.0.2-py3-none-any.whl (22 kB)
Collecting pyzotero==1.4.26
  Using cached Pyzotero-1.4.26-py2.py3-none-any.whl (27 kB)
Collecting pyxattr==0.7.2
  Using cached pyxattr-0.7.2.tar.gz (31 kB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting setuptools==58.3.0
  Using cached setuptools-58.3.0-py3-none-any.whl (946 kB)
Collecting sidetrack==2.0.0
  Using cached sidetrack-2.0.0-py3-none-any.whl (10 kB)
Collecting pyobjc-core==7.3.0
  Using cached pyobjc-core-7.3.tar.gz (684 kB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting pyobjc-framework-AppleScriptKit==7.3.0
  Using cached pyobjc_framework_AppleScriptKit-7.3-py2.py3-none-any.whl (3.8 kB)
Collecting pyobjc-framework-AppleScriptObjC==7.3.0
  Using cached pyobjc_framework_AppleScriptObjC-7.3-py2.py3-none-any.whl (3.9 kB)
Collecting pytest>=6.1.0
  Using cached pytest-7.2.2-py3-none-any.whl (317 kB)
Collecting rich>=9.0.0
  Using cached rich-13.3.2-py3-none-any.whl (238 kB)
Requirement already satisfied: wheel>=0.33.6 in ./Developer/zzStorageRoom/dotfiles/.local/pipx/shared/lib/python3.11/site-packages (from bun==0.0.8->zowie) (0.40.0)
Collecting PyYAML>=5.3.1
  Using cached PyYAML-6.0-cp311-cp311-macosx_11_0_arm64.whl (167 kB)
Collecting dateparser>=1.0.0
  Using cached dateparser-1.1.7-py2.py3-none-any.whl (293 kB)
Collecting h2>=3.2.0
  Using cached h2-4.1.0-py3-none-any.whl (57 kB)
Collecting httpx>=0.18.2
  Using cached httpx-0.23.3-py3-none-any.whl (71 kB)
Collecting humanize>=3.0.0
  Using cached humanize-4.6.0-py3-none-any.whl (109 kB)
Collecting python-dateutil>=2.8.1
  Using cached python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
Collecting tldextract>=2.2.3
  Using cached tldextract-3.4.0-py3-none-any.whl (93 kB)
Collecting validator-collection>=1.5.0
  Using cached validator_collection-1.5.0-py2.py3-none-any.whl (36 kB)
Collecting importlib-metadata>=3.6
  Using cached importlib_metadata-6.0.0-py3-none-any.whl (21 kB)
Collecting pyobjc-framework-Cocoa>=7.3
  Using cached pyobjc_framework_Cocoa-9.0.1-cp311-cp311-macosx_10_9_universal2.whl (388 kB)
Collecting pytz
  Using cached pytz-2022.7.1-py2.py3-none-any.whl (499 kB)
Collecting requests>=2.21.0
  Using cached requests-2.28.2-py3-none-any.whl (62 kB)
Collecting bibtexparser
  Using cached bibtexparser-1.4.0.tar.gz (51 kB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting feedparser>=6
  Using cached feedparser-6.0.10-py3-none-any.whl (81 kB)
Collecting regex!=2019.02.19,!=2021.8.27
  Using cached regex-2022.10.31-cp311-cp311-macosx_11_0_arm64.whl (287 kB)
Collecting tzlocal
  Using cached tzlocal-4.2-py3-none-any.whl (19 kB)
Collecting sgmllib3k
  Using cached sgmllib3k-1.0.0.tar.gz (5.8 kB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting hyperframe<7,>=6.0
  Using cached hyperframe-6.0.1-py3-none-any.whl (12 kB)
Collecting hpack<5,>=4.0
  Using cached hpack-4.0.0-py3-none-any.whl (32 kB)
Collecting certifi
  Using cached certifi-2022.12.7-py3-none-any.whl (155 kB)
Collecting httpcore<0.17.0,>=0.15.0
  Using cached httpcore-0.16.3-py3-none-any.whl (69 kB)
Collecting rfc3986[idna2008]<2,>=1.3
  Using cached rfc3986-1.5.0-py2.py3-none-any.whl (31 kB)
Collecting sniffio
  Using cached sniffio-1.3.0-py3-none-any.whl (10 kB)
Collecting zipp>=0.5
  Using cached zipp-3.15.0-py3-none-any.whl (6.8 kB)
Collecting pyobjc-framework-Cocoa>=7.3
  Using cached pyobjc_framework_Cocoa-9.0-cp311-cp311-macosx_10_9_universal2.whl (388 kB)
  Using cached pyobjc_framework_Cocoa-8.5.1-cp311-cp311-macosx_10_9_universal2.whl (388 kB)
  Using cached pyobjc-framework-Cocoa-8.5.tar.gz (4.6 MB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
  Using cached pyobjc-framework-Cocoa-8.4.1.tar.gz (4.6 MB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
  Using cached pyobjc-framework-Cocoa-8.4.tar.gz (4.6 MB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
  Using cached pyobjc-framework-Cocoa-8.3.tar.gz (4.0 MB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
  Using cached pyobjc-framework-Cocoa-8.2.tar.gz (4.0 MB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
  Using cached pyobjc-framework-Cocoa-8.1.tar.gz (4.0 MB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
  Using cached pyobjc-framework-Cocoa-8.0.tar.gz (4.0 MB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
  Using cached pyobjc-framework-Cocoa-7.3.tar.gz (3.5 MB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'error'

PIP STDERR
----------
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [9 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/private/var/folders/zm/clm72_7978105k4sj96x794r0000gn/T/pip-install-tspdoh0w/pyobjc-framework-cocoa_e861cadae9024920801682e43b4fabd0/setup.py", line 23, in <module>
          Extension(
        File "/private/var/folders/zm/clm72_7978105k4sj96x794r0000gn/T/pip-install-tspdoh0w/pyobjc-framework-cocoa_e861cadae9024920801682e43b4fabd0/pyobjc_setup.py", line 459, in Extension
          "-DPyObjC_BUILD_RELEASE=%02d%02d" % (tuple(map(int, os_level.split("."))))
          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      TypeError: not enough arguments for format string
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
@danieltomasz
Copy link

I have the same probelm, pipx is using python 3.11.2 , but I was able install zowie with 3.10.9, I didnt check if zowie can be installed with pip and 3.11.2

@mhucka
Copy link
Owner

mhucka commented Apr 4, 2023

I'm able to reproduce this, and I'm testing a fix now (as I write this, in fact). The problem is due to changes in packages that Zowie uses. I'm going to make a release shortly that should fix this.

@mhucka mhucka added the bug Something isn't working label Apr 4, 2023
@mhucka
Copy link
Owner

mhucka commented Apr 9, 2023

This should hopefully be fixed in release 1.3.0.

@mhucka mhucka closed this as completed Apr 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants