Skip to content
This repository has been archived by the owner on Dec 14, 2021. It is now read-only.

import .. as problem #52

Closed
TTimo opened this issue Oct 7, 2019 · 4 comments
Closed

import .. as problem #52

TTimo opened this issue Oct 7, 2019 · 4 comments

Comments

@TTimo
Copy link

TTimo commented Oct 7, 2019

Hello..

The following:

import logging as logging_module

Yields this error:

Imported symbol named "logging" has not been found.

@mlangkabel
Copy link
Contributor

Hi @TTimo, can you provide a little bit more info, please?

  • Where is the logging module located? Somewhere relative to your project files? Or is it part of your Python environment?
  • Which Python version are you using?
  • What Python environment is Sourcetrail using? Did you specify a Python Environment inside the Sourcetrail Project Settings? If not you can check the used Python environment in the log after enabling verbose logging (if you wanna do that, make sure to index only one small file, otherwise it may take a while).

@TTimo
Copy link
Author

TTimo commented Oct 7, 2019

Aand .. it looks like it was a one time thing, I can't reproduce anymore. I reindexed (the project didn't change, or barely), and the error wasn't reported the second time .. sorry!

@TTimo TTimo closed this as completed Oct 7, 2019
@mlangkabel
Copy link
Contributor

Alright, thanks for the update!

@comperem
Copy link

comperem commented Jul 23, 2021

I received a similar error with datetime and socket imports. These are clearly available but the error did not surface again after closing and re-opening the project. Python 3.8.10 and SourceTrail 2021.1.30. All defaults for new project.

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants