ModuleNotFoundError : No module named 'django' when i tried to start - reactjs

I tried to set up the Apollo and React environment.
This is material that I used https://github.com/mbrochh/react-apollo-graphql-demo
when the error occurred?
whe i did
./manage.py runserver 0.0.0.0:8000
Traceback (most recent call last):
File "./manage.py", line 8, in <module>
from django.core.management import execute_from_command_line
ModuleNotFoundError: No module named 'django'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "./manage.py", line 14, in <module>
import django
ModuleNotFoundError: No module named 'django'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "./manage.py", line 16, in <module>
raise ImportError(
ImportError: Couldn't import Django. Are you sure it's installed and available on your PYTHONPATH environment variable? Did you forget to activate a virtual environment?

Related

How to import openpyxl in snow park?

I see that opepyxl is supported in snow flake snowpark python https://repo.anaconda.com/pkgs/snowflake/ but every time I do import inside snowpark, I see the the below error:
Python Interpreter Error: Traceback (most recent call last): File "_udf_code.py", line 4, in ModuleNotFoundError: No module named 'openpyxl' in function MYPROC with handler run
Not sure how to import. Can someone please share how I can use openpyxl in snowpark?
import openpyxl in snowpark and facing the below error:
Python Interpreter Error: Traceback (most recent call last): File "_udf_code.py", line 4, in ModuleNotFoundError: No module named 'openpyxl' in function MYPROC with handler run

from _curses import * ModuleNotFoundError: No module named '_curses

This is the error I am getting:
Traceback (most recent call last):
File "c:\Users\brook\python_practice\snake.py", line 1, in
import curses
File "C:\Users\brook\AppData\Local\Programs\Python\Python310\lib\curses_init_.py", line 13, in
from _curses import *
ModuleNotFoundError: No module named '_curses'
I tried pip install windows-curses and a few other things I found on stack overflow, nothing has worked.
I'm using VSCode.

Import qd.cae.dyna failed

I have a problem with the library qd.cae.dyna
I have a script which calls this library and when I run it on my local session using pycharm there is no problems, it runs well.
But when I run it from a .bat file (and I have to), I get this error :
Traceback (most recent call last):
File "\\bdom.ad.corp\...\qd\cae\dyna.py", line 4, in <module>
from .dyna_cpp import *
ImportError: DLL load failed: Le module spécifié est introuvable.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "DataControl.py", line 1, in <module>
from qd.cae.dyna import *
File "\\bdom.ad.corp\...\qd\cae\dyna.py", line 7, in <module>
"Could not import C++ Submodule dyna_cpp with error message: %s." % str(err))
ImportError: Could not import C++ Submodule dyna_cpp with error message:
I have looked up and some people fix the issue by installing some missing DLLs LIBIOMP5MD.DLL and LIBMMD.DLL but I checked and those are installed on my computer.
Do you have any advices to run qd.cae.dyna from a .bat file ? It would be greatly appreciated

Installing ZPsycopgDA on Zope

So, I'm trying to install ZPsycopgDA on Zope, but it keeps giving me the following error on the log file:
2022-02-13T02:11:01 ERROR Application Couldn't install ZPsycopgDA
Traceback (most recent call last):
File "/home/rubens/zope/lib64/python2.7/site-packages/OFS/Application.py", line 660, in install_product
global_dict, global_dict, silly)
File "/home/rubens/zope/instance/Products/ZPsycopgDA/__init__.py", line 21, in <module>
import DA
File "/home/rubens/zope/instance/Products/ZPsycopgDA/DA.py", line 21, in <module>
import db
File "/home/rubens/zope/instance/Products/ZPsycopgDA/db.py", line 18, in <module>
from Shared.DC.ZRDB.TM import TM
ImportError: No module named ZRDB.TM
I added the Zope lib directory to PYTHONPATH (/home/rubens/zope/lib64) as instructed, but still gives me this error. Any clues? I'm using Zope2==2.13.30.
Found the solution. Had to install Products.ZSQLMethods (pip install Products.ZSQLMethods==2.13.4). I've installed this version because of Zope2==2.13.30 compatibility.

Cant' launch pgadmin4 on ubuntu hirsute

I'm trying to launch pgdamin4 on my ubuntu device, and I just get this error again and again despite every solution I tried.
I followed this to install my pgdamin4 : https://www.pgadmin.org/download/pgadmin-4-apt/
Do you have any solutions?
Traceback (most recent call last):
File "/usr/pgadmin4/web/pgAdmin4.py", line 39, in <module>
import config
File "/usr/pgadmin4/web/config.py", line 25, in <module>
from pgadmin.utils import env, IS_WIN, fs_short_path
File "/usr/pgadmin4/web/pgadmin/__init__.py", line 23, in <module>
from flask import Flask, abort, request, current_app, session, url_for
ModuleNotFoundError: No module named 'flask'

Resources