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 in tox - checks.sh file #27

Open
Tracked by #20
aerosadegh opened this issue Jul 7, 2023 · 0 comments
Open
Tracked by #20

Error in tox - checks.sh file #27

aerosadegh opened this issue Jul 7, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@aerosadegh
Copy link

I got this error when try to run checks.sh

sadegh@DESKTOP-PLCCHUL:~/fastcrawler$ sh checks.sh 
format: install_deps> python -I -m pip install -r requirements-dev.txt
.pkg: install_requires> python -I -m pip install 'flit_core<3,>=2' setuptools wheel
.pkg: _optional_hooks> python /home/sadegh/.local/lib/python3.11/site-packages/pyproject_api/_backend.py True setuptools.build_meta
.pkg: get_requires_for_build_sdist> python /home/sadegh/.local/lib/python3.11/site-packages/pyproject_api/_backend.py True setuptools.build_meta
format: packaging backend failed (code=error: error in 'egg_base' option: 'src' does not exist or is not a directory), with SystemExit: error: error in 'egg_base' option: 'src' does not exist or is not a directory
Traceback (most recent call last):
  File "/home/sadegh/fastcrawler/.tox/.pkg/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
    dist.run_commands()
  File "/home/sadegh/fastcrawler/.tox/.pkg/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
    self.run_command(cmd)
  File "/home/sadegh/fastcrawler/.tox/.pkg/lib/python3.11/site-packages/setuptools/dist.py", line 1244, in run_command
    super().run_command(command)
  File "/home/sadegh/fastcrawler/.tox/.pkg/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
    cmd_obj.ensure_finalized()
  File "/home/sadegh/fastcrawler/.tox/.pkg/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 111, in ensure_finalized
    self.finalize_options()
  File "/home/sadegh/fastcrawler/.tox/.pkg/lib/python3.11/site-packages/setuptools/command/egg_info.py", line 235, in finalize_options
    self.ensure_dirname('egg_base')
  File "/home/sadegh/fastcrawler/.tox/.pkg/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 262, in ensure_dirname
    self._ensure_tested_string(
  File "/home/sadegh/fastcrawler/.tox/.pkg/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 251, in _ensure_tested_string
    raise DistutilsOptionError(
distutils.errors.DistutilsOptionError: error in 'egg_base' option: 'src' does not exist or is not a directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/sadegh/.local/lib/python3.11/site-packages/pyproject_api/_backend.py", line 90, in run
    outcome = backend_proxy(parsed_message["cmd"], **parsed_message["kwargs"])
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/sadegh/.local/lib/python3.11/site-packages/pyproject_api/_backend.py", line 32, in __call__
    return getattr(on_object, name)(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/sadegh/fastcrawler/.tox/.pkg/lib/python3.11/site-packages/setuptools/build_meta.py", line 344, in get_requires_for_build_sdist
    return self._get_build_requires(config_settings, requirements=[])
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/sadegh/fastcrawler/.tox/.pkg/lib/python3.11/site-packages/setuptools/build_meta.py", line 323, in _get_build_requires
    self.run_setup()
  File "/home/sadegh/fastcrawler/.tox/.pkg/lib/python3.11/site-packages/setuptools/build_meta.py", line 338, in run_setup
    exec(code, locals())
  File "<string>", line 3, in <module>
  File "/home/sadegh/fastcrawler/.tox/.pkg/lib/python3.11/site-packages/setuptools/__init__.py", line 107, in setup
    return distutils.core.setup(**attrs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/sadegh/fastcrawler/.tox/.pkg/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 185, in setup
    return run_commands(dist)
           ^^^^^^^^^^^^^^^^^^
  File "/home/sadegh/fastcrawler/.tox/.pkg/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 215, in run_commands
    raise SystemExit("error: " + str(msg))
SystemExit: error: error in 'egg_base' option: 'src' does not exist or is not a directory
Backend: run command get_requires_for_build_sdist with args {'config_settings': None}
running egg_info
Backend: Wrote response {'code': "error: error in 'egg_base' option: 'src' does not exist or is not a directory", 'exc_type': 'SystemExit', 'exc_msg': "error: error in 'egg_base' option: 'src' does not exist or is not a directory"} to /tmp/pep517_get_requires_for_build_sdist-mtc3yzi7.json
.pkg: _exit> python /home/sadegh/.local/lib/python3.11/site-packages/pyproject_api/_backend.py True setuptools.build_meta
  format: FAIL code error: error in 'egg_base' option: 'src' does not exist or is not a directory (12.24 seconds)
  evaluation failed :( (12.52 seconds)
error: error in 'egg_base' option: 'src' does not exist or is not a directory
pytest: install_deps> python -I -m pip install -r requirements-dev.txt
.pkg: _optional_hooks> python /home/sadegh/.local/lib/python3.11/site-packages/pyproject_api/_backend.py True setuptools.build_meta
.pkg: get_requires_for_build_sdist> python /home/sadegh/.local/lib/python3.11/site-packages/pyproject_api/_backend.py True setuptools.build_meta
pytest: packaging backend failed (code=error: error in 'egg_base' option: 'src' does not exist or is not a directory), with SystemExit: error: error in 'egg_base' option: 'src' does not exist or is not a directory
Traceback (most recent call last):
  File "/home/sadegh/fastcrawler/.tox/.pkg/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
    dist.run_commands()
  File "/home/sadegh/fastcrawler/.tox/.pkg/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
    self.run_command(cmd)
  File "/home/sadegh/fastcrawler/.tox/.pkg/lib/python3.11/site-packages/setuptools/dist.py", line 1244, in run_command
    super().run_command(command)
  File "/home/sadegh/fastcrawler/.tox/.pkg/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
    cmd_obj.ensure_finalized()
  File "/home/sadegh/fastcrawler/.tox/.pkg/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 111, in ensure_finalized
    self.finalize_options()
  File "/home/sadegh/fastcrawler/.tox/.pkg/lib/python3.11/site-packages/setuptools/command/egg_info.py", line 235, in finalize_options
    self.ensure_dirname('egg_base')
  File "/home/sadegh/fastcrawler/.tox/.pkg/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 262, in ensure_dirname
    self._ensure_tested_string(
  File "/home/sadegh/fastcrawler/.tox/.pkg/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 251, in _ensure_tested_string
    raise DistutilsOptionError(
distutils.errors.DistutilsOptionError: error in 'egg_base' option: 'src' does not exist or is not a directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/sadegh/.local/lib/python3.11/site-packages/pyproject_api/_backend.py", line 90, in run
    outcome = backend_proxy(parsed_message["cmd"], **parsed_message["kwargs"])
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/sadegh/.local/lib/python3.11/site-packages/pyproject_api/_backend.py", line 32, in __call__
    return getattr(on_object, name)(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/sadegh/fastcrawler/.tox/.pkg/lib/python3.11/site-packages/setuptools/build_meta.py", line 344, in get_requires_for_build_sdist
    return self._get_build_requires(config_settings, requirements=[])
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/sadegh/fastcrawler/.tox/.pkg/lib/python3.11/site-packages/setuptools/build_meta.py", line 323, in _get_build_requires
    self.run_setup()
  File "/home/sadegh/fastcrawler/.tox/.pkg/lib/python3.11/site-packages/setuptools/build_meta.py", line 338, in run_setup
    exec(code, locals())
  File "<string>", line 3, in <module>
  File "/home/sadegh/fastcrawler/.tox/.pkg/lib/python3.11/site-packages/setuptools/__init__.py", line 107, in setup
    return distutils.core.setup(**attrs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/sadegh/fastcrawler/.tox/.pkg/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 185, in setup
    return run_commands(dist)
           ^^^^^^^^^^^^^^^^^^
  File "/home/sadegh/fastcrawler/.tox/.pkg/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 215, in run_commands
    raise SystemExit("error: " + str(msg))
SystemExit: error: error in 'egg_base' option: 'src' does not exist or is not a directory
Backend: run command get_requires_for_build_sdist with args {'config_settings': None}
running egg_info
Backend: Wrote response {'code': "error: error in 'egg_base' option: 'src' does not exist or is not a directory", 'exc_type': 'SystemExit', 'exc_msg': "error: error in 'egg_base' option: 'src' does not exist or is not a directory"} to /tmp/pep517_get_requires_for_build_sdist-u9m6j7yz.json
.pkg: _exit> python /home/sadegh/.local/lib/python3.11/site-packages/pyproject_api/_backend.py True setuptools.build_meta
  pytest: FAIL code error: error in 'egg_base' option: 'src' does not exist or is not a directory (4.56 seconds)
  evaluation failed :( (4.61 seconds)
error: error in 'egg_base' option: 'src' does not exist or is not a directory
typecheck: install_deps> python -I -m pip install -r requirements-dev.txt
.pkg: _optional_hooks> python /home/sadegh/.local/lib/python3.11/site-packages/pyproject_api/_backend.py True setuptools.build_meta
.pkg: get_requires_for_build_sdist> python /home/sadegh/.local/lib/python3.11/site-packages/pyproject_api/_backend.py True setuptools.build_meta
typecheck: packaging backend failed (code=error: error in 'egg_base' option: 'src' does not exist or is not a directory), with SystemExit: error: error in 'egg_base' option: 'src' does not exist or is not a directory
Traceback (most recent call last):
  File "/home/sadegh/fastcrawler/.tox/.pkg/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
    dist.run_commands()
  File "/home/sadegh/fastcrawler/.tox/.pkg/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
    self.run_command(cmd)
  File "/home/sadegh/fastcrawler/.tox/.pkg/lib/python3.11/site-packages/setuptools/dist.py", line 1244, in run_command
    super().run_command(command)
  File "/home/sadegh/fastcrawler/.tox/.pkg/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
    cmd_obj.ensure_finalized()
  File "/home/sadegh/fastcrawler/.tox/.pkg/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 111, in ensure_finalized
    self.finalize_options()
  File "/home/sadegh/fastcrawler/.tox/.pkg/lib/python3.11/site-packages/setuptools/command/egg_info.py", line 235, in finalize_options
    self.ensure_dirname('egg_base')
  File "/home/sadegh/fastcrawler/.tox/.pkg/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 262, in ensure_dirname
    self._ensure_tested_string(
  File "/home/sadegh/fastcrawler/.tox/.pkg/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 251, in _ensure_tested_string
    raise DistutilsOptionError(
distutils.errors.DistutilsOptionError: error in 'egg_base' option: 'src' does not exist or is not a directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/sadegh/.local/lib/python3.11/site-packages/pyproject_api/_backend.py", line 90, in run
    outcome = backend_proxy(parsed_message["cmd"], **parsed_message["kwargs"])
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/sadegh/.local/lib/python3.11/site-packages/pyproject_api/_backend.py", line 32, in __call__
    return getattr(on_object, name)(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/sadegh/fastcrawler/.tox/.pkg/lib/python3.11/site-packages/setuptools/build_meta.py", line 344, in get_requires_for_build_sdist
    return self._get_build_requires(config_settings, requirements=[])
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/sadegh/fastcrawler/.tox/.pkg/lib/python3.11/site-packages/setuptools/build_meta.py", line 323, in _get_build_requires
    self.run_setup()
  File "/home/sadegh/fastcrawler/.tox/.pkg/lib/python3.11/site-packages/setuptools/build_meta.py", line 338, in run_setup
    exec(code, locals())
  File "<string>", line 3, in <module>
  File "/home/sadegh/fastcrawler/.tox/.pkg/lib/python3.11/site-packages/setuptools/__init__.py", line 107, in setup
    return distutils.core.setup(**attrs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/sadegh/fastcrawler/.tox/.pkg/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 185, in setup
    return run_commands(dist)
           ^^^^^^^^^^^^^^^^^^
  File "/home/sadegh/fastcrawler/.tox/.pkg/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 215, in run_commands
    raise SystemExit("error: " + str(msg))
SystemExit: error: error in 'egg_base' option: 'src' does not exist or is not a directory
Backend: run command get_requires_for_build_sdist with args {'config_settings': None}
running egg_info
Backend: Wrote response {'code': "error: error in 'egg_base' option: 'src' does not exist or is not a directory", 'exc_type': 'SystemExit', 'exc_msg': "error: error in 'egg_base' option: 'src' does not exist or is not a directory"} to /tmp/pep517_get_requires_for_build_sdist-nogh_rru.json
.pkg: _exit> python /home/sadegh/.local/lib/python3.11/site-packages/pyproject_api/_backend.py True setuptools.build_meta
  typecheck: FAIL code error: error in 'egg_base' option: 'src' does not exist or is not a directory (4.66 seconds)
  evaluation failed :( (4.76 seconds)
error: error in 'egg_base' option: 'src' does not exist or is not a directory
lint: install_deps> python -I -m pip install -r requirements-dev.txt
.pkg: _optional_hooks> python /home/sadegh/.local/lib/python3.11/site-packages/pyproject_api/_backend.py True setuptools.build_meta
.pkg: get_requires_for_build_sdist> python /home/sadegh/.local/lib/python3.11/site-packages/pyproject_api/_backend.py True setuptools.build_meta
lint: packaging backend failed (code=error: error in 'egg_base' option: 'src' does not exist or is not a directory), with SystemExit: error: error in 'egg_base' option: 'src' does not exist or is not a directory
Traceback (most recent call last):
  File "/home/sadegh/fastcrawler/.tox/.pkg/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
    dist.run_commands()
  File "/home/sadegh/fastcrawler/.tox/.pkg/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
    self.run_command(cmd)
  File "/home/sadegh/fastcrawler/.tox/.pkg/lib/python3.11/site-packages/setuptools/dist.py", line 1244, in run_command
    super().run_command(command)
  File "/home/sadegh/fastcrawler/.tox/.pkg/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
    cmd_obj.ensure_finalized()
  File "/home/sadegh/fastcrawler/.tox/.pkg/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 111, in ensure_finalized
    self.finalize_options()
  File "/home/sadegh/fastcrawler/.tox/.pkg/lib/python3.11/site-packages/setuptools/command/egg_info.py", line 235, in finalize_options
    self.ensure_dirname('egg_base')
  File "/home/sadegh/fastcrawler/.tox/.pkg/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 262, in ensure_dirname
    self._ensure_tested_string(
  File "/home/sadegh/fastcrawler/.tox/.pkg/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 251, in _ensure_tested_string
    raise DistutilsOptionError(
distutils.errors.DistutilsOptionError: error in 'egg_base' option: 'src' does not exist or is not a directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/sadegh/.local/lib/python3.11/site-packages/pyproject_api/_backend.py", line 90, in run
    outcome = backend_proxy(parsed_message["cmd"], **parsed_message["kwargs"])
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/sadegh/.local/lib/python3.11/site-packages/pyproject_api/_backend.py", line 32, in __call__
    return getattr(on_object, name)(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/sadegh/fastcrawler/.tox/.pkg/lib/python3.11/site-packages/setuptools/build_meta.py", line 344, in get_requires_for_build_sdist
    return self._get_build_requires(config_settings, requirements=[])
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/sadegh/fastcrawler/.tox/.pkg/lib/python3.11/site-packages/setuptools/build_meta.py", line 323, in _get_build_requires
    self.run_setup()
  File "/home/sadegh/fastcrawler/.tox/.pkg/lib/python3.11/site-packages/setuptools/build_meta.py", line 338, in run_setup
    exec(code, locals())
  File "<string>", line 3, in <module>
  File "/home/sadegh/fastcrawler/.tox/.pkg/lib/python3.11/site-packages/setuptools/__init__.py", line 107, in setup
    return distutils.core.setup(**attrs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/sadegh/fastcrawler/.tox/.pkg/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 185, in setup
    return run_commands(dist)
           ^^^^^^^^^^^^^^^^^^
  File "/home/sadegh/fastcrawler/.tox/.pkg/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 215, in run_commands
    raise SystemExit("error: " + str(msg))
SystemExit: error: error in 'egg_base' option: 'src' does not exist or is not a directory
Backend: run command get_requires_for_build_sdist with args {'config_settings': None}
running egg_info
Backend: Wrote response {'code': "error: error in 'egg_base' option: 'src' does not exist or is not a directory", 'exc_type': 'SystemExit', 'exc_msg': "error: error in 'egg_base' option: 'src' does not exist or is not a directory"} to /tmp/pep517_get_requires_for_build_sdist-ie3ke4m1.json
.pkg: _exit> python /home/sadegh/.local/lib/python3.11/site-packages/pyproject_api/_backend.py True setuptools.build_meta
  lint: FAIL code error: error in 'egg_base' option: 'src' does not exist or is not a directory (4.35 seconds)
  evaluation failed :( (4.40 seconds)
error: error in 'egg_base' option: 'src' does not exist or is not a directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants