Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Python API

Python API 2 years 6 months ago #11199

  • KAYA
  • KAYA's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 13
  • Karma: 0
I have tried to connect over VScode as defined in the 5.7 upgrade document.
Whiletry to run below script system can not find the pwrrt module. Is there any idea to fix this.

import pwrrt
class Ctx:
pass
......

I tried below command it works on the terminal but not accessible from VSCode.
export PYTHONPATH=$PYTHONPATH:$pwr_exe

Our file is pwrrt.so file?

Thanks.

Murat
The administrator has disabled public write access.

Python API 2 years 6 months ago #11204

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3170
  • Thank you received: 497
  • Karma: 133
Hi Murat,

Yes, the pwrrt module is $pwr_exe/pwrrt.so.

In V5.7 it's python2 and in V5.8 python3.

/Claes
The administrator has disabled public write access.

Python API 2 years 6 months ago #11214

  • KAYA
  • KAYA's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 13
  • Karma: 0
Hi everybody,

I updated ubuntu bashrc file
$nano ~/.bashrc
and paste the following command. Then my problem solved
export PYTHONPATH=$PYTHONPATH:$pwr_exe

I am not sure below in my script helped also
import sys
sys.path.append("usr/pwr58/os_linux/hw_x86_64/exp/exe/")

Regards,
Murat
The administrator has disabled public write access.
  • Page:
  • 1
Time to create page: 8.295 seconds