Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

importerror

How to fix “Attempted relative import in non-package” even with __init__.py

August 21, 2022 by Magenaut

I’m trying to follow PEP 328, with the following directory structure:

Categories Python, Q&A Tags importerror, init, package, python, python-import Leave a comment

Python error “ImportError: No module named”

August 21, 2022 by Magenaut

Python is installed in a local directory.

Categories Python, Q&A Tags importerror, python, python-import Leave a comment

“ImportError: No module named” when trying to run Python script

August 18, 2022 by Magenaut

I’m trying to run a script that launches, amongst other things, a python script. I get a ImportError: No module named …, however, if I launch ipython and import the same module in the same way through the interpreter, the module is accepted.

Categories Python, Q&A Tags importerror, ipython, jupyter, jupyter-notebook, python Leave a comment

DLL load failed when importing PyQt5

August 17, 2022 by Magenaut

I have installed PyQt5 on windows platform and and getting an importError: DLL load failed.

Categories Python, Q&A Tags dllimport, importerror, pyqt5, python, python-3.x Leave a comment

ImportError: No Module Named bs4 (BeautifulSoup)

August 16, 2022 by Magenaut

I’m working in Python and using Flask. When I run my main Python file on my computer, it works perfectly, but when I activate venv and run the Flask Python file in the terminal, it says that my main Python file has “No Module Named bs4.” Any comments or advice is greatly appreciated.

Categories Python, Q&A Tags beautifulsoup, flask, importerror, python Leave a comment

Error “ImportError: DLL load failed: %1 is not a valid Win32 application”

August 16, 2022 by Magenaut

I have this issue where I try to import cv2 on Python and get the following error message.

Categories Python, Q&A Tags importerror, opencv, python Leave a comment

ImportError: No module named ‘bottle’ – PyCharm

August 15, 2022 by Magenaut

I installed bottle on python3.4 with pip install. In terminal, when I do:

Categories Python, Q&A Tags bottle, importerror, pycharm, python Leave a comment

Absolute imports in python not working, relative imports work

August 14, 2022 by Magenaut

I can’t seem to get absolute imports to work in python. Here is my file structure:

Categories Python, Q&A Tags importerror, python, python-2.7, python-import Leave a comment

ImportError: cannot import name main when running pip –version command in windows7 32 bit

August 14, 2022 by Magenaut

I’ve installed the latest python (2.7.9) bundled with pip and setuptools for windows 32-bit. I’ve tried reinstalling pip but the problem persists.

Categories Python, Q&A Tags importerror, pip, python Leave a comment

What does “Symbol not found / Expected in: flat namespace” actually mean?

August 11, 2022 by Magenaut

When I import a module I built, I get this boost-python related error:

Categories Python, Q&A Tags c#, import, importerror, namespaces, python Leave a comment
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress