Skip to content

cisco spark used instead of newer #138

Description

@yedownnavi

going through https://developer.cisco.com/learning/labs/intro-netconf/walking-through-automating-your-network-with-netconf/

it throws error

(venv) ivanher@IVANHER-M-NW04 intro-mdp % pip install -r requirements.txt
Collecting ciscosparkapi==0.9.2 (from -r requirements.txt (line 1))
Downloading ciscosparkapi-0.9.2.tar.gz (45 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
╰─> [33 lines of output]
/private/var/folders/b5/1m25fkvx79d4mtmt4h7dsfmw0000gn/T/pip-install-vgoaugy6/ciscosparkapi_184e64dcebbf49b4a31ed3e7e2f55f1c/versioneer.py:564: SyntaxWarning: invalid escape sequence '\s'
mo = re.search(r'=\s*"(.*)"', line)
Traceback (most recent call last):
File "/Users/ivanher/Desktop/programming/certifications/auto/venv/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in
main()
~~~~^^
File "/Users/ivanher/Desktop/programming/certifications/auto/venv/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main
json_out["return_val"] = hook(**hook_input["kwargs"])
~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/ivanher/Desktop/programming/certifications/auto/venv/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 143, in get_requires_for_build_wheel
return hook(config_settings)
File "/private/var/folders/b5/1m25fkvx79d4mtmt4h7dsfmw0000gn/T/pip-build-env-5_sz0i7o/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 333, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/private/var/folders/b5/1m25fkvx79d4mtmt4h7dsfmw0000gn/T/pip-build-env-5_sz0i7o/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 301, in _get_build_requires
self.run_setup()
~~~~~~~~~~~~~~^^
File "/private/var/folders/b5/1m25fkvx79d4mtmt4h7dsfmw0000gn/T/pip-build-env-5_sz0i7o/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 520, in run_setup
super().run_setup(setup_script=setup_script)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/private/var/folders/b5/1m25fkvx79d4mtmt4h7dsfmw0000gn/T/pip-build-env-5_sz0i7o/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 317, in run_setup
exec(code, locals())
~~~~^^^^^^^^^^^^^^^^
File "", line 28, in
File "/private/var/folders/b5/1m25fkvx79d4mtmt4h7dsfmw0000gn/T/pip-install-vgoaugy6/ciscosparkapi_184e64dcebbf49b4a31ed3e7e2f55f1c/versioneer.py", line 1480, in get_version
return get_versions()["version"]
~~~~~~~~~~~~^^
File "/private/var/folders/b5/1m25fkvx79d4mtmt4h7dsfmw0000gn/T/pip-install-vgoaugy6/ciscosparkapi_184e64dcebbf49b4a31ed3e7e2f55f1c/versioneer.py", line 1412, in get_versions
cfg = get_config_from_root(root)
File "/private/var/folders/b5/1m25fkvx79d4mtmt4h7dsfmw0000gn/T/pip-install-vgoaugy6/ciscosparkapi_184e64dcebbf49b4a31ed3e7e2f55f1c/versioneer.py", line 342, in get_config_from_root
parser = configparser.SafeConfigParser()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'?
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.

[notice] A new release of pip is available: 25.1.1 -> 26.1.2
[notice] To update, run: pip install --upgrade 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions