WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: TC9.x x64 : python missing multiprocessing/util.py file  (Read 2415 times)

Offline hprem

  • Newbie
  • *
  • Posts: 12
TC9.x x64 : python missing multiprocessing/util.py file
« on: March 29, 2018, 07:46:03 AM »
The python.tcz extension from 9.x dist doesn't seem to contain the file /usr/local/lib/python2.7/multiprocessing/util.py. Instead, there is a /usr/local/lib/python2.7/multiprocessing/util.pyo file, which can be loaded only when python process is started with a "-O" arg
So importing multiprocessing module from python fails. Is this something that can be fixed
 
Failing logs with TC 9.0
Code: (python) [Select]

tc@tce_9.0:~$ version
9.0
tc@tce_9.0:~$ tce-load -i python
python is already installed!
tc@tce_9.0:~$
tc@tce_9.0:~$ python
Python 2.7.14 (default, Mar 21 2018, 12:17:56)
[GCC 7.2.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import multiprocessing
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/multiprocessing/__init__.py", line 65, in <module>
    from multiprocessing.util import SUBDEBUG, SUBWARNING
ImportError: No module named util
>>>
tc@tce_9.0:~$ python -O
Python 2.7.14 (default, Mar 21 2018, 12:17:56)
[GCC 7.2.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import multiprocessing
>>>

 
Working fine with TC 8.2.1
Code: (python) [Select]

tc@trex:~$ version
8.2.1
tc@tce_8.2.1:~$ tce-load -i python
python is already installed!
tc@tce_8.2.1:~$
tc@tce_8.2.1:~$ python
Python 2.7.14 (default, Oct  6 2017, 14:37:32)
[GCC 6.2.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import multiprocessing
>>>

« Last Edit: March 29, 2018, 07:52:58 AM by hprem »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: TC9.x x64 : python missing multiprocessing/util.py file
« Reply #1 on: March 30, 2018, 03:17:44 AM »
python reposted with the missing file - thanks for reporting this

Offline hprem

  • Newbie
  • *
  • Posts: 12
Re: TC9.x x64 : python missing multiprocessing/util.py file
« Reply #2 on: March 30, 2018, 04:28:09 PM »
Thanks  :D :D