Django installation failed - python

My pc recently started giving error in installing Django.... Look at the error message, what could be the cause please?
I tried installing Django for my project, and it just throw an unexpected error message.
I have the right Venv activation code so I expected it to work.

This could be due to a weak internet connection, i.e it takes time to download, or slow internet connection. Check your internet speed and try again. If it still persists, on your virtual env try to install it manually, you can use this video as a guide here.

Related

Converting Streamlit App to exe file with nativefier certificate issues

I have a streamlit app up and running on my PC and need to convert it to an exe file to share amongst my team. I'm currently following the tutorial of how to do this from this forum: https://discuss.streamlit.io/t/streamlit-deployment-as-an-executable-file-exe-for-windows-macos-and-android/6812
It seems to work fine for everyone there, even when the app is just running on the localhost. However if I input the command
nativefier --name AppName.exe http://localhost:8501/ --platform windows --ignore-certificate --insecure
I get the following error: GotError [RequestError]: unable to get local issuer certificate at ClientRequest. I imagine that this is some sort of security issue with my work PC and I'm just trying to hunt down any workarounds that may be out there. As you can see I've tried to ignore the certificate and use the insecure option, however I still continue to get this error. Any ideas? Thanks so much for any advice.

Maximum retries exhausted. Could not install VS Code server on [azure compute instance name]: Cannot communicate with the Jupyter endpoint

I am trying to edit my jupyter notebook which is in Azure ML Workspace. I use the 'edit-in vscode' option, it opens the vs-code or when I try to connect to compute instance directly from vs code, then I am getting the following error:
[Info - 2021-11-08 07:06:06.885] Using commit id "b3318bc0524af3d74034b8bb8a64df0ccf35549a" and quality "stable" for server
[Error - 2021-11-08 07:06:06.971] Invalid response: 405 Method Not Allowed
[Error - 2021-11-08 07:06:06.971] Cannot communicate with the Jupyter endpoint.
[Error - 2021-11-08 07:06:07.981] Maximum retries exhausted. Could not install VS Code server on saksham-dubey: Cannot communicate with the Jupyter endpoint.
Earlier it was working fine and I had no issues with vs-code, I was able to edit/run files directly but without changing anything, it started giving me problem.
So far, I have tried uninstalling/removing vscode completely, reinstall it, deleting Azure compute instance and creating a fresh instance but nothing worked, I am still facing the issue.
What is the problem here and how to resolve this?
ps- saksham-dubey is my compute instance name, which is a Azure Compute Instance (Nvidia Tesla K80 GPU)
Been dealing with the same issue since Friday, tried pretty much anything to no avail.
Luckily I found a workaround by enabling SSH on a new GPU instance & connecting to the instance through Remote SSH from VS Code.
Will keep posted if I found a solution for the UI access.
I found the fix to the problem.
The problem was caused due to some backend error in the 'Azure Machine Learning' vs-code extension.
The issue was caused in the version: 0.6.26
The fix was implemented on the version: 0.6.27
Updating your vs-code extension will make it work.
For any further information you can refer: Github Link to vscode-tools-for-ai
Also you can open an issue on same Github page, if anything like this happens again.

Running an opencv based python script on a remote server with ssh forwarding from my macbook gives me an error

I am trying to run a python script on a remote server, which includes displaying images. The image does not get displayed and I get an error Gtk-WARNING **: cannot open display:
I have checked posts where they suggest editing the flags in sshd_config and also setting the DISPLAY variable manually. But, none of that seems to be working for me.
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost no
XAuthLocation /usr/X11/bin/xauth
Running xclock or xeyes also gives me errors.
Edit: I used ssh -X and ssh -Y to ssh into the server, neither worked
Solution: Restart after installing XQuartz
After looking through multiple posts and trying to make it work, I realised that after installing XQuartz, the user is required to restart the machine. It allows to set the correct environment variables (like DISPLAY). It works for me now after having restarted.
Alternative
However, in case you face a similar problem, not stemming due to the restart issue, I found an alternate way as suggested in the following link:
https://uisapp2.iu.edu/confluence-prd/pages/viewpage.action?pageId=280461906

Why Does Jupyter Notebook Crashes?

I am using Python 2.7 on Windows 10 (64) computer. Whenever I work with Jupyter notebook, it dies for no reason. Sometimes it dies while I am using it, sometimes when it is idle. I receive below error messages.
Error message screenshot
When I check the command line, the error says:
Assertion failed: Connection reset by peer (bundled\zeromq\src\signaler.cpp:181)
I'd appreciate any help on how to fix this problem. Thanks

Arelle Xbrl validation - unable to start web service - socket error 10013

I'm using the Arelle project to implement validation of my Xbrl files.
http://arelle.org/documentation/api-web-services/
When i try to start the webserver that i can call from my code i receive following error.
Been looking up how to fix this and it all points to disabling my antivirus. Got it disabled and i still get this error. Arelle is a Python project
This should start a webservice that i can reach on www.localhost:8082/rest/xbrl
Appearently this was an issue with the previous release of the project.
I installed the latest version 2013-07-25 and no longer had this socket error

Categories