pylyzer icon indicating copy to clipboard operation
pylyzer copied to clipboard

pylyzer makes every import as error

Open laxas opened this issue 10 months ago • 4 comments

I run pylyzer in an activated poetry environment. It even marks packages form the standard library as errors.


1 | from string import Template
  :                    --------

NotConstExpr: not a constant expression

Error[#2205]: File aigateway.py, line 5, <module>

5 | from openai import OpenAI
  : --------

ImportError: module openai not found

Error[#0506]: File aigateway.py, line 5, <module>.OpenAI

5 | from openai import OpenAI
  :                    ------

NotConstExpr: not a constant expression

Ubuntu 22.04, Python 3.12 via pyenv

laxas avatar Apr 17 '24 09:04 laxas

Any updates?

Kapocsi avatar May 14 '24 19:05 Kapocsi

Same issue here :/

kevinalh avatar Jun 05 '24 00:06 kevinalh

same here (on macOS) :(

brizzbuzz avatar Jun 14 '24 15:06 brizzbuzz

I think it's a duplicate of #22

TudorAndrei avatar Jul 18 '24 14:07 TudorAndrei

Same issue here. Even inbuilt modules such as os, sys, platform are being reported as missing. Used pylyzer as server.

wxguy avatar Oct 10 '24 15:10 wxguy