Author Topic: About the pylab package  (Read 3750 times)

0 Members and 1 Guest are viewing this topic.

Offline Jad

  • New QuantumATK user
  • *
  • Posts: 3
  • Country: cn
  • Reputation: 0
    • View Profile
About the pylab package
« 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!

Offline Anders Blom

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 5576
  • Country: dk
  • Reputation: 96
    • View Profile
    • QuantumATK at Synopsys
Re: About the pylab package
« Reply #1 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?


Offline Jad

  • New QuantumATK user
  • *
  • Posts: 3
  • Country: cn
  • Reputation: 0
    • View Profile
Re: About the pylab package
« Reply #2 on: April 8, 2014, 16:45 »
I just fixed this problem by intalling some site-packages
Thank you!

Offline Anders Blom

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 5576
  • Country: dk
  • Reputation: 96
    • View Profile
    • QuantumATK at Synopsys
Re: About the pylab package
« Reply #3 on: April 8, 2014, 16:50 »
Well, good - although that should not really be necessary...