You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
EDITED
This EDITED post is of no big deal, however, it would be nice to know WHY "cannot import name 'Defaults' "
I shall try to find the "circular import " when I get less dangerous editing Python code HI HI HI
ImportError: cannot import name 'Defaults' from partially initialized module 'NanoVNASaver' (most likely due to a circular import) (/mnt/07b7c3f8-0efb-45ab-8df8-2a468771de1f/ECLIPSE_2023_06
0.49s - warning: Debugger speedups using cython not found. Run '"/usr/bin/python3" "/home/nov25-1/.p2/pool/plugins/org.python.pydev.core_10.2.0.202306251249/pysrc/setup_pydevd_cython.py" build_ext --inplace' to build.
pydev debugger: starting (pid: 22468)
Traceback (most recent call last):
File "/mnt/07b7c3f8-0efb-45ab-8df8-2a468771de1f/ECLIPSE_2023_06/ECLIPSE_WORKSPACE_June28/GIT_OPTION_MIDDLE/nanovna-saver_MIDDLE/src/NanoVNASaver/About.py", line 22, in
version = get_version(root='..', relative_to=file)
File "/home/nov25-1/.local/lib/python3.10/site-packages/setuptools_scm/init.py", line 148, in get_version
_version_missing(config)
File "/home/nov25-1/.local/lib/python3.10/site-packages/setuptools_scm/init.py", line 108, in _version_missing
raise LookupError(
LookupError: setuptools-scm was unable to detect version for /mnt/07b7c3f8-0efb-45ab-8df8-2a468771de1f/ECLIPSE_2023_06/ECLIPSE_WORKSPACE_June28/GIT_OPTION_MIDDLE/nanovna-saver_MIDDLE/src.
Make sure you're either building from a fully intact git repository or PyPI tarballs. Most other sources (such as GitHub's tarballs, a git checkout without the .git folder) don't contain the necessary metadata and will not work.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/nov25-1/.p2/pool/plugins/org.python.pydev.core_10.2.0.202306251249/pysrc/pydevd.py", line 3489, in
main()
File "/home/nov25-1/.p2/pool/plugins/org.python.pydev.core_10.2.0.202306251249/pysrc/pydevd.py", line 3482, in main
globals = debugger.run(setup['file'], None, None, is_module)
File "/home/nov25-1/.p2/pool/plugins/org.python.pydev.core_10.2.0.202306251249/pysrc/pydevd.py", line 2510, in run
return self._exec(is_module, entry_point_fn, module_name, file, globals, locals)
File "/home/nov25-1/.p2/pool/plugins/org.python.pydev.core_10.2.0.202306251249/pysrc/pydevd.py", line 2517, in _exec
globals = pydevd_runpy.run_path(file, globals, 'main')
File "/home/nov25-1/.p2/pool/plugins/org.python.pydev.core_10.2.0.202306251249/pysrc/_pydevd_bundle/pydevd_runpy.py", line 321, in run_path
return _run_module_code(code, init_globals, run_name,
File "/home/nov25-1/.p2/pool/plugins/org.python.pydev.core_10.2.0.202306251249/pysrc/_pydevd_bundle/pydevd_runpy.py", line 135, in _run_module_code
_run_code(code, mod_globals, init_globals,
File "/home/nov25-1/.p2/pool/plugins/org.python.pydev.core_10.2.0.202306251249/pysrc/_pydevd_bundle/pydevd_runpy.py", line 124, in _run_code
exec(code, run_globals)
File "/mnt/07b7c3f8-0efb-45ab-8df8-2a468771de1f/ECLIPSE_2023_06/ECLIPSE_WORKSPACE_June28/GIT_OPTION_MIDDLE/nanovna-saver_MIDDLE/src/NanoVNASaver/About.py", line 24, in
from NanoVNASaver._version import version
File "/mnt/07b7c3f8-0efb-45ab-8df8-2a468771de1f/ECLIPSE_2023_06/ECLIPSE_WORKSPACE_June28/GIT_OPTION_MIDDLE/nanovna-saver_MIDDLE/src/NanoVNASaver/NanoVNASaver.py", line 29, in
from NanoVNASaver import Defaults
ImportError: cannot import name 'Defaults' from partially initialized module 'NanoVNASaver' (most likely due to a circular import) (/mnt/07b7c3f8-0efb-45ab-8df8-2a468771de1f/ECLIPSE_2023_06/ECLIPSE_WORKSPACE_June28/GIT_OPTION_MIDDLE/nanovna-saver_MIDDLE/src/NanoVNASaver/NanoVNASaver.py)
I have successfully cloned nanoVNASaver Python code into Eclipse IDE.
I am ready to play / fix some flaky stuff.
(posted June 20 )
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
EDITED
This EDITED post is of no big deal, however, it would be nice to know WHY "cannot import name 'Defaults' "
I shall try to find the "circular import " when I get less dangerous editing Python code HI HI HI
ImportError: cannot import name 'Defaults' from partially initialized module 'NanoVNASaver' (most likely due to a circular import) (/mnt/07b7c3f8-0efb-45ab-8df8-2a468771de1f/ECLIPSE_2023_06
0.49s - warning: Debugger speedups using cython not found. Run '"/usr/bin/python3" "/home/nov25-1/.p2/pool/plugins/org.python.pydev.core_10.2.0.202306251249/pysrc/setup_pydevd_cython.py" build_ext --inplace' to build.
pydev debugger: starting (pid: 22468)
Traceback (most recent call last):
File "/mnt/07b7c3f8-0efb-45ab-8df8-2a468771de1f/ECLIPSE_2023_06/ECLIPSE_WORKSPACE_June28/GIT_OPTION_MIDDLE/nanovna-saver_MIDDLE/src/NanoVNASaver/About.py", line 22, in
version = get_version(root='..', relative_to=file)
File "/home/nov25-1/.local/lib/python3.10/site-packages/setuptools_scm/init.py", line 148, in get_version
_version_missing(config)
File "/home/nov25-1/.local/lib/python3.10/site-packages/setuptools_scm/init.py", line 108, in _version_missing
raise LookupError(
LookupError: setuptools-scm was unable to detect version for /mnt/07b7c3f8-0efb-45ab-8df8-2a468771de1f/ECLIPSE_2023_06/ECLIPSE_WORKSPACE_June28/GIT_OPTION_MIDDLE/nanovna-saver_MIDDLE/src.
Make sure you're either building from a fully intact git repository or PyPI tarballs. Most other sources (such as GitHub's tarballs, a git checkout without the .git folder) don't contain the necessary metadata and will not work.
For example, if you're using pip, instead of https://github.com/user/proj/archive/master.zip use git+https://github.com/user/proj.git#egg=proj
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/nov25-1/.p2/pool/plugins/org.python.pydev.core_10.2.0.202306251249/pysrc/pydevd.py", line 3489, in
main()
File "/home/nov25-1/.p2/pool/plugins/org.python.pydev.core_10.2.0.202306251249/pysrc/pydevd.py", line 3482, in main
globals = debugger.run(setup['file'], None, None, is_module)
File "/home/nov25-1/.p2/pool/plugins/org.python.pydev.core_10.2.0.202306251249/pysrc/pydevd.py", line 2510, in run
return self._exec(is_module, entry_point_fn, module_name, file, globals, locals)
File "/home/nov25-1/.p2/pool/plugins/org.python.pydev.core_10.2.0.202306251249/pysrc/pydevd.py", line 2517, in _exec
globals = pydevd_runpy.run_path(file, globals, 'main')
File "/home/nov25-1/.p2/pool/plugins/org.python.pydev.core_10.2.0.202306251249/pysrc/_pydevd_bundle/pydevd_runpy.py", line 321, in run_path
return _run_module_code(code, init_globals, run_name,
File "/home/nov25-1/.p2/pool/plugins/org.python.pydev.core_10.2.0.202306251249/pysrc/_pydevd_bundle/pydevd_runpy.py", line 135, in _run_module_code
_run_code(code, mod_globals, init_globals,
File "/home/nov25-1/.p2/pool/plugins/org.python.pydev.core_10.2.0.202306251249/pysrc/_pydevd_bundle/pydevd_runpy.py", line 124, in _run_code
exec(code, run_globals)
File "/mnt/07b7c3f8-0efb-45ab-8df8-2a468771de1f/ECLIPSE_2023_06/ECLIPSE_WORKSPACE_June28/GIT_OPTION_MIDDLE/nanovna-saver_MIDDLE/src/NanoVNASaver/About.py", line 24, in
from NanoVNASaver._version import version
File "/mnt/07b7c3f8-0efb-45ab-8df8-2a468771de1f/ECLIPSE_2023_06/ECLIPSE_WORKSPACE_June28/GIT_OPTION_MIDDLE/nanovna-saver_MIDDLE/src/NanoVNASaver/NanoVNASaver.py", line 29, in
from NanoVNASaver import Defaults
ImportError: cannot import name 'Defaults' from partially initialized module 'NanoVNASaver' (most likely due to a circular import) (/mnt/07b7c3f8-0efb-45ab-8df8-2a468771de1f/ECLIPSE_2023_06/ECLIPSE_WORKSPACE_June28/GIT_OPTION_MIDDLE/nanovna-saver_MIDDLE/src/NanoVNASaver/NanoVNASaver.py)
I have successfully cloned nanoVNASaver Python code into Eclipse IDE.
I am ready to play / fix some flaky stuff.
(posted June 20 )
Beta Was this translation helpful? Give feedback.
All reactions