Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pylyzer makes every import as error #81

Open
laxas opened this issue Apr 17, 2024 · 6 comments
Open

pylyzer makes every import as error #81

laxas opened this issue Apr 17, 2024 · 6 comments

Comments

@laxas
Copy link

laxas commented Apr 17, 2024

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

@Kapocsi
Copy link

Kapocsi commented May 14, 2024

Any updates?

Kapocsi added a commit to Kapocsi/dotfiles that referenced this issue May 14, 2024
pylyzer seems great, it just does not seem to understand updates
tracking: mtshiba/pylyzer#81
@kevinalh
Copy link

kevinalh commented Jun 5, 2024

Same issue here :/

@brizzbuzz
Copy link

brizzbuzz commented Jun 14, 2024

same here (on macOS) :(

@TudorAndrei
Copy link

I think it's a duplicate of #22

Kapocsi added a commit to Kapocsi/dotfiles that referenced this issue Aug 1, 2024
pylyzer seems great, it just does not seem to understand updates
tracking: mtshiba/pylyzer#81
@wxguy
Copy link

wxguy commented Oct 10, 2024

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

@controlado
Copy link

same issue :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants