ImportError
See original GitHub issueI get this error nonstop. After I figured a lot of things, I could use it but I keep on finding this and I’m confused. I know little to no code.
Traceback (most recent call last): File "C:\Users\kreme\Anaconda3\envs\demucs\lib\runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "C:\Users\kreme\Anaconda3\envs\demucs\lib\runpy.py", line 85, in _run_code exec(code, run_globals) File "C:\Users\kreme\Anaconda3\envs\demucs\separate.py", line 17, in <module> from .audio import AudioFile ImportError: attempted relative import with no known parent package
Why could this be? Any solution?
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
How to Fix ImportError: Cannot Import Name in Python - Rollbar
The Python ImportError: cannot import name error occurs when an imported class is not accessible or is in a circular dependency.
Read more >Understanding the Functions of ImportError in Python - eduCBA
In Python, ImportError occurs when the Python program tries to import module which does not exist in the private table. This exception can...
Read more >Built-in Exceptions — Python 3.11.1 documentation
A subclass of ImportError which is raised by import when a module could not be located. It is also raised when None is...
Read more >Python Exception Handling: ImportError and ... - Airbrake Blog
The ImportError is raised when an import statement has trouble successfully importing the specified module. Typically, such a problem is due to ...
Read more >Python error "ImportError: No module named" - Stack Overflow
Python error "ImportError: No module named" · Check that you have read permission to that file from python. · Please be sure to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Lo que se refiere, es que debes estar ubicado en el directorio raiz de la carpeta donde están los ficheros de
demucs
, para ello debes abrir la consola de anaconda, activar el entorno demucs, situarte en la carpeta (con el comandocd
) y ejecutar el comando para separar las pistas.Puedes saber la ruta si abres la carpeta con el explorador de windows, y arriba en la barrita de url tipo navegador, si haces click puedes ver la dirección, pones en la consola de anaconda,
cd esa-direccion
y tendría que ubicarte en la ruta.(base) C:\Users\kreme>cd demucs El sistema no puede encontrar la ruta especificada.
This happens. How do I run commands from the root of the repository? It’s a dumb question.