Hi,

Is it possible that pyinstaller doesn't handle the setup.py file and/or the MANIFEST.in file like the sdist command does? Those are the places where the cookies.json file is listed.

Turgut




On November 18, 2017 10:13:07 AM "H. Turgut Uyar" <htur...@uyar.info> wrote:

Hi,

Is it possible that pyinstaller doesn't handle the setup.py file and/or the MANIFEST.in file like the sdist command does? Those are the places where the cookies.json file is listed.

Turgut


On November 16, 2017 9:55:34 PM Martín Torre Castro <martin.torre.cas...@gmail.com> wrote:


I'll try to build it on Windows, in the next days.
Can you tell me how you have set up the environment?
Which version of Python?
Which command you run to build the .exe?


 Python 3.6.3
pyInstaller --onefile sample_get_info.py



> 2017-11-16 00:44:46,732 WARNING [imdbpy] C:\Program Files
> (x86)\Python36-32\lib\site-packages\imdb\__init__.py:165: Unable to read
> configuration file; complete error: 'ConfigParserWithCase' object has no
> attribute '_boolean_states'

Nice; this seems to be a problem related to the parsing of the
imdbpy.cfg file: remove it (I'll try to reproduce and fix the bug later),
since you don't really need it.


>     grParser = GatherRefs(useModule=self._useModule)
> AttributeError: 'DOMHTMLPlotParser' object has no attribute '_useModule'

It seems you're using an old version.
IMDbPY just came out of a huge set of changes, and it still have some bugs
here
and there.  The above one should already be fixed in the repository
version:
https://github.com/alberanid/imdbpy

IMDbPY==6.0

I'm checking now. It says everything is 'already-up-to-date'.


Finally, I was trying the file from a very little gui in a '.pyw' file. Now
I tried only the text-mode script and it gives this error at the command
line. It's happening at the IMDb() call.

Traceback (most recent call last):
  File "sample_get_info.py", line 56, in <module>
  File "sample_get_info.py", line 24, in get_data
  File "site-packages\imdb\__init__.py", line 186, in IMDb
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "c:\program files
(x86)\python36-32\lib\site-packages\PyInstaller\loader\pyimod03_importers.py",
line 631, in exec_module
    exec(bytecode, module.__dict__)
  File "site-packages\imdb\parser\http\__init__.py", line 99, in <module>
FileNotFoundError: [Errno 2] No such file or directory:
'C:\\Users\\<my_user_name>\\AppData\\Local\\Temp\\_MEI56602\\imdb\\parser\\http\\cookie
s.json'



----------
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot


----------
_______________________________________________
Imdbpy-help mailing list
Imdbpy-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/imdbpy-help

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Imdbpy-help mailing list
Imdbpy-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/imdbpy-help

Reply via email to