简体   繁体   中英

GoogleScraper on Windows - Error setup.py egg_info

I have a problem for install GoogleScraper with python. I am lost. Look my problem : Capture

 File "C:\Python34\lib\distutils\command\build_py.py", line 55, in finalize_options

    self.package_dir[name] = convert_path(path)

  File "C:\Python34\lib\distutils\util.py", line 127, in convert_path

    raise ValueError("path '%s' cannot end with '/'" % pathname)

ValueError: path 'examples/' cannot end with '/'

----------------------------------------
Cleaning up...
  Removing temporary dir C:\Users\Billy\AppData\Local\Temp\pip_build_Billy...
Command python setup.py egg_info failed with error code 1 in C:\Users\Billy\AppData\Local\Temp\pip_build_Billy\GoogleScraper
Exception information:
Traceback (most recent call last):
  File "C:\Python34\lib\site-packages\pip\basecommand.py", line 122, in main
    status = self.run(options, args)
  File "C:\Python34\lib\site-packages\pip\commands\install.py", line 278, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
  File "C:\Python34\lib\site-packages\pip\req.py", line 1229, in prepare_files
    req_to_install.run_egg_info()
  File "C:\Python34\lib\site-packages\pip\req.py", line 325, in run_egg_info
    command_desc='python setup.py egg_info')
  File "C:\Python34\lib\site-packages\pip\util.py", line 697, in call_subprocess
    % (command_desc, proc.returncode, cwd))
pip.exceptions.InstallationError: Command python setup.py egg_info failed with error code 1 in C:\Users\Billy\AppData\Local\Temp\pip_build_Billy\GoogleScraper

I already tried many methods for resolve this problem such as said on the documentation of GoogleScraper https://github.com/NikolaiT/GoogleScraper#on-windows

I also tried run the command

python ez_setup.py

But it don't working for me.

Please, help me.

I solved my problem with this solution --> Github

I had removed a slash in the file "setup.py" for correctly install GoogleScraper.

Go at line 24 for the changing.

        packages=['GoogleScraper'],
        entry_points={'console_scripts': ['GoogleScraper = GoogleScraper.core:main']},
 -      package_dir={'examples': 'examples/'},
 +      package_dir={'examples': 'examples'},
        install_requires=requirements
  )

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM