Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install Issue Linux Mint LMDE4 #159

Open
tima-chan opened this issue Jan 7, 2021 · 2 comments
Open

Install Issue Linux Mint LMDE4 #159

tima-chan opened this issue Jan 7, 2021 · 2 comments
Assignees
Labels

Comments

@tima-chan
Copy link

I tried to install the library using pip install wptools
But it gives me this error: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-4cAaeI/pycurl/

the full terminal result:

Collecting wptools
  Downloading https://files.pythonhosted.org/packages/e2/5c/0d8af5532e44477edeb3dac81d3a611ea75827a18b6b4068c3cc2188bfe5/wptools-0.4.17-py2.py3-none-any.whl
Collecting pycurl (from wptools)
  Downloading https://files.pythonhosted.org/packages/ef/05/4b773f74f830a90a326b06f9b24e65506302ab049e825a3c0b60b1a6e26a/pycurl-7.43.0.5.tar.gz (216kB)
    100% |████████████████████████████████| 225kB 763kB/s 
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-iv2e4b/pycurl/setup.py", line 961, in <module>
        ext = get_extension(sys.argv, split_extension_source=split_extension_source)
      File "/tmp/pip-install-iv2e4b/pycurl/setup.py", line 623, in get_extension
        ext_config = ExtensionConfiguration(argv)
      File "/tmp/pip-install-iv2e4b/pycurl/setup.py", line 101, in __init__
        self.configure()
      File "/tmp/pip-install-iv2e4b/pycurl/setup.py", line 238, in configure_unix
        raise ConfigurationError(msg)
    __main__.ConfigurationError: Could not run curl-config: [Errno 2] No such file or directory
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-iv2e4b/pycurl/
tima@fatimah:~$ pip install wptools
Collecting wptools
  Using cached https://files.pythonhosted.org/packages/e2/5c/0d8af5532e44477edeb3dac81d3a611ea75827a18b6b4068c3cc2188bfe5/wptools-0.4.17-py2.py3-none-any.whl
Collecting pycurl (from wptools)
  Using cached https://files.pythonhosted.org/packages/ef/05/4b773f74f830a90a326b06f9b24e65506302ab049e825a3c0b60b1a6e26a/pycurl-7.43.0.5.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-4cAaeI/pycurl/setup.py", line 961, in <module>
        ext = get_extension(sys.argv, split_extension_source=split_extension_source)
      File "/tmp/pip-install-4cAaeI/pycurl/setup.py", line 623, in get_extension
        ext_config = ExtensionConfiguration(argv)
      File "/tmp/pip-install-4cAaeI/pycurl/setup.py", line 101, in __init__
        self.configure()
      File "/tmp/pip-install-4cAaeI/pycurl/setup.py", line 238, in configure_unix
        raise ConfigurationError(msg)
    __main__.ConfigurationError: Could not run curl-config: [Errno 2] No such file or directory

    Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-4cAaeI/pycurl/

Any help?

@siznax siznax self-assigned this Jan 7, 2021
@tima-chan tima-chan reopened this Feb 12, 2022
@matthewgehring
Copy link
Contributor

Having the same issues on windows 10

@matthewgehring
Copy link
Contributor

matthewgehring commented Feb 17, 2022

Possible solution, i just realized my error code was 10 so might be different. I cloned wptools into my projects local repo then navigated to setup.py and changed the following lines from:

with open('README.rst') as f:
    readme = f.read()
with open('HISTORY.rst') as f:
    history = f.read()

To:

with open('README.rst', encoding="utf8") as f:
    readme = f.read()
with open('HISTORY.rst', encoding="utf8") as f:
    history = f.read()

then ran setup.py. Works for me now.

@siznax siznax added the Bug label Feb 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants