NikolaiT / GoogleScraper

A Python module to scrape several search engines (like Google, Yandex, Bing, Duckduckgo, ...). Including asynchronous networking support.
https://scrapeulous.com/
Apache License 2.0
2.64k stars 743 forks source link

Install bug on win8 #141

Open gaobb opened 8 years ago

gaobb commented 8 years ago

Hi, Can't get this to install on windows. I get the following: File "C:\Python34\lib\distutils\util.py", line 127, in convert_path raise ValueError, "path '%s' cannot end with '/'" % pathname ValueError: path './' cannot end with '/'

ITSecMedia commented 8 years ago

I experience the same issue on Windows 10 x64 with Anaconda virtual environment Python 3.5.1 Occurs on manual python setup.py install too

derekcoleman commented 8 years ago

Same issue. Any workaround/solution for this?

ddmee commented 8 years ago

Yeah, there is a work around. This is the same issue that is in issue [https://github.com/NikolaiT/GoogleScraper/issues/145 ]

Download the source code from Github. Then you need to edit setup.py file. Remove the / from the package_dir={'examples': 'examples/'}. Once the forward slash is removed, save file. And then the installation should work on Windows.

You can install local source code using pip: pip install

rifqiabidin commented 7 years ago

Especially for supernoob ~(like me)~ As mentioned before, you can install local source code after download and modify the source code from Github.

Check this link if you still have no idea what to do https://packaging.python.org/installing/#installing-from-a-local-src-tree

sysilviakim commented 7 years ago

Thanks a lot!! I followed @rifqiabidin 's link and did the "Installing from a local src tree" and it finally worked.

rifqiabidin commented 7 years ago

@eolica glad to hear that