QuantumATK Forum

QuantumATK => General Questions and Answers => Topic started by: Jad on April 8, 2014, 09:13

Title: About the pylab package
Post by: Jad on April 8, 2014, 09:13
hello,i just encounterd this problem while i was running the code.when i imported the pylab package and runned the program,it said Traceback (most recent call last):
  File "c:\users\admini~1.pc-\appdata\local\temp\9694778724796494.py", line 16, in <module>
    import pylab
  File ".\build\atkpython\lib\site-packages\pylab.py", line 1, in <module>
  File ".\build\atkpython\lib\site-packages\matplotlib\pylab.py", line 264, in <module>
  File ".\build\atkpython\lib\site-packages\matplotlib\pyplot.py", line 95, in <module>
  File ".\build\atkpython\lib\site-packages\matplotlib\backends\__init__.py", line 25, in pylab_setup
  File ".\build\atkpython\lib\site-packages\matplotlib\backends\backend_tkagg.py", line 8, in <module>
  File ".\build\atkpython\lib\lib-tk\Tkinter.py", line 39, in <module>
ImportError: DLL load failed: ÕÒ²»µ½Ö¸¶¨µÄÄ£¿é¡£
The last line of the codes are some unicoded letters
i wonder how can i fix this problem
And I  want to know whether it's ok to import the pylab package in the the Editor of VNL?
Thank you very much!
Title: Re: About the pylab package
Post by: Anders Blom on April 8, 2014, 09:23
You can't really "import" any code in the editor... You can write code in the Editor which is then executed via the Job Manager. But yes, it should be possible to run code with "pylab" from within VNL. Could you make a screenshot of the unicode error? Do you have a separate Python installation besides ATK?

Title: Re: About the pylab package
Post by: Jad on April 8, 2014, 16:45
I just fixed this problem by intalling some site-packages
Thank you!
Title: Re: About the pylab package
Post by: Anders Blom on April 8, 2014, 16:50
Well, good - although that should not really be necessary...