Operating System - HP-UX
1752786 Members
5799 Online
108789 Solutions
New Discussion

How to use docx module in HP UX server with python

 
SOLVED
Go to solution
BarryShunter
Visitor

How to use docx module in HP UX server with python

Hello everyone, I set up parsing and data collection on the server to display this information on the site. I collected the information and part of it is in Doks, to read it I need a module, but I get an error

File "/home/alla/.local/lib/python3.8/site-packages/docx/opc/phys_pkg.py", line 30, in new raise PackageNotFoundError( docx.opc.exceptions.PackageNotFoundError: Package not found at 'teste.docx'

I read this issue: https://community.hpe.com/t5/languages-and-scripting/how-to-install-pandas-and-numpy-in-hp-ux-server-with-python-2-7/td-p/7071927

But I already intall python modules

Please help.

4 REPLIES 4

Re: How to use docx module in HP UX server with python

  1. How did you install Python -= specifically where did you get the Python package from and what specific commands did you run to install it?
  2. What command did you run to generate the error you list?

I am an HPE Employee
Accept or Kudo
BarryShunter
Visitor

Re: How to use docx module in HP UX server with python

Hi!

1) I install Python from there: https://community.hpe.com/t5/languages-and-scripting/how-to-install-pandas-and-numpy-in-hp-ux-server-with-python-2-7/td-p/7071927#.XvrkTs8zY5l

2) Error I got from terminal, I have button on site https://1x-rate.com/ which deployed on VPS(Digital Ocean), and VPS by POST request initiate on HP server python scrypt that use few modules numpy and docx to send docx to managers.

MK_J
HPE Pro
Solution

Re: How to use docx module in HP UX server with python

From your post, it seems you have python3.8 installed :

>> File "/home/alla/.local/lib/python3.8/site-packages/docx/opc/phys_pkg.py", line 30, in new raise PackageNotFoundError( docx.opc.exceptions.PackageNotFoundError: Package not found at 'teste.docx'

Could you please install a supported version of Python from the following link and check :

http://hpux.connect.org.uk/hppd/cgi-bin/search?term=python&Search=Search

You can find installation procedure and manpage at the download page itself.

Best Regards,

MJ


I work for HPE

Accept or Kudo

BarryShunter
Visitor

Re: How to use docx module in HP UX server with python

Thank you! Apparently I had a different version of Python preinstalled and they conflicted with each other and my scripts did not work correctly. Now everything is all right.