Re: [PyInstaller] _MEIPASS points to a non existing path

2011-11-14 Thread stas zytkiewicz
On Sun, Nov 13, 2011 at 5:10 AM, stas zytkiewicz
stas.zytkiew...@gmail.com wrote:
 I can't imagine windows can hide the file when using totalcommander. But
 thank you for your efforts.
Hmm it seems that my idea that I can see everyting in windows 7 was incorrect.
Win 7 indeed hides multiple directories, one is AppData :-/

Well, now that I can actually see the directory pyinstaller is using I
can go further
with my quest to get a working exe.


 On Nov 12, 2011 11:30 PM, Hartmut Goebel h.goe...@goebel-consult.de
 wrote:

 Am 12.11.2011 19:08, schrieb stas zytkiewicz:

 I've tried but I must confess that I don't really understand how
 ArchiveViewer works.

 RTFM, section PyInstaller Utilities.

 But I can't understand why I can't find the directory _MEIPASS is
 pointing to.
 The path doesn't exists, if it really exixts I should be able to see it
 using totalcommander or some other file browser ?
 Or am I mistaken ?

 Yes, the directory should be there. But it will be removed at the moment
 you application finishes. Perhaps Windows hides the directory? I don't know,
 there is much magic in Windows.

 OK.
 sys._meipass C:/Users/Emin/AppData/Local/Temp/_MEI57242/
 os.listdir ['bz2.pyd', 'LIBEAY32.dll', 'Microsoft.VC90.CRT.manifest',

 [...]

 So the directory is there and there are files in it. But for me it looks
 as if any images are missing.

 --
 Schönen Gruß - Regards
 Hartmut Goebel
 Dipl.-Informatiker (univ.), CISSP, CSSLP

 Goebel Consult
 Spezialist für IT-Sicherheit in komplexen Umgebungen
 http://www.goebel-consult.de

 Monatliche Kolumne: http://www.cissp-gefluester.de/
 Goebel Consult ist Mitglied bei http://www.7-it.de

 --
 You received this message because you are subscribed to the Google Groups
 PyInstaller group.
 To post to this group, send email to pyinstaller@googlegroups.com.
 To unsubscribe from this group, send email to
 pyinstaller+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/pyinstaller?hl=en.





-- 
Free-source educational programs for schools
http://www.schoolsplay.org  and http://wiki.laptop.org/go/Schoolsplay
http://gvr.sf.net and http://wiki.laptop.org/go/Guido_van_Robot

-- 
You received this message because you are subscribed to the Google Groups 
PyInstaller group.
To post to this group, send email to pyinstaller@googlegroups.com.
To unsubscribe from this group, send email to 
pyinstaller+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pyinstaller?hl=en.



Re: [PyInstaller] _MEIPASS points to a non existing path

2011-11-12 Thread Hartmut Goebel

Am 12.11.2011 05:08, schrieb stas zytkiewicz:


You mean that the directory is deleted while the app is still running???



The directory is deleted when the app finishes.

--

Schönen Gruß - Regards
Hartmut Goebel
Dipl.-Informatiker (univ.), CISSP, CSSLP

Goebel Consult
Spezialist für IT-Sicherheit in komplexen Umgebungen
http://www.goebel-consult.de

Monatliche Kolumne: http://www.cissp-gefluester.de/
Goebel Consult ist Mitglied bei http://www.7-it.de

--
You received this message because you are subscribed to the Google Groups 
PyInstaller group.
To post to this group, send email to pyinstaller@googlegroups.com.
To unsubscribe from this group, send email to 
pyinstaller+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pyinstaller?hl=en.



Re: [PyInstaller] _MEIPASS points to a non existing path

2011-11-12 Thread stas zytkiewicz
On Sat, Nov 12, 2011 at 5:41 PM, Hartmut Goebel
h.goe...@goebel-consult.de wrote:
 Am 11.11.2011 10:52, schrieb stas zytkiewicz:

 I've searched the net and this group but I failed to find a solution
 for my strange problem.
 The sys._MEIPASS attribute points to a non existing path, the program
 runs but it can't find images that are included.

 Did you verify, they are included? use ArchiveViewer for this.
I've tried but I must confess that I don't really understand how
ArchiveViewer works.
But I can't understand why I can't find the directory _MEIPASS is pointing to.
The path doesn't exists, if it really exixts I should be able to see it
using totalcommander or some other file browser ?
Or am I mistaken ?

 I can't find the path _MEIPASS is pointing to while the app is
 running.

 Try this at the top of your script:

 import os
 print sys._MEIPASS
 print os.listdir(sys._MEIPASS)

OK.

sys._meipass C:/Users/Emin/AppData/Local/Temp/_MEI57242/
os.listdir ['bz2.pyd', 'LIBEAY32.dll', 'Microsoft.VC90.CRT.manifest',
'msvcm90.dll', 'msvcp90.dll', 'msvcr90.dll',
'NjoyPlayer.exe.manifest', 'phonon4.dll', 'pyexpat.pyd',
'PyQt4.QtCore.pyd', 'PyQt4.QtGui.pyd', 'PyQt4.QtNetwork.pyd',
'PyQt4.QtWebKit.pyd', 'python27.dll', 'PyWinTypes27.dll',
'qt4_plugins', 'QtCore4.dll', 'QtGui4.dll', 'QtNetwork4.dll',
'QtOpenGL4.dll', 'QtSvg4.dll', 'QtWebKit4.dll', 'QtXml4.dll',
'select.pyd', 'sip.pyd', 'sqlite3.dll', 'SSLEAY32.dll', 'tcl85.dll',
'tk85.dll', 'unicodedata.pyd', 'win32api.pyd', 'win32file.pyd',
'win32pipe.pyd', 'win32wnet.pyd', '_bsddb.pyd', '_ctypes.pyd',
'_hashlib.pyd', '_socket.pyd', '_sqlite3.pyd', '_ssl.pyd',
'_tkinter.pyd']




 --
 Schönen Gruß - Regards
 Hartmut Goebel
 Dipl.-Informatiker (univ.), CISSP, CSSLP

 Goebel Consult
 Spezialist für IT-Sicherheit in komplexen Umgebungen
 http://www.goebel-consult.de

 Monatliche Kolumne: http://www.cissp-gefluester.de/
 Goebel Consult ist Mitglied bei http://www.7-it.de

 --
 You received this message because you are subscribed to the Google Groups
 PyInstaller group.
 To post to this group, send email to pyinstaller@googlegroups.com.
 To unsubscribe from this group, send email to
 pyinstaller+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/pyinstaller?hl=en.





-- 
Free-source educational programs for schools
http://www.schoolsplay.org  and http://wiki.laptop.org/go/Schoolsplay
http://gvr.sf.net and http://wiki.laptop.org/go/Guido_van_Robot

-- 
You received this message because you are subscribed to the Google Groups 
PyInstaller group.
To post to this group, send email to pyinstaller@googlegroups.com.
To unsubscribe from this group, send email to 
pyinstaller+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pyinstaller?hl=en.



Re: [PyInstaller] _MEIPASS points to a non existing path

2011-11-12 Thread Hartmut Goebel

Am 12.11.2011 19:08, schrieb stas zytkiewicz:

I've tried but I must confess that I don't really understand how
ArchiveViewer works.


RTFM, section PyInstaller Utilities.


But I can't understand why I can't find the directory _MEIPASS is pointing to.
The path doesn't exists, if it really exixts I should be able to see it
using totalcommander or some other file browser ?
Or am I mistaken ?


Yes, the directory should be there. But it will be removed at the moment 
you application finishes. Perhaps Windows hides the directory? I don't 
know, there is much magic in Windows.



OK.
sys._meipass C:/Users/Emin/AppData/Local/Temp/_MEI57242/
os.listdir ['bz2.pyd', 'LIBEAY32.dll', 'Microsoft.VC90.CRT.manifest',

[...]

So the directory is there and there are files in it. But for me it looks 
as if any images are missing.


--
Schönen Gruß - Regards
Hartmut Goebel
Dipl.-Informatiker (univ.), CISSP, CSSLP

Goebel Consult
Spezialist für IT-Sicherheit in komplexen Umgebungen
http://www.goebel-consult.de

Monatliche Kolumne: http://www.cissp-gefluester.de/
Goebel Consult ist Mitglied bei http://www.7-it.de

--
You received this message because you are subscribed to the Google Groups 
PyInstaller group.
To post to this group, send email to pyinstaller@googlegroups.com.
To unsubscribe from this group, send email to 
pyinstaller+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pyinstaller?hl=en.



Re: [PyInstaller] _MEIPASS points to a non existing path

2011-11-12 Thread stas zytkiewicz
I can't imagine windows can hide the file when using totalcommander. But
thank you for your efforts.
 On Nov 12, 2011 11:30 PM, Hartmut Goebel h.goe...@goebel-consult.de
wrote:

 Am 12.11.2011 19:08, schrieb stas zytkiewicz:

 I've tried but I must confess that I don't really understand how
 ArchiveViewer works.


 RTFM, section PyInstaller Utilities.

  But I can't understand why I can't find the directory _MEIPASS is
 pointing to.
 The path doesn't exists, if it really exixts I should be able to see it
 using totalcommander or some other file browser ?
 Or am I mistaken ?


 Yes, the directory should be there. But it will be removed at the moment
 you application finishes. Perhaps Windows hides the directory? I don't
 know, there is much magic in Windows.

  OK.
 sys._meipass C:/Users/Emin/AppData/Local/**Temp/_MEI57242/
 os.listdir ['bz2.pyd', 'LIBEAY32.dll', 'Microsoft.VC90.CRT.manifest',

 [...]

 So the directory is there and there are files in it. But for me it looks
 as if any images are missing.

 --
 Schönen Gruß - Regards
 Hartmut Goebel
 Dipl.-Informatiker (univ.), CISSP, CSSLP

 Goebel Consult
 Spezialist für IT-Sicherheit in komplexen Umgebungen
 http://www.goebel-consult.de

 Monatliche Kolumne: 
 http://www.cissp-gefluester.**de/http://www.cissp-gefluester.de/
 Goebel Consult ist Mitglied bei http://www.7-it.de

 --
 You received this message because you are subscribed to the Google Groups
 PyInstaller group.
 To post to this group, send email to pyinstaller@googlegroups.com.
 To unsubscribe from this group, send email to pyinstaller+unsubscribe@**
 googlegroups.com pyinstaller%2bunsubscr...@googlegroups.com.
 For more options, visit this group at http://groups.google.com/**
 group/pyinstaller?hl=en http://groups.google.com/group/pyinstaller?hl=en
 .



-- 
You received this message because you are subscribed to the Google Groups 
PyInstaller group.
To post to this group, send email to pyinstaller@googlegroups.com.
To unsubscribe from this group, send email to 
pyinstaller+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pyinstaller?hl=en.



Re: [PyInstaller] _MEIPASS points to a non existing path

2011-11-11 Thread stas zytkiewicz
You mean that the directory is deleted while the app is still running???
On Nov 11, 2011 11:37 PM, Martin Zibricky mzibri...@gmail.com wrote:

 stas zytkiewicz píše v Pá 11. 11. 2011 v 01:52 -0800:
  Could it be that the path is created at runtime as the app runs but
  then it's deleted ??

 That's how pyinstaller works.

 --
 You received this message because you are subscribed to the Google Groups
 PyInstaller group.
 To post to this group, send email to pyinstaller@googlegroups.com.
 To unsubscribe from this group, send email to
 pyinstaller+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/pyinstaller?hl=en.



-- 
You received this message because you are subscribed to the Google Groups 
PyInstaller group.
To post to this group, send email to pyinstaller@googlegroups.com.
To unsubscribe from this group, send email to 
pyinstaller+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pyinstaller?hl=en.