(artiq) C:\Users\dinggeyi\Desktop\artiq-master>artiq_dashboard
Traceback (most recent call last):
File "C:\Users\dinggeyi\Anaconda3\envs\artiq\Scripts\artiq_dashboard-script.py", line 8, in <module>
sys.exit(main())
File "C:\Users\dinggeyi\Anaconda3\envs\artiq\lib\site-packages\artiq\frontend\artiq_dashboard.py", line 208, in main
smgr.load()
File "C:\Users\dinggeyi\Anaconda3\envs\artiq\lib\site-packages\artiq\gui\state.py", line 43, in load
data=pyon.load_file(self.filename)
File "C:\Users\dinggeyi\Anaconda3\envs\artiq\lib\site-packages\artiq\protocols\pyon.py", line 225, in load_file
return decode(f.read())
File "C:\Users\dinggeyi\Anaconda3\envs\artiq\lib\site-packages\artiq\protocols\pyon.py", line 207, in decode
return eval(s,_eval_dict,{})
ValueError: source code string cannot contain null bytes

hello!I don't know how to solve this problem,can you help me

Seems your artiq_dashboard_{server}_{port}.pyon file is corrupted. Any idea how this happened? Try deleting it.

  • dgy replied to this.

    sb10q
    thank you very much,
    where is this file?I didn‘t find it.

    • dgy replied to this.

      dgy
      hope for your soon response,I am in a hurry

      dgy
      ok,the problem has been solved! thank you very much

      sb10q
      I succeeded but this occurs again
      (artiq) C:\Users\dinggeyi\Desktop\artiq-master>artiq_master
      Traceback (most recent call last):
      File "C:\Users\dinggeyi\anaconda3\envs\artiq\Scripts\artiq_master-script.py", line 5, in <module>
      from artiq.frontend.artiq_master import main
      File "C:\Users\dinggeyi\anaconda3\envs\artiq\lib\site-packages\artiq\frontend\artiq_master.py", line 9, in <module>
      from artiq.tools import (simple_network_args, atexit_register_coroutine,
      File "C:\Users\dinggeyi\anaconda3\envs\artiq\lib\site-packages\artiq\tools.py", line 15, in <module>
      from artiq.appdirs import user_config_dir
      File "C:\Users\dinggeyi\anaconda3\envs\artiq\lib\site-packages\artiq\appdirs.py", line 81
      """
      SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 1597-1598: truncated \UXXXXXXXX escape

      Try this and paste the output here:

      $ python
      Python 3.7.6 (default, Dec 18 2019, 19:23:55) 
      [GCC 9.2.0] on linux
      Type "help", "copyright", "credits" or "license" for more information.
      >>> import artiq.appdirs
      >>> artiq.appdirs.user_data_dir()
      '/home/sb/.local/share'

      @dgy I've been getting this error occasionally too. I fixed it by deleting the ...dashboard... file at C:\Users<username>\AppData\Local\m-labs\artiq\5

        3 years later

        Hello, I also have problem to find the artiq_dashboard_{server}_{port}.pyon file. I've searched the hard disk and I have searched inside the envs artiq folder. Can you please help locate it? Thanks

        Edit: I really can't find it..

        sb10q I see it now, there is a dashboard file not with the same name artiq_dashboard_{server}_{port}.pyon but I deleted it. Thanks for helping to find the cache.

        5 months later

        sb10q
        I had a similar problem with the system crashing. Deleting the file did help but the dashboard doesnt contain any applets. Is there a way to bring back the ones I was using before. Sorry this might be silly, but I am new to artiq.

        Restore the file from a backup

        7 days later

        Try ZFS and autosnapshots, which apparently has been ported to Windows.