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

Installing v0.14.0 #703

Closed
sstaszak opened this issue Nov 9, 2023 · 16 comments
Closed

Installing v0.14.0 #703

sstaszak opened this issue Nov 9, 2023 · 16 comments
Labels
installation Issues related to installation

Comments

@sstaszak
Copy link

sstaszak commented Nov 9, 2023

Describe the bug
I am unable to install v0.14.0 due to errors with Cython:
Error compiling Cython file:
causalml/inference/tree/causal/_builder.pyx:61:56: Cannot assign type 'double' to 'int'

To Reproduce
Steps to reproduce the behavior:
pip install causalml==0.14.0

Environment (please complete the following information):

  • OS: macOS
  • Python Version: 3.8
  • Versions of Major Dependencies:cython==0.28

Is there a better way to install a previous version? Also is there a way to install with tensorflow a previous version?

@sstaszak sstaszak added the bug Something isn't working label Nov 9, 2023
@jeongyoonlee jeongyoonlee added installation Issues related to installation and removed bug Something isn't working labels Nov 11, 2023
@jeongyoonlee
Copy link
Collaborator

It's rather a complex issue caused by a series of dependencies among causalml==0.14.0, scikit-learn, and Cython. The best way to address it is by installing causalml==0.14.1, where we removed the scikit-learn dependency (#686).

Is there any reason why you need to use the previous version?

@alexander-pv
Copy link
Collaborator

Hi, @sstaszak, it is better to install the recent version or even to install the package from the main branch of the source code.

In case if you really need the previous version to be installed for some reason, you can do the following:

  1. Clone the source code of v0.14.0: git clone --depth 1 -b v0.14.0 git@github.com:uber/causalml.git
  2. Set the upper bound for Cython package version in pyproject.toml, see and build from source.

@sstaszak
Copy link
Author

Hi, @sstaszak, it is better to install the recent version or even to install the package from the main branch of the source code.

In case if you really need the previous version to be installed for some reason, you can do the following:

  1. Clone the source code of v0.14.0: git clone --depth 1 -b v0.14.0 git@github.com:uber/causalml.git
  2. Set the upper bound for Cython package version in pyproject.toml, see and build from source.

Yes! We need the previous version due to an issue with v0.14.1 being incompatible with our current model.

@sstaszak
Copy link
Author

Hi, @sstaszak, it is better to install the recent version or even to install the package from the main branch of the source code.

In case if you really need the previous version to be installed for some reason, you can do the following:

  1. Clone the source code of v0.14.0: git clone --depth 1 -b v0.14.0 git@github.com:uber/causalml.git
  2. Set the upper bound for Cython package version in pyproject.toml, see and build from source.

This is very helpful thank you! What if we want the option to install with TF because we are needing DragonNet

@alexander-pv
Copy link
Collaborator

Hi, @sstaszak, it is better to install the recent version or even to install the package from the main branch of the source code.
In case if you really need the previous version to be installed for some reason, you can do the following:

  1. Clone the source code of v0.14.0: git clone --depth 1 -b v0.14.0 git@github.com:uber/causalml.git
  2. Set the upper bound for Cython package version in pyproject.toml, see and build from source.

This is very helpful thank you! What if we want the option to install with TF because we are needing DragonNet

In this case run pip install .[tf] command in the source code directory.

@sstaszak
Copy link
Author

sstaszak commented Nov 15, 2023

Hi, @sstaszak, it is better to install the recent version or even to install the package from the main branch of the source code.

In case if you really need the previous version to be installed for some reason, you can do the following:

  1. Clone the source code of v0.14.0: git clone --depth 1 -b v0.14.0 git@github.com:uber/causalml.git
  2. Set the upper bound for Cython package version in pyproject.toml, see and build from source.

@alexander-pv I still seem to be running into the cython issue even when I clone the source code of v0.14.0, set the upper bounds, and build from source:

20.41       Error compiling Cython file:
20.41       ------------------------------------------------------------
20.41       ...
20.41       
20.41               # Initial capacity
20.41               cdef int init_capacity
20.41       
20.41               if tree.max_depth <= 10:
20.41                   init_capacity = (2 ** (tree.max_depth + 1)) - 1
20.41                                                               ^
20.41       ------------------------------------------------------------
20.41       
20.41       causalml/inference/tree/causal/_builder.pyx:61:56: Cannot assign type 'double' to 'int'

@alexander-pv
Copy link
Collaborator

alexander-pv commented Nov 18, 2023

@sstaszak, please, try to install from source using clear python environment. I've just tested package building with freshly created python3.9 env. Everything works as expected. It seems that some package reinstalls Cython at the final stage of causalml installation.

You can also use whl from this archive: causalml-0.14.0-cp39-cp39-linux_x86_64.zip

@ImanEmtiazi728
Copy link

I'm trying to install causalml using pip. but i received the status error 2;

ERROR: Command errored out with exit status 2

@alexander-pv
Copy link
Collaborator

I'm trying to install causalml using pip. but i received the status error 2;

ERROR: Command errored out with exit status 2

Hi, @ImanEmtiazi728, could you please provide more details about the error.

@ImanEmtiazi728
Copy link

I'm trying to install causalml using pip. but i received the status error 2;
ERROR: Command errored out with exit status 2

Hi, @ImanEmtiazi728, could you please provide more details about the error.

I use !pip install causalml to install causalml. but i received the below error

ERROR: Exception:
Traceback (most recent call last):
File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\cli\base_command.py", line 173, in _main
status = self.run(options, args)
File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\cli\req_command.py", line 203, in wrapper
return func(self, options, args)
File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\commands\install.py", line 315, in run
requirement_set = resolver.resolve(
File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\resolution\resolvelib\resolver.py", line 94, in resolve
result = self._result = resolver.resolve(
File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 472, in resolve
state = resolution.resolve(requirements, max_rounds=max_rounds)
File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 341, in resolve
self._add_to_criteria(self.state.criteria, r, parent=None)
File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 172, in _add_to_criteria
if not criterion.candidates:
File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\resolvelib\structs.py", line 151, in bool
return bool(self._sequence)
File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 140, in bool
return any(self)
File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 128, in
return (c for c in iterator if id(c) not in self._incompatible_ids)
File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 29, in _iter_built
for version, func in infos:
File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\resolution\resolvelib\factory.py", line 272, in iter_index_candidate_infos
result = self._finder.find_best_candidate(
File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\index\package_finder.py", line 851, in find_best_candidate
candidates = self.find_all_candidates(project_name)
File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\index\package_finder.py", line 798, in find_all_candidates
page_candidates = list(page_candidates_it)
File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\index\sources.py", line 134, in page_candidates
yield from self._candidates_from_page(self._link)
File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\index\package_finder.py", line 758, in process_project_url
html_page = self._link_collector.fetch_page(project_url)
File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\index\collector.py", line 490, in fetch_page
return _get_html_page(location, session=self.session)
File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\index\collector.py", line 400, in _get_html_page
resp = _get_html_response(url, session=session)
File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\index\collector.py", line 115, in _get_html_response
resp = session.get(
File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\requests\sessions.py", line 555, in get
return self.request('GET', url, **kwargs)
File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\network\session.py", line 454, in request
return super().request(method, url, *args, **kwargs)
File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\requests\sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\requests\sessions.py", line 655, in send
r = adapter.send(request, **kwargs)
File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\cachecontrol\adapter.py", line 53, in send
resp = super(CacheControlAdapter, self).send(request, **kw)
File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\requests\adapters.py", line 439, in send
resp = conn.urlopen(
File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\urllib3\connectionpool.py", line 696, in urlopen
self._prepare_proxy(conn)
File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\urllib3\connectionpool.py", line 964, in _prepare_proxy
conn.connect()
File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\urllib3\connection.py", line 359, in connect
conn = self._connect_tls_proxy(hostname, conn)
File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\urllib3\connection.py", line 500, in connect_tls_proxy
return ssl_wrap_socket(
File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\urllib3\util\ssl
.py", line 453, in ssl_wrap_socket
ssl_sock = ssl_wrap_socket_impl(sock, context, tls_in_tls)
File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\urllib3\util\ssl
.py", line 495, in _ssl_wrap_socket_impl
return ssl_context.wrap_socket(sock)
File "C:\Users\Iman\anaconda3\lib\ssl.py", line 500, in wrap_socket
return self.sslsocket_class._create(
File "C:\Users\Iman\anaconda3\lib\ssl.py", line 997, in _create
raise ValueError("check_hostname requires server_hostname")
ValueError: check_hostname requires server_hostname

@ImanEmtiazi728
Copy link

I'm trying to install causalml using pip. but i received the status error 2;
ERROR: Command errored out with exit status 2

Hi, @ImanEmtiazi728, could you please provide more details about the error.

i applied all the ways in https://github.com/uber/causalml/blob/master/docs/installation.rst
but none of the worked

@ImanEmtiazi728
Copy link

ImanEmtiazi728 commented Dec 21, 2023 via email

@alexander-pv
Copy link
Collaborator

alexander-pv commented Dec 21, 2023

I'm trying to install causalml using pip. but i received the status error 2;
ERROR: Command errored out with exit status 2

Hi, @ImanEmtiazi728, could you please provide more details about the error.

I use !pip install causalml to install causalml. but i received the below error

ERROR: Exception: Traceback (most recent call last): File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\cli\base_command.py", line 173, in _main status = self.run(options, args) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\cli\req_command.py", line 203, in wrapper return func(self, options, args) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\commands\install.py", line 315, in run requirement_set = resolver.resolve( File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\resolution\resolvelib\resolver.py", line 94, in resolve result = self._result = resolver.resolve( File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 472, in resolve state = resolution.resolve(requirements, max_rounds=max_rounds) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 341, in resolve self._add_to_criteria(self.state.criteria, r, parent=None) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 172, in _add_to_criteria if not criterion.candidates: File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\resolvelib\structs.py", line 151, in bool return bool(self._sequence) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 140, in bool return any(self) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 128, in return (c for c in iterator if id(c) not in self._incompatible_ids) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 29, in _iter_built for version, func in infos: File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\resolution\resolvelib\factory.py", line 272, in iter_index_candidate_infos result = self._finder.find_best_candidate( File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\index\package_finder.py", line 851, in find_best_candidate candidates = self.find_all_candidates(project_name) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\index\package_finder.py", line 798, in find_all_candidates page_candidates = list(page_candidates_it) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\index\sources.py", line 134, in page_candidates yield from self._candidates_from_page(self._link) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\index\package_finder.py", line 758, in process_project_url html_page = self._link_collector.fetch_page(project_url) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\index\collector.py", line 490, in fetch_page return _get_html_page(location, session=self.session) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\index\collector.py", line 400, in _get_html_page resp = _get_html_response(url, session=session) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\index\collector.py", line 115, in _get_html_response resp = session.get( File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\requests\sessions.py", line 555, in get return self.request('GET', url, **kwargs) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\network\session.py", line 454, in request return super().request(method, url, *args, **kwargs) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\requests\sessions.py", line 542, in request resp = self.send(prep, **send_kwargs) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\requests\sessions.py", line 655, in send r = adapter.send(request, **kwargs) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\cachecontrol\adapter.py", line 53, in send resp = super(CacheControlAdapter, self).send(request, **kw) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\requests\adapters.py", line 439, in send resp = conn.urlopen( File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\urllib3\connectionpool.py", line 696, in urlopen self._prepare_proxy(conn) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\urllib3\connectionpool.py", line 964, in _prepare_proxy conn.connect() File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\urllib3\connection.py", line 359, in connect conn = self._connect_tls_proxy(hostname, conn) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\urllib3\connection.py", line 500, in connect_tls_proxy return ssl_wrap_socket( File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\urllib3\util\ssl.py", line 453, in ssl_wrap_socket ssl_sock = ssl_wrap_socket_impl(sock, context, tls_in_tls) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\urllib3\util\ssl.py", line 495, in _ssl_wrap_socket_impl return ssl_context.wrap_socket(sock) File "C:\Users\Iman\anaconda3\lib\ssl.py", line 500, in wrap_socket return self.sslsocket_class._create( File "C:\Users\Iman\anaconda3\lib\ssl.py", line 997, in _create raise ValueError("check_hostname requires server_hostname") ValueError: check_hostname requires server_hostname

The issue has no relations to causalml library. It is a networking problem with pip/urllib3. Related pip thread: pypa/pip#9972
I suggest creating new python environment and repeating package installation.

@ImanEmtiazi728
Copy link

ImanEmtiazi728 commented Dec 21, 2023

I'm trying to install causalml using pip. but i received the status error 2;
ERROR: Command errored out with exit status 2

Hi, @ImanEmtiazi728, could you please provide more details about the error.

I use !pip install causalml to install causalml. but i received the below error
ERROR: Exception: Traceback (most recent call last): File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\cli\base_command.py", line 173, in _main status = self.run(options, args) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\cli\req_command.py", line 203, in wrapper return func(self, options, args) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\commands\install.py", line 315, in run requirement_set = resolver.resolve( File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\resolution\resolvelib\resolver.py", line 94, in resolve result = self._result = resolver.resolve( File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 472, in resolve state = resolution.resolve(requirements, max_rounds=max_rounds) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 341, in resolve self._add_to_criteria(self.state.criteria, r, parent=None) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 172, in _add_to_criteria if not criterion.candidates: File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\resolvelib\structs.py", line 151, in bool return bool(self._sequence) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 140, in bool return any(self) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 128, in return (c for c in iterator if id(c) not in self._incompatible_ids) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 29, in _iter_built for version, func in infos: File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\resolution\resolvelib\factory.py", line 272, in iter_index_candidate_infos result = self._finder.find_best_candidate( File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\index\package_finder.py", line 851, in find_best_candidate candidates = self.find_all_candidates(project_name) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\index\package_finder.py", line 798, in find_all_candidates page_candidates = list(page_candidates_it) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\index\sources.py", line 134, in page_candidates yield from self._candidates_from_page(self._link) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\index\package_finder.py", line 758, in process_project_url html_page = self._link_collector.fetch_page(project_url) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\index\collector.py", line 490, in fetch_page return _get_html_page(location, session=self.session) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\index\collector.py", line 400, in _get_html_page resp = _get_html_response(url, session=session) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\index\collector.py", line 115, in _get_html_response resp = session.get( File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\requests\sessions.py", line 555, in get return self.request('GET', url, **kwargs) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\network\session.py", line 454, in request return super().request(method, url, *args, **kwargs) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\requests\sessions.py", line 542, in request resp = self.send(prep, **send_kwargs) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\requests\sessions.py", line 655, in send r = adapter.send(request, **kwargs) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\cachecontrol\adapter.py", line 53, in send resp = super(CacheControlAdapter, self).send(request, **kw) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\requests\adapters.py", line 439, in send resp = conn.urlopen( File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\urllib3\connectionpool.py", line 696, in urlopen self._prepare_proxy(conn) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\urllib3\connectionpool.py", line 964, in _prepare_proxy conn.connect() File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\urllib3\connection.py", line 359, in connect conn = self._connect_tls_proxy(hostname, conn) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\urllib3\connection.py", line 500, in connect_tls_proxy return ssl_wrap_socket( File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\urllib3\util\ssl.py", line 453, in ssl_wrap_socket ssl_sock = ssl_wrap_socket_impl(sock, context, tls_in_tls) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\urllib3\util\ssl.py", line 495, in _ssl_wrap_socket_impl return ssl_context.wrap_socket(sock) File "C:\Users\Iman\anaconda3\lib\ssl.py", line 500, in wrap_socket return self.sslsocket_class._create( File "C:\Users\Iman\anaconda3\lib\ssl.py", line 997, in _create raise ValueError("check_hostname requires server_hostname") ValueError: check_hostname requires server_hostname

The issue has no relations to causalml library. It is a networking problem with pip/urllib3. Related pip thread: pypa/pip#9972 I suggest creating new python environment and repeating package installation.

I applied many commands, but none of them have worked up to now. the below commands;

pip3 install --no-cache-dir causalml
pip install --no-cache-dir causalml

pip download --no-cache-dir --no-deps causalml
pip install --no-cache-dir --no-deps --force-reinstall causalml-0.14.1.tar.gz

pip install --no-cache-dir --index-url=https://pypi.org/simple/ --trusted-host=pypi.org causalml

pip cache purge
pip install --no-cache-dir causalml

@ImanEmtiazi728
Copy link

ImanEmtiazi728 commented Dec 21, 2023

I'm trying to install causalml using pip. but i received the status error 2;
ERROR: Command errored out with exit status 2

Hi, @ImanEmtiazi728, could you please provide more details about the error.

I use !pip install causalml to install causalml. but i received the below error
ERROR: Exception: Traceback (most recent call last): File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\cli\base_command.py", line 173, in _main status = self.run(options, args) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\cli\req_command.py", line 203, in wrapper return func(self, options, args) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\commands\install.py", line 315, in run requirement_set = resolver.resolve( File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\resolution\resolvelib\resolver.py", line 94, in resolve result = self._result = resolver.resolve( File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 472, in resolve state = resolution.resolve(requirements, max_rounds=max_rounds) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 341, in resolve self._add_to_criteria(self.state.criteria, r, parent=None) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 172, in _add_to_criteria if not criterion.candidates: File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\resolvelib\structs.py", line 151, in bool return bool(self._sequence) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 140, in bool return any(self) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 128, in return (c for c in iterator if id(c) not in self._incompatible_ids) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 29, in _iter_built for version, func in infos: File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\resolution\resolvelib\factory.py", line 272, in iter_index_candidate_infos result = self._finder.find_best_candidate( File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\index\package_finder.py", line 851, in find_best_candidate candidates = self.find_all_candidates(project_name) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\index\package_finder.py", line 798, in find_all_candidates page_candidates = list(page_candidates_it) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\index\sources.py", line 134, in page_candidates yield from self._candidates_from_page(self._link) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\index\package_finder.py", line 758, in process_project_url html_page = self._link_collector.fetch_page(project_url) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\index\collector.py", line 490, in fetch_page return _get_html_page(location, session=self.session) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\index\collector.py", line 400, in _get_html_page resp = _get_html_response(url, session=session) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\index\collector.py", line 115, in _get_html_response resp = session.get( File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\requests\sessions.py", line 555, in get return self.request('GET', url, **kwargs) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_internal\network\session.py", line 454, in request return super().request(method, url, *args, **kwargs) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\requests\sessions.py", line 542, in request resp = self.send(prep, **send_kwargs) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\requests\sessions.py", line 655, in send r = adapter.send(request, **kwargs) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\cachecontrol\adapter.py", line 53, in send resp = super(CacheControlAdapter, self).send(request, **kw) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\requests\adapters.py", line 439, in send resp = conn.urlopen( File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\urllib3\connectionpool.py", line 696, in urlopen self._prepare_proxy(conn) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\urllib3\connectionpool.py", line 964, in _prepare_proxy conn.connect() File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\urllib3\connection.py", line 359, in connect conn = self._connect_tls_proxy(hostname, conn) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\urllib3\connection.py", line 500, in connect_tls_proxy return ssl_wrap_socket( File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\urllib3\util\ssl.py", line 453, in ssl_wrap_socket ssl_sock = ssl_wrap_socket_impl(sock, context, tls_in_tls) File "C:\Users\Iman\anaconda3\lib\site-packages\pip_vendor\urllib3\util\ssl.py", line 495, in _ssl_wrap_socket_impl return ssl_context.wrap_socket(sock) File "C:\Users\Iman\anaconda3\lib\ssl.py", line 500, in wrap_socket return self.sslsocket_class._create( File "C:\Users\Iman\anaconda3\lib\ssl.py", line 997, in _create raise ValueError("check_hostname requires server_hostname") ValueError: check_hostname requires server_hostname

The issue has no relations to causalml library. It is a networking problem with pip/urllib3. Related pip thread: pypa/pip#9972 I suggest creating new python environment and repeating package installation.

when I applied the below command:
pip install causalml@git+https://github.com/uber/causalml#egg=causalml

I received the below error:

error: subprocess-exited-with-error

× git clone --filter=blob:none --quiet https://github.com/uber/causalml 'C:\Users\Iman\AppData\Local\Temp\pip-install-e6wu5yao\causalml_f361080b3a7c4c87b7c278ea2188376c' did not run successfully.
│ exit code: 128
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× git clone --filter=blob:none --quiet https://github.com/uber/causalml 'C:\Users\Iman\AppData\Local\Temp\pip-install-e6wu5yao\causalml_f361080b3a7c4c87b7c278ea2188376c' did not run successfully.
│ exit code: 128
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

@jeongyoonlee
Copy link
Collaborator

I will close this issue for now as I believe this issue should have been fixed in the recent releases. Please feel free to open a new issue if you still experience it with the latest version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
installation Issues related to installation
Projects
None yet
Development

No branches or pull requests

4 participants