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

Having issue with logger. #141

Open
erh3cq opened this issue May 21, 2017 · 3 comments
Open

Having issue with logger. #141

erh3cq opened this issue May 21, 2017 · 3 comments

Comments

@erh3cq
Copy link

erh3cq commented May 21, 2017

Not sure if this is a HyperSpyUI issue or an issue with my build.
On loading UI:

    H y p e r S p y
    Version 1.3+dev

    http://www.hyperspy.org

    Python 3.6.1 | packaged by conda-forge | (default, May  2 2017, 22:29:14) [MSC v.1900 64 bit (AMD64)]
Type 'copyright', 'credits' or 'license' for more information
IPython 6.0.0 -- An enhanced Interactive Python. Type '?' for help.
--- Logging error ---
Traceback (most recent call last):
  File "C:\Users\Eric Hoglund\Anaconda3\envs\data-analysis\lib\logging\__init__.py", line 994, in emit
    stream.write(msg)
AttributeError: 'NoneType' object has no attribute 'write'
Call stack:
  File "C:\Users\ERICHO~1\Documents\GitHub\hyperspyUI\build\lib\hyperspyui\__main__.py", line 137, in <module>
    main()
  File "C:\Users\ERICHO~1\Documents\GitHub\hyperspyUI\build\lib\hyperspyui\__main__.py", line 118, in main
    form = MainWindow()
  File "c:\users\ericho~1\documents\github\hyperspyui\hyperspyui\mainwindow.py", line 104, in __init__
    logger.info("Main window loaded!")
Message: 'Main window loaded!'
Arguments: ()

On loading a signal i get a huge output of logging errors as well. I will not copy them here, because they go on for pages :). Any clues? I am running in conda through an environment "data-analysis"

Thanks
Eric

@vidartf
Copy link
Member

vidartf commented May 22, 2017

Hmm. How do you launch the UI?

@erh3cq
Copy link
Author

erh3cq commented May 22, 2017

Through the desktop icon.
target: "C:\Users\Eric Hoglund\Anaconda3\envs\data-analysis\pythonw.exe" "C:\Users\ERICHO\~1\Documents\GitHub\hyperspyUI\build\lib\hyperspyui\__main__.py"
Start in: C:\Users\ERICHO~1\Anaconda3\envs\data-analysis

@erh3cq
Copy link
Author

erh3cq commented May 22, 2017

Also only seems to be a thing when I have output to console in settings

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

2 participants