Re: [Imdbpy-help] Presentation and windows problem
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"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 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 File "sample_get_info.py", line 24, in get_data File "site-packages\imdb\__init__.py", line 186, in IMDb File "", line 971, in _find_and_load File "", line 955, in _find_and_load_unlocked File "", 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 FileNotFoundError: [Errno 2] No such file or directory: 'C:\\UsersAppData\\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
Re: [Imdbpy-help] Movie IDs
Thanks! Best Regards, Ethan Lipnik > > On Nov 17, 2017 at 7:11 PM,(mailto:martin.torre.cas...@gmail.com)> wrote: > > > > Sorry for the previous. > > > If you have the link: > > > > http://m.imdb.com/title/tt0133093/?ref=m_nv_sr_1 > > > > I think the id is always the number following the > 'http://m.imdb.com/title/tt'. > > > > You could import re and use a regular expression. > > > > import re > > match = re.search(r'http://m.imdb.com/title/tt(?P\d*?)/', your_link) > > if match: > >id = match.group('id') > > > > > > El 18 nov. 2017 1:00 a. m., "Martín Torre Castro" > > escribió: > > > > > > > Do you want to get the IMDb ID using the title of the movie over a whole > > bunch of movies? Is that it? > > > > > > > > El 18 nov. 2017 12:01 a. m., "Ethan Lipnik" > (mailto:ethanlip...@gmail.com)> escribió: > > > > > > > > Hello, I'm trying to make an organizer for my company using Python. How > > > can I get the movie IDs from the link to a movie page? > > > > > > > > > -- > > > 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 > > > (mailto: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
Re: [Imdbpy-help] Movie IDs
Sorry for the previous. If you have the link: http://m.imdb.com/title/tt0133093/?ref=m_nv_sr_1 I think the id is always the number following the ' http://m.imdb.com/title/tt'. You could import re and use a regular expression. import re match = re.search(r'http://m.imdb.com/title/tt(?P\d*?)/', your_link) if match: id = match.group('id') El 18 nov. 2017 1:00 a. m., "Martín Torre Castro" < martin.torre.cas...@gmail.com> escribió: > Do you want to get the IMDb ID using the title of the movie over a whole > bunch of movies? Is that it? > > El 18 nov. 2017 12:01 a. m., "Ethan Lipnik"> escribió: > > Hello, I'm trying to make an organizer for my company using Python. How > can I get the movie IDs from the link to a movie page? > > > -- > 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
Re: [Imdbpy-help] Movie IDs
Do you want to get the IMDb ID using the title of the movie over a whole bunch of movies? Is that it? El 18 nov. 2017 12:01 a. m., "Ethan Lipnik"escribió: Hello, I'm trying to make an organizer for my company using Python. How can I get the movie IDs from the link to a movie page? -- 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
[Imdbpy-help] Movie IDs
Hello, I'm trying to make an organizer for my company using Python. How can I get the movie IDs from the link to a movie page? -- 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