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

Warnings in the console with the Brain2 library #21652

Closed
10 tasks done
winterdrops opened this issue Dec 26, 2023 · 2 comments · Fixed by #22350
Closed
10 tasks done

Warnings in the console with the Brain2 library #21652

winterdrops opened this issue Dec 26, 2023 · 2 comments · Fixed by #22350

Comments

@winterdrops
Copy link

winterdrops commented Dec 26, 2023

Issue Report Checklist

  • Searched the issues page for similar reports
  • Read the relevant sections of the Spyder Troubleshooting Guide and followed its advice
  • Reproduced the issue after updating with conda update spyder (or pip, if not using Anaconda)
  • Could not reproduce inside jupyter qtconsole (if console-related)
  • Tried basic troubleshooting (if a bug/error)
    • Restarted Spyder
    • Reset preferences with spyder --reset
    • Reinstalled the latest version of Anaconda
    • Tried the other applicable steps from the Troubleshooting Guide
  • Completed the Problem Description, Steps to Reproduce and Version sections below

Problem Description

Hi dear Spyder users,
Whenever I run a code in Spyder ide, I get the warning below. It doesn't matter whether I use Brian2 library or another, I constantly get this error. Pls help me, it is very annoying.

Paste Traceback/Error Below (if applicable)

PASTE TRACEBACK HERE
Output from spyder call 'get_namespace_view':
WARNING    Active device does not have an attribute 'size', ignoring this. [brian2.devices.device]
WARNING    Active device does not have an attribute 'size', ignoring this. [brian2.devices.device]

Output from spyder call 'get_var_properties':
WARNING    Active device does not have an attribute 'size', ignoring this. [brian2.devices.device]
WARNING    Active device does not have an attribute 'size', ignoring this. [brian2.devices.device]

Versions

  • Spyder version: 5.4.3
  • Python version: 3.9
  • Qt version:
  • PyQt version:
  • Operating System name/version: Windows 10 pro

Dependencies

PASTE DEPENDENCIES HERE
@jmrfox
Copy link

jmrfox commented Feb 18, 2024

Hi I have this issue as well. These messages are produced by brian's utils.logger which reads from core.preferences. However I am not sure how to go about hiding the message. I do not want to turn off all of brian's error messages.
Did you ever figure this out?

@ccordoba12
Copy link
Member

Thanks for letting us know about it @jmrfox and sorry for the late reply @winterdrops. We'll try to fix this in Spyder 6, to be released in a couple of months or less.

@ccordoba12 ccordoba12 self-assigned this Feb 21, 2024
@ccordoba12 ccordoba12 added this to the v6.0beta1 milestone Feb 21, 2024
@ccordoba12 ccordoba12 changed the title Spyder ide warnings Warnings in the console with the Brain2 library Mar 12, 2024
@ccordoba12 ccordoba12 modified the milestones: v6.0alpha5, v6.0beta1 Mar 12, 2024
@ccordoba12 ccordoba12 modified the milestones: v6.0beta1, v6.0beta2 May 15, 2024
@ccordoba12 ccordoba12 modified the milestones: v6.0beta2, v6.0beta3 Jun 17, 2024
@ccordoba12 ccordoba12 modified the milestones: v6.0beta3, v6.0rc1 Jul 16, 2024
@ccordoba12 ccordoba12 modified the milestones: v6.0rc1, v6.0rc2 Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment