shanecode / psutil

Automatically exported from code.google.com/p/psutil
Other
0 stars 0 forks source link

0.6.1 no permit freeze #326

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
http://wiki.python.org/moin/Freeze

What steps will reproduce the problem?
1.python freeze.py example_psutil.py
2.Warning: unknown modules remain: _psutil_linux _psutil_posix
3.not correct make :(

before using the previous version (I forget which) and allowed to do this 
without problems

What is the expected output?

correct import psutil in freeze mode

What do you see instead?

Warning: unknown modules remain: _psutil_linux _psutil_posix

What version of psutil are you using? What Python version?

0.6.1
test both distros:
official tar.gz
ubuntu:
http://launchpadlibrarian.net/112957803/python-psutil_0.6.1-1ubuntu1_amd64.deb
debian:
http://ftp.us.debian.org/debian/pool/main/p/python-psutil/python-psutil_0.6.1-2_
amd64.deb

On what operating system? Is it 32bit or 64bit version?

64bits ubuntu 11.04 (python 2.7.1)
64bits debian stable (python 2.6)

Please provide any additional information below.

ubuntu 11.04 permit freeze psutil 0.1.3 :$

in windows 7 64 bits and windows xp 32/64 bits works perfect with py2exe

Original issue reported on code.google.com by galeraji...@gmail.com on 16 Sep 2012 at 9:59

GoogleCodeExporter commented 9 years ago
I've never heard of this tool and can't figure out what might be wrong without 
any output or a more detailed description.
Have you tried to ask on freeze's ml first?

Original comment by g.rodola on 6 Oct 2012 at 3:29

GoogleCodeExporter commented 9 years ago
As I recall from my limited work with freeze, It's common to have issues at 
times with nested imports in modules, particularly with modules in C. Given the 
somewhat convoluted nature of the psutil import chain I'm not surprised it 
might run into difficulties. It may be something that can be worked around by 
manually specifying the psutil libraries in the freeze command so they're 
included properly, but I'm not familiar enough with freeze to be of much help. 

I'd suggest asking for help from a freeze-specific mailing list first as 
Giampaolo suggested. If we determine there are some simple changes we can make 
to psutil to make it work better with freeze then I'm open to suggestions but 
at the moment I wouldn't know where to look. 

Original comment by jlo...@gmail.com on 6 Oct 2012 at 3:55

GoogleCodeExporter commented 9 years ago
Closing this out as invalid.

Original comment by g.rodola on 12 Dec 2012 at 3:38