Project

General

Profile

Assistance #436

cx_freeze on ntblcient python script does not work in Ubuntu 14.04

Added by Davy Gigan over 4 years ago. Updated over 2 years ago.

Status:
Rejeté
Priority:
Haut
Assignee:
Start date:
04/27/2016
Due date:
% Done:

0%


Description

Generate a binary from script :

mkdir /tmp/ntbclient_cxfreeze
cxfreeze --install-dir /tmp/ntbclient_cxfreeze/ /usr/bin/ntbclient | tee cxfreeze.log

The generated program reports some errors :

/tmp/ntbclient_cxfreeze$ ./ntbclient 
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/cx_Freeze/initscripts/Console.py", line 27, in <module>
    exec code in m.__dict__
  File "/usr/bin/ntbclient", line 97, in <module>
    from argparse import ArgumentParser, ArgumentDefaultsHelpFormatter, FileType
  File "/usr/lib/python2.7/argparse.py", line 90, in <module>
    import textwrap as _textwrap
  File "/usr/lib/python2.7/textwrap.py", line 10, in <module>
    import string, re
ImportError: No module named string

The cxfreze logs for trusty (generated binary that works) shows some differences with the one for xenial.

Especially this, that could be related :

-m string                    /usr/lib/python2.7/string.py
+m string                    

The /usr/lib/python2.7/string.py(c) files are present on both 16.04 and 14.04 python directories.

The generated ntbclient binary seems to contain the string.pyc file on 14.04 :

$ strings ntbclient | grep string.py
string.pyc
string.pycPK

No corresponding stuff on xenial generated binary.

cxfreeze_trusty.log View (21.3 KB) Delete Davy Gigan, 04/27/2016 11:20 AM

cxfreeze_xenial.log View (22.5 KB) Delete Davy Gigan, 04/27/2016 11:20 AM

History

#1 Updated by Davy Gigan over 4 years ago

  • Description updated (diff)

#2 Updated by Davy Gigan over 3 years ago

  • Status changed from Nouveau to Rejeté

We should not need cxfreeze anymore for 14.04.
This issue is therefore rejected.

#3 Updated by Anonymous over 2 years ago

  • Tracker changed from Anomalie to Assistance
  • Subject changed from cx_freeze on ntblcient python script does not work in Ubuntu 14.04 to Levitra Helps To Keep A Sexual Relation Alive
  • Description updated (diff)
  • Assignee set to Renaud Rabeil

SPAM : supprimé.

#4 Updated by Redmine Admin over 2 years ago

  • Subject changed from Levitra Helps To Keep A Sexual Relation Alive to cx_freeze on ntblcient python script does not work in Ubuntu 14.04
  • Description updated (diff)

Correction du spam reçu.

Passage du projet en privé étant donné qu'il n'y a pas d'activité publique dessus.

Also available in: Atom PDF