Having a hard time installing a python module (torchseq) - python

I am trying to install this module. When I run the command
pip install -r requirements.txt
I get the following:
Getting requirements to build wheel ... error
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [32 lines of output]
Traceback (most recent call last):
File "/Users/voi/Library/Python/3.8/lib/python/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in <module>
main()
File "/Users/voi/Library/Python/3.8/lib/python/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/Users/voi/Library/Python/3.8/lib/python/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 130, in get_requires_for_build_wheel
return hook(config_settings)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/build_meta.py", line 146, in get_requires_for_build_wheel
return self._get_build_requires(
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/build_meta.py", line 127, in _get_build_requires
self.run_setup()
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/build_meta.py", line 142, in run_setup
exec(compile(code, __file__, 'exec'), locals())
File "setup.py", line 8, in <module>
setup(
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/__init__.py", line 165, in setup
return distutils.core.setup(**attrs)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 108, in setup
_setup_distribution = dist = klass(attrs)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/dist.py", line 429, in __init__
_Distribution.__init__(self, {
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 293, in __init__
self.finalize_options()
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/dist.py", line 721, in finalize_options
ep(self)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/dist.py", line 727, in _finalize_setup_keywords
ep.require(installer=self.fetch_build_egg)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2483, in require
items = working_set.resolve(reqs, env, installer, extras=self.extras)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/pkg_resources/__init__.py", line 790, in resolve
raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.VersionConflict: (setuptools 49.2.1 (/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages), Requirement.parse('setuptools>=58.0'))
[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.
I have no earthly idea on what to do. I have tried doing this directly in terminal as well as in a virtual environment and neither has worked.

Related

I'm trying to install autogluon from sagemaker, but I keep getting errors

!pip install --upgrade mxnet-cu100
!pip install autogluon
The error continues to occur when the above two codes are executed in sagemaker studio.
Collecting seqeval<=1.2.2
Using cached seqeval-1.2.2.tar.gz (43 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [42 lines of output]
/opt/conda/lib/python3.7/site-packages/pkg_resources/__init__.py:126: PkgResourcesDeprecationWarning: 4.0.0-unsupported is an invalid version and will not be supported in a future release
PkgResourcesDeprecationWarning,
/opt/conda/lib/python3.7/site-packages/setuptools/installer.py:30: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.
SetuptoolsDeprecationWarning,
Traceback (most recent call last):
File "<string>", line 36, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/tmp/pip-install-b9s5vfp9/seqeval_f21cd9e2f7e648ce8f203ea1e6d8ee59/setup.py", line 56, in <module>
'Programming Language :: Python :: Implementation :: PyPy'
File "/opt/conda/lib/python3.7/site-packages/setuptools/__init__.py", line 86, in setup
_install_setup_requires(attrs)
File "/opt/conda/lib/python3.7/site-packages/setuptools/__init__.py", line 80, in _install_setup_requires
dist.fetch_build_eggs(dist.setup_requires)
File "/opt/conda/lib/python3.7/site-packages/setuptools/dist.py", line 877, in fetch_build_eggs
replace_conflicting=True,
File "/opt/conda/lib/python3.7/site-packages/pkg_resources/__init__.py", line 791, in resolve
replace_conflicting=replace_conflicting
File "/opt/conda/lib/python3.7/site-packages/pkg_resources/__init__.py", line 1075, in best_match
return self.obtain(req, installer)
File "/opt/conda/lib/python3.7/site-packages/pkg_resources/__init__.py", line 1087, in obtain
return installer(requirement)
File "/opt/conda/lib/python3.7/site-packages/setuptools/dist.py", line 944, in fetch_build_egg
return fetch_build_egg(self, req)
File "/opt/conda/lib/python3.7/site-packages/setuptools/installer.py", line 87, in fetch_build_egg
wheel.install_as_egg(dist_location)
File "/opt/conda/lib/python3.7/site-packages/setuptools/wheel.py", line 110, in install_as_egg
self._install_as_egg(destination_eggdir, zf)
File "/opt/conda/lib/python3.7/site-packages/setuptools/wheel.py", line 118, in _install_as_egg
self._convert_metadata(zf, destination_eggdir, dist_info, egg_info)
File "/opt/conda/lib/python3.7/site-packages/setuptools/wheel.py", line 170, in _convert_metadata
extras_require=extras_require,
File "/opt/conda/lib/python3.7/site-packages/setuptools/dist.py", line 479, in __init__
for k, v in attrs.items()
File "/opt/conda/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 283, in __init__
self.finalize_options()
File "/opt/conda/lib/python3.7/site-packages/setuptools/dist.py", line 898, in finalize_options
for ep in sorted(loaded, key=by_order):
File "/opt/conda/lib/python3.7/site-packages/setuptools/dist.py", line 897, in <lambda>
loaded = map(lambda e: e.load(), filtered)
File "/opt/conda/lib/python3.7/site-packages/setuptools/_vendor/importlib_metadata/__init__.py", line 196, in load
return functools.reduce(getattr, attrs, module)
AttributeError: type object 'Distribution' has no attribute '_finalize_feature_opts'
[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.
import autogluon as ag
from autogluon import TabularDataset as task
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-5-74ced3fb9150> in <module>
----> 1 import autogluon as ag
2 from autogluon import TabularDataset as task
ModuleNotFoundError: No module named 'autogluon'
There was an error during installation, so of course the module is not loaded. How do I resolve this error?

How do I build wheels for pypotrace?

I tried to run Junferno's DesmosBezierRenderer, and when it came to installing the requirements it stated that it failed building wheels for pypotrace. I'm running MacOS.
Comes with the error of: ERROR: Could not build wheels for pypotrace, which is required to install pyproject.toml-based projects
Error Message:
× Building wheel for pypotrace (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [44 lines of output]
A setup.py file already exists. Using it.
Traceback (most recent call last):
File "/private/var/folders/8x/64jyxcds3rv4v2v4vt787bcc0000gq/T/pip-install-e2vj6x74/pypotrace_45b34c6b58a74021a36a306bbb164906/setup.py", line 28, in <module>
build(setup_kwargs)
File "/private/var/folders/8x/64jyxcds3rv4v2v4vt787bcc0000gq/T/pip-install-e2vj6x74/pypotrace_45b34c6b58a74021a36a306bbb164906/build.py", line 19, in build
extra_compile_args = pkg_config("libagg", '--cflags')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/private/var/folders/8x/64jyxcds3rv4v2v4vt787bcc0000gq/T/pip-install-e2vj6x74/pypotrace_45b34c6b58a74021a36a306bbb164906/build.py", line 11, in pkg_config
return subprocess.check_output(["pkg-config", command, pkg_name]).decode(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/subprocess.py", line 465, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/subprocess.py", line 546, in run
with Popen(*popenargs, **kwargs) as process:
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/subprocess.py", line 1022, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/subprocess.py", line 1899, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'pkg-config'
Traceback (most recent call last):
File "/Users/e/DesmosBezierRenderer/env/lib/python3.11/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 351, in <module>
main()
File "/Users/e/DesmosBezierRenderer/env/lib/python3.11/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 333, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/e/DesmosBezierRenderer/env/lib/python3.11/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 249, in build_wheel
return _build_backend().build_wheel(wheel_directory, config_settings,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/private/var/folders/8x/64jyxcds3rv4v2v4vt787bcc0000gq/T/pip-build-env-uj1ao3bb/overlay/lib/python3.11/site-packages/poetry/core/masonry/api.py", line 56, in build_wheel
return WheelBuilder.make_in(
^^^^^^^^^^^^^^^^^^^^^
File "/private/var/folders/8x/64jyxcds3rv4v2v4vt787bcc0000gq/T/pip-build-env-uj1ao3bb/overlay/lib/python3.11/site-packages/poetry/core/masonry/builders/wheel.py", line 85, in make_in
wb.build(target_dir=directory)
File "/private/var/folders/8x/64jyxcds3rv4v2v4vt787bcc0000gq/T/pip-build-env-uj1ao3bb/overlay/lib/python3.11/site-packages/poetry/core/masonry/builders/wheel.py", line 118, in build
self._build(zip_file)
File "/private/var/folders/8x/64jyxcds3rv4v2v4vt787bcc0000gq/T/pip-build-env-uj1ao3bb/overlay/lib/python3.11/site-packages/poetry/core/masonry/builders/wheel.py", line 179, in _build
self._run_build_command(setup)
File "/private/var/folders/8x/64jyxcds3rv4v2v4vt787bcc0000gq/T/pip-build-env-uj1ao3bb/overlay/lib/python3.11/site-packages/poetry/core/masonry/builders/wheel.py", line 217, in _run_build_command
subprocess.check_call(
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/subprocess.py", line 413, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/Users/Richie/DesmosBezierRenderer/env/bin/python3.11', '/private/var/folders/8x/64jyxcds3rv4v2v4vt787bcc0000gq/T/pip-install-e2vj6x74/pypotrace_45b34c6b58a74021a36a306bbb164906/setup.py', 'build', '-b', '/private/var/folders/8x/64jyxcds3rv4v2v4vt787bcc0000gq/T/pip-install-e2vj6x74/pypotrace_45b34c6b58a74021a36a306bbb164906/build']' returned non-zero exit status 1.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pypotrace
Failed to build pypotrace
ERROR: Could not build wheels for pypotrace, which is required to install pyproject.toml-based projects
I've tried pip3 install wheel, expecting it to work and I've tried sudo apt-get install build-essential python-dev-is-python3 libagg-dev libpotrace-dev pkg-config but it caused another error.
Help would be appreciated, thank you!

How do I properly install Nethack Learning Environment?

Trying to install Nethack Learning Environment (nle) according to their github: https://github.com/facebookresearch/nle
I am running windows 10 x64. I successfully installed all required packages (conda, cmake, cuda, gym, stable-baselines3, even graphviz which someone online said would help) and still return an error when I execute the following:
(nle) C:\Users\g>pip install nle
I get the following error:
Collecting nle
Using cached nle-0.8.1.tar.gz (6.9 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [25 lines of output]
Traceback (most recent call last):
File "C:\Users\g\miniconda3\envs\nle\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 363, in <module>
main()
File "C:\Users\g\miniconda3\envs\nle\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 345, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "C:\Users\g\miniconda3\envs\nle\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 130, in get_requires_for_build_wheel
return hook(config_settings)
File "C:\Users\g\AppData\Local\Temp\pip-build-env-ahobsdbu\overlay\Lib\site-packages\setuptools\build_meta.py", line 338, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
File "C:\Users\g\AppData\Local\Temp\pip-build-env-ahobsdbu\overlay\Lib\site-packages\setuptools\build_meta.py", line 320, in _get_build_requires
self.run_setup()
File "C:\Users\g\AppData\Local\Temp\pip-build-env-ahobsdbu\overlay\Lib\site-packages\setuptools\build_meta.py", line 482, in run_setup
super(_BuildMetaLegacyBackend,
File "C:\Users\g\AppData\Local\Temp\pip-build-env-ahobsdbu\overlay\Lib\site-packages\setuptools\build_meta.py", line 335, in run_setup
exec(code, locals())
File "<string>", line 127, in <module>
File "C:\Users\g\miniconda3\envs\nle\lib\subprocess.py", line 415, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "C:\Users\g\miniconda3\envs\nle\lib\subprocess.py", line 493, in run
with Popen(*popenargs, **kwargs) as process:
File "C:\Users\g\miniconda3\envs\nle\lib\subprocess.py", line 858, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Users\g\miniconda3\envs\nle\lib\subprocess.py", line 1311, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified
[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.
I have even tried installing without the conda environment, via
C:\Users\g>pip install nle
Which returns the following error:
Collecting nle
Using cached nle-0.8.1.tar.gz (6.9 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\g\miniconda3\python.exe' 'C:\Users\g\miniconda3\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py' get_requires_for_build_wheel 'C:\Users\g\AppData\Local\Temp\tmp4okewis9'
cwd: C:\Users\g\AppData\Local\Temp\pip-install-b2kh8tw6\nle_afe88c6035c142eab966b05f6aa62307
Complete output (25 lines):
Traceback (most recent call last):
File "C:\Users\g\miniconda3\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 349, in <module>
main()
File "C:\Users\g\miniconda3\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 331, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "C:\Users\g\miniconda3\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 117, in get_requires_for_build_wheel
return hook(config_settings)
File "C:\Users\g\AppData\Local\Temp\pip-build-env-k07q7h5y\overlay\Lib\site-packages\setuptools\build_meta.py", line 338, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
File "C:\Users\g\AppData\Local\Temp\pip-build-env-k07q7h5y\overlay\Lib\site-packages\setuptools\build_meta.py", line 320, in _get_build_requires
self.run_setup()
File "C:\Users\g\AppData\Local\Temp\pip-build-env-k07q7h5y\overlay\Lib\site-packages\setuptools\build_meta.py", line 482, in run_setup
super(_BuildMetaLegacyBackend,
File "C:\Users\g\AppData\Local\Temp\pip-build-env-k07q7h5y\overlay\Lib\site-packages\setuptools\build_meta.py", line 335, in run_setup
exec(code, locals())
File "<string>", line 127, in <module>
File "C:\Users\g\miniconda3\lib\subprocess.py", line 424, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "C:\Users\g\miniconda3\lib\subprocess.py", line 505, in run
with Popen(*popenargs, **kwargs) as process:
File "C:\Users\g\miniconda3\lib\subprocess.py", line 951, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Users\g\miniconda3\lib\subprocess.py", line 1420, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/e0/18/f6e78119aa5ab5bc5edffa817e3748100f47b96ca8afb3b39659629b906a/nle-0.8.1.tar.gz#sha256=ab20bf3ef72f79891c70fa0d99abdd41ed77784c0f884c5e9116c552708950a5 (from https://pypi.org/simple/nle/) (requires-python:>=3.5). Command errored out with exit status 1: 'C:\Users\g\miniconda3\python.exe' 'C:\Users\g\miniconda3\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py' get_requires_for_build_wheel 'C:\Users\g\AppData\Local\Temp\tmp4okewis9' Check the logs for full command output.
It then appears to retry installing the package and of course gets stuck at the same point, spitting out the same error.
List of other commands I have tried:
pip install --no-cache-dir nle
pip install ez_setup
pip install --upgrade setuptools
Results:
Same error as before, all three times

Error when installing pyinstaller version 4.3. How to fix it?

When I try to install pyinstaller version 4.3. Then I got unwanted erro that I have pasted below. Please help me to get out of this error.
My current pip version is 22.2. And python version is 3.7.
C:\WINDOWS\system32>pip install --no-cache-dir pyinstaller==4.3
Collecting pyinstaller==4.3
Downloading pyinstaller-4.3.tar.gz (3.7 MB)
---------------------------------------- 3.7/3.7 MB 5.9 MB/s eta 0:00:00
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [41 lines of output]
Traceback (most recent call last):
File "c:\users\abhis\appdata\local\programs\python\python37\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 363, in <module>
main()
File "c:\users\abhis\appdata\local\programs\python\python37\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 345, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "c:\users\abhis\appdata\local\programs\python\python37\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 164, in prepare_metadata_for_build_wheel
return hook(metadata_directory, config_settings)
File "C:\Users\abhis\AppData\Local\Temp\pip-build-env-l2t7s_bi\overlay\Lib\site-packages\setuptools\build_meta.py", line 188, in prepare_metadata_for_build_wheel
self.run_setup()
File "C:\Users\abhis\AppData\Local\Temp\pip-build-env-l2t7s_bi\overlay\Lib\site-packages\setuptools\build_meta.py", line 282, in run_setup
self).run_setup(setup_script=setup_script)
File "C:\Users\abhis\AppData\Local\Temp\pip-build-env-l2t7s_bi\overlay\Lib\site-packages\setuptools\build_meta.py", line 174, in run_setup
exec(code, locals())
File "<string>", line 78, in <module>
File "C:\Users\abhis\AppData\Local\Temp\pip-build-env-l2t7s_bi\overlay\Lib\site-packages\setuptools\__init__.py", line 87, in setup
return distutils.core.setup(**attrs)
File "C:\Users\abhis\AppData\Local\Temp\pip-build-env-l2t7s_bi\overlay\Lib\site-packages\setuptools\_distutils\core.py", line 151, in setup
dist.parse_config_files()
File "C:\Users\abhis\AppData\Local\Temp\pip-build-env-l2t7s_bi\overlay\Lib\site-packages\setuptools\dist.py", line 865, in parse_config_files
self, self.command_options, ignore_option_errors=ignore_option_errors
File "C:\Users\abhis\AppData\Local\Temp\pip-build-env-l2t7s_bi\overlay\Lib\site-packages\setuptools\config\setupcfg.py", line 172, in parse_configuration
meta.parse()
File "C:\Users\abhis\AppData\Local\Temp\pip-build-env-l2t7s_bi\overlay\Lib\site-packages\setuptools\config\setupcfg.py", line 451, in parse
section_parser_method(section_options)
File "C:\Users\abhis\AppData\Local\Temp\pip-build-env-l2t7s_bi\overlay\Lib\site-packages\setuptools\config\setupcfg.py", line 422, in parse_section
self[name] = value
File "C:\Users\abhis\AppData\Local\Temp\pip-build-env-l2t7s_bi\overlay\Lib\site-packages\setuptools\config\setupcfg.py", line 243, in __setitem__
value = parser(value)
File "C:\Users\abhis\AppData\Local\Temp\pip-build-env-l2t7s_bi\overlay\Lib\site-packages\setuptools\config\setupcfg.py", line 557, in _parse_version
return expand.version(self._parse_attr(value, self.package_dir, self.root_dir))
File "C:\Users\abhis\AppData\Local\Temp\pip-build-env-l2t7s_bi\overlay\Lib\site-packages\setuptools\config\setupcfg.py", line 377, in _parse_attr
return expand.read_attr(attr_desc, package_dir, root_dir)
File "C:\Users\abhis\AppData\Local\Temp\pip-build-env-l2t7s_bi\overlay\Lib\site-packages\setuptools\config\expand.py", line 192, in read_attr
module = _load_spec(spec, module_name)
File "C:\Users\abhis\AppData\Local\Temp\pip-build-env-l2t7s_bi\overlay\Lib\site-packages\setuptools\config\expand.py", line 212, in _load_spec
spec.loader.exec_module(module) # type: ignore
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "C:\Users\abhis\AppData\Local\Temp\pip-install-oxwzokmn\pyinstaller_8996853206574e95a5a7117dbcd6cb01\PyInstaller.py", line 16, in <module>
from PyInstaller.__main__ import run
ModuleNotFoundError: No module named 'PyInstaller.__main__'; 'PyInstaller' is not a package
[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.
The error is located specifically in the pyproject.toml file. .toml files are used to do configuration in project using a minimalist language. It's mainly used to point the author of the project and its contact, a server direction with its accessible ports, an url to an API to scrap data, etc.
It seems that its an internal bug in the configuration of that file, which is used on the installment of PyInstaller. I recommend checking if that version is unstable. Try installing the previous one.
pip3 install --no-cache-dir pyinstaller==4.2

Cannot pip install atlassian-python-api due to subprocess-exited-with-error

I am trying to install the atlassian-python-api using pip but upon trying to do so, I get the following error: Getting requirements to build wheel ... error: subprocess-exited-with-error.
I am running Python version 3.10.0a2 installed through pyenv-win. I am not exactly sure what could be causing this, but here is my full command output for a better understanding:
(venv) PS > pip install atlassian-python-api
Collecting atlassian-python-api
Using cached atlassian-python-api-3.20.1.tar.gz (131 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [26 lines of output]
Traceback (most recent call last):
File "venv\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 363, in <module>
main()
File "venv\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 345, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "venv\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 130, in get_requires_for_build_wheel
return hook(config_settings)
File "AppData\Local\Temp\pip-build-env-mzcohtxb\overlay\Lib\site-packages\setuptools\build_meta.py", line 177, in get_requires_for_build_wheel
return self._get_build_requires(
File "AppData\Local\Temp\pip-build-env-mzcohtxb\overlay\Lib\site-packages\setuptools\build_meta.py", line 159, in _get_build_requires
self.run_setup()
File "AppData\Local\Temp\pip-build-env-mzcohtxb\overlay\Lib\site-packages\setuptools\build_meta.py", line 281, in run_setup
super(_BuildMetaLegacyBackend,
File "AppData\Local\Temp\pip-build-env-mzcohtxb\overlay\Lib\site-packages\setuptools\build_meta.py", line 174, in run_setup
exec(compile(code, __file__, 'exec'), locals())
File "setup.py", line 11, in <module>
setup(
File "AppData\Local\Temp\pip-build-env-mzcohtxb\overlay\Lib\site-packages\setuptools\__init__.py", line 154, in setup
_install_setup_requires(attrs)
File "AppData\Local\Temp\pip-build-env-mzcohtxb\overlay\Lib\site-packages\setuptools\__init__.py", line 143, in _install_setup_requires
dist = MinimalDistribution(attrs)
File "AppData\Local\Temp\pip-build-env-mzcohtxb\overlay\Lib\site-packages\setuptools\__init__.py", line 135, in __init__
super().__init__(filtered)
File "AppData\Local\Temp\pip-build-env-mzcohtxb\overlay\Lib\site-packages\setuptools\dist.py", line 456, in __init__
for ep in metadata.entry_points(group='distutils.setup_keywords'):
TypeError: entry_points() got an unexpected keyword argument 'group'
[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.

Categories