Python Forum
Python development envirornment
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python development envirornment
#1
Hi all.
I am using VS2017 as Python development environment. But I don't have here any intellisense and my work goes slow due that.

For instance, I have the following simple code:

import sys
from matplotlib import pyplot
import cv2

im = cv2.imread("E:\\Face.jpg")

def plot_img(img):
    rgb = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
    pyplot.imshow(rgb)

if im.any():
    plot_img(im)

if im.any():
    classifier = cv2.CascadeClassifier()
    classifier.load("E:\\haarcascade_eye.xml")
    classifier.detectMultiScale(im)
and I got error on

classifier.load("E:\\haarcascade_eye.xml")

OpenCV(4.4.0) C:\Users\appveyor\AppData\Local\Temp\1\pip-req-build-d54til6p\opencv\modules\core\src\persistence.cpp:717: error: (-49:Unknown error code -49) Input file is invalid in function 'cv::FileStorage::Impl::open' 
Stack trace:
 >  File "D:\Tempx\pythonapplication1\pythonapplication1.py", line 18, in <module>
 >    classifier.load("E:\\haarcascade_eye.xml")
Backend TkAgg is interactive backend. Turning interactive mode on.
Loaded '__main__'
The program 'python.exe' has exited with code -1 (0xffffffff).
but from this editor I don't know if this load method should return something or not. Is there any method to have intellisense on Python ?

[Image: Untitled.png]
Reply
#2
I use kite with Visual Studio Code.
Edit (originally said VSCode which is different)
Reply
#3
FYI: VSCode is separate from Virtual Studio Code, to install, see: https://python-forum.io/Thread-VS-Code-from-start
Reply
#4
Yes, I know that, I intended to avoid to install another tool for development, but I guess I have no choice.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Python development environment standenman 3 1,523 May-04-2023, 07:24 PM
Last Post: snippsat
  preparing the installation of a Python-development environment apollo 8 4,041 Apr-02-2020, 05:36 PM
Last Post: apollo
  Python Development Server in Azure phpMick 1 1,825 Nov-18-2019, 03:08 PM
Last Post: snippsat
  How to set up visual studio 2017 for 3ds max Python development littleGreenDude 1 3,004 Dec-27-2018, 04:51 PM
Last Post: littleGreenDude
  Python development editor Venkatta 8 75,632 Dec-13-2017, 06:27 PM
Last Post: j.crater

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020