p = vlc.MediaPlayer('c/:bit.mp3')
p.play()
0
[000002ab36718df0] main input error: Your input can't be opened
[000002ab36718df0] main input error: VLC is unable to open the MRL 'c/:bit.mp3'. Check the log for details.
p = vlc.MediaPlayer("file:c:bit.mp3 file")
p.play()
[0000011f251d7970] main input error: Your input can't be opened
[0000011f251d7970] main input error: VLC is unable to open the MRL 'file:c:bit.mp3 file'. Check the log for details.
p = vlc.MediaPlayer("c:bit.mp3 file")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\ProgramData\Anaconda3\lib\site-packages\vlc.py", line 3264, in __new__
o.set_media(instance.media_new(*args))
File "C:\ProgramData\Anaconda3\lib\site-packages\vlc.py", line 1868, in media_new
m._instance = self
AttributeError: 'NoneType' object has no attribute '_instance'
>>> p.play()
0
[0000011f25192690] filesystem stream error: cannot open file c:bit.mp3 file (No such file or directory)
[0000011f251dd910] main input error: Your input can't be opened
[0000011f251dd910] main input error: VLC is unable to open the MRL 'file:///c:bit.mp3 file'. Check the log for details.
os.system(r"c:bit.mp3 file")
import pickle
# имя файла, в котором мы сохраним объект
shoplistfile = 'shoplist.data'
# список покупок
shoplist = ['яблоки', 'манго', 'морковь']
# Запись в файл
f = open(shoplistfile, 'wb')
pickle.dump(shoplist, f) # помещаем объект в файл
f.close()
del shoplist # уничтожаем переменную shoplist
# Считываем из хранилища
f = open(shoplistfile, 'rb')
storedlist = pickle.load(f) # загружаем объект из файла
print(storedlist)
Вывод:
$ python3 pickling.py
['яблоки', 'манго', 'морковь']
PS C:\Users\Дима\Desktop\New folder (3)> pyinstaller -F 333.py
82 INFO: PyInstaller: 3.5.dev0+b54a15d72e
82 INFO: Python: 3.7.1
82 INFO: Platform: Windows-10-10.0.17763-SP0
85 INFO: wrote C:\Users\Дима\Desktop\New folder (3)\333.spec
86 INFO: UPX is not available.
87 INFO: Extending PYTHONPATH with paths
['C:\\Users\\Дима\\Desktop\\New folder (3)',
'C:\\Users\\Дима\\Desktop\\New folder (3)']
87 INFO: checking Analysis
87 INFO: Building Analysis because Analysis-00.toc is non existent
87 INFO: Initializing module dependency graph...
91 INFO: Initializing module graph hooks...
92 INFO: Analyzing base_library.zip ...
2512 INFO: running Analysis Analysis-00.toc
2532 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of final executable
required by C:\ProgramData\Anaconda3\python.exe
3022 INFO: Caching module hooks...
3026 INFO: Analyzing C:\Users\Дима\Desktop\New folder (3)\333.py
3954 INFO: Processing pre-find module path hook distutils
5079 INFO: Processing pre-safe import module hook setuptools.extern.six.moves
5810 INFO: Processing pre-find module path hook site
5810 INFO: site: retargeting to fake-dir 'C:\\ProgramData\\Anaconda3\\lib\\site-packages\\pyinstaller-3.5.dev0+b54a15d72e-py3.7.egg\\PyInstaller\\fake-modules'
8553 INFO: Processing pre-safe import module hook six.moves
11585 INFO: Loading module hooks...
11585 INFO: Loading module hook "hook-distutils.py"...
11586 INFO: Loading module hook "hook-encodings.py"...
11643 INFO: Loading module hook "hook-lib2to3.py"...
11645 INFO: Loading module hook "hook-numpy.core.py"...
12139 INFO: MKL libraries found when importing numpy. Adding MKL to binaries
12141 INFO: Loading module hook "hook-numpy.py"...
12142 INFO: Loading module hook "hook-PIL.Image.py"...
12432 INFO: Loading module hook "hook-PIL.py"...
12433 INFO: Import to be excluded not found: 'FixTk'
12433 INFO: Excluding import 'tkinter'
12435 INFO: Removing import of tkinter from module PIL.ImageTk
12435 INFO: Excluding import 'PyQt4'
12436 INFO: Removing import of PyQt4 from module PIL.ImageQt
12437 INFO: Excluding import 'PySide'
12438 INFO: Removing import of PySide from module PIL.ImageQt
12438 INFO: Excluding import 'PyQt5'
12439 INFO: Removing import of PyQt5.QtCore from module PIL.ImageQt
12440 INFO: Removing import of PyQt5.QtGui from module PIL.ImageQt
12440 INFO: Loading module hook "hook-PIL.SpiderImagePlugin.py"...
12441 INFO: Excluding import 'tkinter'
12442 INFO: Import to be excluded not found: 'FixTk'
12442 INFO: Loading module hook "hook-pkg_resources.py"...
13102 INFO: Processing pre-safe import module hook win32com
13243 INFO: Loading module hook "hook-pycparser.py"...
13406 INFO: Loading module hook "hook-pydoc.py"...
13407 INFO: Loading module hook "hook-PyQt5.py"...
13659 WARNING: Hidden import "PyQt5.sip" not found!
13659 INFO: Loading module hook "hook-PyQt5.QtCore.py"...
13718 INFO: Loading module hook "hook-PyQt5.QtGui.py"...
13868 INFO: Loading module hook "hook-PyQt5.QtWidgets.py"...
14035 INFO: Loading module hook "hook-pytest.py"...
15082 INFO: Loading module hook "hook-pythoncom.py"...
15641 INFO: Loading module hook "hook-pywintypes.py"...
16167 INFO: Loading module hook "hook-scipy.py"...
16169 INFO: Loading module hook "hook-setuptools.py"...
17117 INFO: Loading module hook "hook-sysconfig.py"...
17118 INFO: Loading module hook "hook-win32com.py"...
17561 INFO: Loading module hook "hook-xml.dom.domreg.py"...
17562 INFO: Loading module hook "hook-xml.etree.cElementTree.py"...
17563 INFO: Loading module hook "hook-xml.py"...
17563 INFO: Loading module hook "hook-_tkinter.py"...
17682 INFO: checking Tree
17682 INFO: Building Tree because Tree-00.toc is non existent
17683 INFO: Building Tree Tree-00.toc
17725 INFO: checking Tree
17725 INFO: Building Tree because Tree-01.toc is non existent
17726 INFO: Building Tree Tree-01.toc
17763 INFO: checking Tree
17764 INFO: Building Tree because Tree-02.toc is non existent
17765 INFO: Building Tree Tree-02.toc
17795 INFO: checking Tree
17796 INFO: Building Tree because Tree-03.toc is non existent
17797 INFO: Building Tree Tree-03.toc
17836 INFO: checking Tree
17836 INFO: Building Tree because Tree-04.toc is non existent
17837 INFO: Building Tree Tree-04.toc
17856 INFO: checking Tree
17856 INFO: Building Tree because Tree-05.toc is non existent
17857 INFO: Building Tree Tree-05.toc
17892 INFO: checking Tree
17893 INFO: Building Tree because Tree-06.toc is non existent
17894 INFO: Building Tree Tree-06.toc
17919 INFO: checking Tree
17920 INFO: Building Tree because Tree-07.toc is non existent
17921 INFO: Building Tree Tree-07.toc
17940 INFO: checking Tree
17940 INFO: Building Tree because Tree-08.toc is non existent
17941 INFO: Building Tree Tree-08.toc
18009 INFO: checking Tree
18010 INFO: Building Tree because Tree-09.toc is non existent
18010 INFO: Building Tree Tree-09.toc
18013 INFO: Looking for ctypes DLLs
18067 INFO: Analyzing run-time hooks ...
18072 INFO: Including run-time hook 'pyi_rth_qt5.py'
18072 INFO: Including run-time hook 'pyi_rth_pkgres.py'
18074 INFO: Including run-time hook 'pyi_rth_win32comgenpy.py'
18075 INFO: Including run-time hook 'pyi_rth_multiprocessing.py'
18077 INFO: Including run-time hook 'pyi_rth__tkinter.py'
18087 INFO: Looking for dynamic libraries
18756 WARNING: lib not found: msmpi.dll dependency of C:\ProgramData\Anaconda3\Library\bin\mkl_blacs_msmpi_ilp64.dll
20835 WARNING: lib not found: tbb.dll dependency of C:\ProgramData\Anaconda3\Library\bin\mkl_tbb_thread.dll
20873 WARNING: lib not found: impi.dll dependency of C:\ProgramData\Anaconda3\Library\bin\mkl_blacs_intelmpi_ilp64.dll
20912 WARNING: lib not found: impi.dll dependency of C:\ProgramData\Anaconda3\Library\bin\mkl_blacs_intelmpi_lp64.dll
22075 WARNING: lib not found: pgf90rtl.dll dependency of C:\ProgramData\Anaconda3\Library\bin\mkl_pgi_thread.dll
22112 WARNING: lib not found: pgf90.dll dependency of C:\ProgramData\Anaconda3\Library\bin\mkl_pgi_thread.dll
22150 WARNING: lib not found: pgc14.dll dependency of C:\ProgramData\Anaconda3\Library\bin\mkl_pgi_thread.dll
22422 WARNING: lib not found: mpich2mpi.dll dependency of C:\ProgramData\Anaconda3\Library\bin\mkl_blacs_mpich2_ilp64.dll
25602 WARNING: lib not found: mpich2mpi.dll dependency of C:\ProgramData\Anaconda3\Library\bin\mkl_blacs_mpich2_lp64.dll
25643 WARNING: lib not found: msmpi.dll dependency of C:\ProgramData\Anaconda3\Library\bin\mkl_blacs_msmpi_lp64.dll
27175 INFO: Looking for eggs
27175 INFO: Using Python library C:\ProgramData\Anaconda3\python37.dll
27175 INFO: Found binding redirects:
[]
27187 INFO: Warnings written to C:\Users\Дима\Desktop\New folder (3)\build\333\warn-333.txt
27278 INFO: Graph cross-reference written to C:\Users\Дима\Desktop\New folder (3)\build\333\xref-333.html
27333 INFO: checking PYZ
27333 INFO: Building PYZ because PYZ-00.toc is non existent
27334 INFO: Building PYZ (ZlibArchive) C:\Users\Дима\Desktop\New folder (3)\build\333\PYZ-00.pyz
29222 INFO: Building PYZ (ZlibArchive) C:\Users\Дима\Desktop\New folder (3)\build\333\PYZ-00.pyz completed successfully.
29246 INFO: checking PKG
29246 INFO: Building PKG because PKG-00.toc is non existent
29246 INFO: Building PKG (CArchive) PKG-00.pkg
30388 WARNING: One binary added with two internal names.
30388 WARNING: ('icudt58.dll',
'C:\\ProgramData\\Anaconda3\\Library\\bin\\icudt58.dll',
'BINARY')
30389 WARNING: was placed previously at
30390 WARNING: ('PyQt5\\Qt\\bin\\icudt58.dll',
'C:\\ProgramData\\Anaconda3\\Library\\bin\\icudt58.dll',
'BINARY')
30448 WARNING: One binary added with two internal names.
30448 WARNING: ('icuuc58.dll',
'C:\\ProgramData\\Anaconda3\\Library\\bin\\icuuc58.dll',
'BINARY')
30449 WARNING: was placed previously at
30450 WARNING: ('PyQt5\\Qt\\bin\\icuuc58.dll',
'C:\\ProgramData\\Anaconda3\\Library\\bin\\icuuc58.dll',
'BINARY')
30496 WARNING: One binary added with two internal names.
30496 WARNING: ('icuin58.dll',
'C:\\ProgramData\\Anaconda3\\Library\\bin\\icuin58.dll',
'BINARY')
30497 WARNING: was placed previously at
30497 WARNING: ('PyQt5\\Qt\\bin\\icuin58.dll',
'C:\\ProgramData\\Anaconda3\\Library\\bin\\icuin58.dll',
'BINARY')
99226 INFO: Building PKG (CArchive) PKG-00.pkg completed successfully.
99251 INFO: Bootloader C:\ProgramData\Anaconda3\lib\site-packages\pyinstaller-3.5.dev0+b54a15d72e-py3.7.egg\PyInstaller\bootloader\Windows-64bit\run.exe
99251 INFO: checking EXE
99251 INFO: Building EXE because EXE-00.toc is non existent
99251 INFO: Building EXE from EXE-00.toc
99252 INFO: Appending archive to EXE C:\Users\Дима\Desktop\New folder (3)\dist\333.exe
99502 INFO: Building EXE from EXE-00.toc completed successfully.
Спасибо