Closed tmerse closed 3 months ago
Update:
Seems like the installation does not work with Cython > v3
(I'm not too familiar with the the python ecosystem).
Using the workaround mentioned here: https://discuss.python.org/t/getting-requirements-to-build-wheel-did-not-run-successfully-exit-code-1/30365
echo "Cython<3" > cython_constraint.txt
PIP_CONSTRAINT=cython_constraint.txt pip3 install --user --upgrade 'syncall[caldav, tw]' --break-system-package
Did solve the issue, but it's still just a hacky solution :).
Hi @tmerse .
The latest version of syncall
, 1.7.1
should work. Give it a try and if it dosen't work we can re-open this!
Hello! I'm still having this problem with the latest, and 1.7.1 tag. Anything I'm doing wrong?
PIP STDOUT
----------
Collecting syncall@ git+https://github.com/bergercookie/syncall (from syncall[google,tw]@ git+https://github.com/bergercookie/syncall)
Cloning https://github.com/bergercookie/syncall to /tmp/pip-install-bh_u9v74/syncall_65d3460f08ff4958ab7c00be3d80edd6
Resolved https://github.com/bergercookie/syncall to commit cf3a97022fe76c433e3c5f3b05208f925e108d1f
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'done'
Collecting PyYAML<6.0.0,>=5.3.1 (from syncall@ git+https://github.com/bergercookie/syncall->syncall[google,tw]@ git+https://github.com/bergercookie/syncall)
Downloading PyYAML-5.4.1.tar.gz (175 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 175.1/175.1 kB 1.1 MB/s eta 0:00:00
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'error'
PIP STDERR
----------
Running command git clone --filter=blob:none --quiet https://github.com/bergercookie/syncall /tmp/pip-install-bh_u9v74/syncall_65d3460f08ff4958ab7c00be3d80edd6
Running command git submodule update --init --recursive -q
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [54 lines of output]
running egg_info
writing lib3/PyYAML.egg-info/PKG-INFO
writing dependency_links to lib3/PyYAML.egg-info/dependency_links.txt
writing top-level names to lib3/PyYAML.egg-info/top_level.txt
Traceback (most recent call last):
File "/home/shelby/.local/pipx/shared/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
main()
File "/home/shelby/.local/pipx/shared/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/shelby/.local/pipx/shared/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-alwv2jk3/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 325, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-alwv2jk3/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 295, in _get_build_requires
self.run_setup()
File "/tmp/pip-build-env-alwv2jk3/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 311, in run_setup
exec(code, locals())
File "<string>", line 271, in <module>
File "/tmp/pip-build-env-alwv2jk3/overlay/lib/python3.11/site-packages/setuptools/__init__.py", line 103, in setup
return distutils.core.setup(**attrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-alwv2jk3/overlay/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-alwv2jk3/overlay/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/tmp/pip-build-env-alwv2jk3/overlay/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
self.run_command(cmd)
File "/tmp/pip-build-env-alwv2jk3/overlay/lib/python3.11/site-packages/setuptools/dist.py", line 963, in run_command
super().run_command(command)
File "/tmp/pip-build-env-alwv2jk3/overlay/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/tmp/pip-build-env-alwv2jk3/overlay/lib/python3.11/site-packages/setuptools/command/egg_info.py", line 321, in run
self.find_sources()
File "/tmp/pip-build-env-alwv2jk3/overlay/lib/python3.11/site-packages/setuptools/command/egg_info.py", line 329, in find_sources
mm.run()
File "/tmp/pip-build-env-alwv2jk3/overlay/lib/python3.11/site-packages/setuptools/command/egg_info.py", line 551, in run
self.add_defaults()
File "/tmp/pip-build-env-alwv2jk3/overlay/lib/python3.11/site-packages/setuptools/command/egg_info.py", line 589, in add_defaults
sdist.add_defaults(self)
File "/tmp/pip-build-env-alwv2jk3/overlay/lib/python3.11/site-packages/setuptools/command/sdist.py", line 112, in add_defaults
super().add_defaults()
File "/tmp/pip-build-env-alwv2jk3/overlay/lib/python3.11/site-packages/setuptools/_distutils/command/sdist.py", line 251, in add_defaults
self._add_defaults_ext()
File "/tmp/pip-build-env-alwv2jk3/overlay/lib/python3.11/site-packages/setuptools/_distutils/command/sdist.py", line 336, in _add_defaults_ext
self.filelist.extend(build_ext.get_source_files())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<string>", line 201, in get_source_files
File "/tmp/pip-build-env-alwv2jk3/overlay/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 107, in __getattr__
raise AttributeError(attr)
AttributeError: cython_sources
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
Sorry, give it one more try @tmerse, @smtucker :-)
Now it works directly from master - pip install git+https://github.com/bergercookie/syncall
@bergercookie Hi, it seems that I am still having this problem by running pip install git+https://github.com/bergercookie/syncall
.
Collecting PyYAML<5.4.0,>=5.3.1 (from syncall==1.8.5.post1.dev0)
Using cached PyYAML-5.3.1.tar.gz (269 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [51 lines of output]
/usr/lib/python3.12/site-packages/setuptools/config/setupcfg.py:293: _DeprecatedConfig: Deprecated config in `setup.cfg`
!!
********************************************************************************
The license_file parameter is deprecated, use license_files instead.
This deprecation is overdue, please update your project and remove deprecated
calls to avoid build errors in the future.
See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
********************************************************************************
!!
parsed = self.parsers.get(option_name, lambda x: x)(value)
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/tmp/pip-install-l1t1sr6f/pyyaml_678a5f6b82634f2aa07a4abbaa3031db/setup.py", line 291, in <module>
setup(
File "/usr/lib/python3.12/site-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/usr/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.12/site-packages/setuptools/dist.py", line 1244, in run_command
super().run_command(command)
File "/usr/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/usr/lib/python3.12/site-packages/setuptools/command/egg_info.py", line 317, in run
self.find_sources()
File "/usr/lib/python3.12/site-packages/setuptools/command/egg_info.py", line 325, in find_sources
mm.run()
File "/usr/lib/python3.12/site-packages/setuptools/command/egg_info.py", line 573, in run
self.add_defaults()
File "/usr/lib/python3.12/site-packages/setuptools/command/egg_info.py", line 611, in add_defaults
sdist.add_defaults(self)
File "/usr/lib/python3.12/site-packages/setuptools/command/sdist.py", line 106, in add_defaults
super().add_defaults()
File "/usr/lib/python3.12/site-packages/setuptools/_distutils/command/sdist.py", line 251, in add_defaults
self._add_defaults_ext()
File "/usr/lib/python3.12/site-packages/setuptools/_distutils/command/sdist.py", line 336, in _add_defaults_ext
self.filelist.extend(build_ext.get_source_files())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-install-l1t1sr6f/pyyaml_678a5f6b82634f2aa07a4abbaa3031db/setup.py", line 199, in get_source_files
self.cython_sources(ext.sources, ext)
^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/setuptools/_distutils/cmd.py", line 107, in __getattr__
raise AttributeError(attr)
AttributeError: cython_sources
[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.
python version: Python 3.12.2
pip version: 23.2.1
OS: Fedora Plasma 39
BTW, other than constraining version by hand, I tried https://github.com/pypa/pipx (a project aimed to install python package in isolated environment only for running) which installed it without need of any configuration successfully.
Is this still an issue @gzqx , @tmerse ?
I've tried the pip3 install --upgrade 'syncall[caldav, tw]' --break-system-packages
command in a virtualenv with either of the following combinations and I can't repro:
On my side though, PyYAML seems to be installed from pre-compiled wheels available on pypi.org while from the error messages PyYAML is compiled from source on your end(s).
This might have been fixed in your corresponding platforms - please have a second go at it to see if it works.
In any case this doesn't seem to be an issue with this repo per se so I'll close this one.
BTW, other than constraining version by hand, I tried https://github.com/pypa/pipx (a project aimed to install python package in isolated environment only for running) which installed it without need of any configuration successfully.
How did you managed to install google and tw extras using pipx installation?
I'm getting this after the installation.
Describe the bug
Does fails (for me) during the installation process.
Versions
OS Version (
cat /etc/*-release; uname -a
)Python version (
python --version; python3 --version
)3.11.4
pip 23.0.1 from /usr/lib/python3/dist-packages/pip (python 3.11
Additional context