-->

Welcome to our Coding with python Page!!! hier you find various code with PHP, Python, AI, Cyber, etc ... Electricity, Energy, Nuclear Power

Showing posts with label Error. Show all posts
Showing posts with label Error. Show all posts

Friday, 5 May 2023

Error installing Jupyter & pywinpty (Python)

Error installing Jupyter & pywinpty (Python) resolved

I'm trying to install Jupyter on Python 3.7 and seem to be stumbling over this error again and again;

winpty/cywinpty.c(598): fatal error C1083: Cannot open include file: 'winpty.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\BuildTools\\VC\\Tools\\MSVC\\14.14.26428\\bin\\HostX86\\x86\\cl.exe' failed with exit status 2

I get the same error when attempting to install pywinpty via pip.

I have installed & reinstalled the build tools to no avail and the command window is elevated - any ideas?

UPDATE: Not quite resolved in 3.7 - but it worked fine in 3.6, I've rolled back.


  Missing build time requirements in pyproject.toml for pywinpty>=1.1.0; os_name
 == "nt" from https://files.pythonhosted.org/packages/d3/89/2b9113eabacfe3bbebcd
f95c24772e2267c7b6b9fed6e35bffba2080a4c1/pywinpty-2.0.10.tar.gz#sha256=cdbb5694c
f8c7242c2ecfaca35c545d31fa5d5814c3d67a4e628f803f680ebea (from terminado>=0.8.3->
notebook->jupyter): 'setuptools' and 'wheel'.
  This version of pip does not implement PEP 517 so it cannot build a wheel with
out 'setuptools' and 'wheel'.
  Cache entry deserialization failed, entry ignored


Solution:

Temporarily, until standard way does not work for Python 3.7, you can install pywinpty manually by using the prebuilt wheel from Gohlke's collection and then install jupyter with pip.

To install manually (from cmd or Powershell) use:  pip install drive:\path\to\the\wheel\pywinpty-0.5.4-cp37-cp37m-win_amd64.whl


Wednesday, 3 May 2023

node.exe le point d'entrée de procédure GetHostNameW est introuvable dans la bibliothèque de liens dynamiques ws2_32.dll

Code Erreur:  le point d'entrée de procédure GetHostNameW est introuvable dans la bibliothèque de liens dynamiques WS2_32.dll

Il semble que vous ayez rencontré une erreur lors de l'exécution de Node.js, qui indique qu'une fonction GetHostNameW est introuvable dans la bibliothèque de liens dynamiques ws2_32.dll. Cette erreur peut se produire si le fichier ws2_32.dll est manquant ou endommagé.

Voici quelques étapes que vous pouvez suivre pour résoudre ce problème:

Étape 1: Vérifiez que le fichier ws2_32.dll est présent sur votre ordinateur

  • Ouvrez l'Explorateur de fichiers.
  • Accédez au répertoire "C:\Windows\System32" (ou "C:\Winnt\System32" si vous utilisez une ancienne version de Windows).
  • Recherchez le fichier ws2_32.dll.
  • Si le fichier est présent, passez à l'étape suivante. Sinon, téléchargez et installez le dernier package de mise à jour pour votre version de Windows.

Étape 2: Vérifiez que Node.js est correctement installé

  • Ouvrez une fenêtre de commande (ou un terminal).
  • Tapez "node -v" pour vérifier la version de Node.js installée sur votre ordinateur.
  • Si la commande affiche la version de Node.js, cela signifie que Node.js est correctement installé. Sinon, réinstallez Node.js en suivant les instructions appropriées pour votre système d'exploitation.

Étape 3: Réinstallez les dépendances de Node.js

  • Si les étapes précédentes n'ont pas résolu le problème, essayez de réinstaller les dépendances de Node.js pour votre projet.
  • Ouvrez une fenêtre de commande (ou un terminal) dans le répertoire de votre projet.
  • Tapez "npm install" pour réinstaller toutes les dépendances de votre projet.

J'espère que ces étapes vous aideront à résoudre votre problème. Si le problème persiste, n'hésitez pas à demander de l'aide à la communauté Node.js ou à un développeur expérimenté.

Sunday, 31 May 2020

The code execution cannot proceed because MSVCP140.dll was not found. Reinstalling the program may fix this problem

How to fix the error: "The code execution cannot proceed because MSVCP140.dll was not found. Reinstalling the program may fix this problem"


It is very simple:

Go to google.com and search for MSVCP140.dll and download this file. Save it to C:\Windows\System32

it depends on your system 32 or 64bits.
you can download this file directly from here:


Version
14.26.28804.1
Architecture 64
Taille du fichier 0.56 MB
Langue U.S. English
Company Microsoft Corporation
Description Microsoft® C Runtime Library
Download file here

Version
14.26.28619.0
Architecture 32
Taille du fichier 0.43 MB
Langue U.S. English
Company Microsoft Corporation
Description Microsoft® C Runtime Library
Download file here

Tuesday, 3 September 2019

python -m causes “Error while finding module specification for”

You're supposed to use the m without the .py suffix, i.e.: $ python -m aname
From the man page:
       -m module-name
              Searches sys.path for the named module and runs the corresponding .py file as
              a script.
The m parameter is a module, similar to import or from.

Rank

seo