How to install conan and use it? - conan

Check if Conan is not installed correctly.install failed,The initial installation is through the PIP installation
1、pip install conan
2、conan
An error occurs at step 2(windows 7)
failed create aprocess

There is a good page in Conan docs about installation.
The recommended way is using pip
If you are running Windows, please read carefully the notes in installation page.
Anyway, your problem is listed in troubleshooting page, where there is an explanation how to solve it.
Regards

Related

Reinstall conan requires from conanfile.py

Can I somehow automatically specify in conanfile.py install the required package even if it is already installed?
If I do conan install <package> with my hands, then it will install it, even if it was installed before. But in conanfile.py it just writes ": Already installed!" and goes on.
This may conan create <package> --<param>, but it would be better if it was written in the recipe itself.
Thanks in advance

doc_controls has not attribute 'inheritable headers'

I'm starting this thread with an answer, not a question. The questions are stated at the end:
I tried to add pip package 'tfx' to Apache Airflow using my own Dockerfile and docker-compose.yaml. I added my own DAG to Airflow and that failed to load with this error message:
doc_controls has not attribute 'inheritable_header'
It cost me only a day to find the cause. When you add this to your Dockerfile..
pip install tfx
..pip will install txf, tensorflow-2.6.0 and tensorflow-estimator-2.7.0. The latter is apparently depending on the not-yet-released code in the github repo tensorflow/docs which contains doc_controls.
So instead add this to keep tensorflow-estimator in line with packages that pip can find:
RUN pip install --no-cache-dir --user \
tfx==1.3.1 \
tensorflow==2.6.0 \
tensorflow-estimator==2.6.0
I'm loosing a lot of time solving problems with dependencies between pip packages and pip packages and the underlying C/C++ libraries. Am I the only one?
Here are my questions:
Am I correct to assume that pip is supposed to figure out which versions of dependencies of tfx to install. Should I normally be able to rely on pip to do this correctly or will pip simply install the latest version of all dependencies without regard to their mutual compatibility?
On the internet there are many Dockerfile around that do not specify any version numbers of the apt/pip packages to install. Such a Dockerfile is like a box of chocolates right? If you build the dockerfile a time t1 and at time t2 then their contents can differ in terms of versions right?
In general: Given a docker image why can one not get the Dockerfile that was used to construct the docker image?
Regards,
Chris
I also keep running into these dependency issues recently. I came across another post which might be of interest: Resolving new pip backtracking runtime issue. Based off this I think pip does try to figure out what versions of packages to install to avoid conflicts but I guess it sometimes struggles. I tried one of the tools, pipreqs but I didn't find it useful for my particular problem. In fact it broke things even more.
Also thanks for the solution to this one, I had the same problem.

how to download Gurobi (v9.0.3) in python (v3.8)?

I am looking to download Gurobi in python but when I follow gurobi's instructions to do so, I get this error.
Python installation directory (hit ENTER to use c:\Python27):
The system cannot find the path specified.
[Hit ENTER to exit]
Please let me know if anyone has recently done this and can share some insight.
How exactly did you "download Gurobi in Python"? You can either install it via Anaconda:
conda config --add channels http://conda.anaconda.org/gurobi
conda install gurobi
Or you can start up any Python environment and run this from within the GUROBI_HOME installation directory:
python setup.py install
Check out this guide for more detailed instructions.

XRlibrary is locked by another concurrent conan process, wait... in c++

While building my solution in VS, am getting conan lock error in c++
1> XRLibrary/0.1#Xerox/XRLibrary is locked by another concurrent conan process, wait...
1> If not the case, quit, and do 'conan remove --locks'
9> perfmon.cpp
Just had the same problem with installing Sentry.io's packages. I did it on Windows, steps might be similar for Linux as well.
Make sure you have the latest version of Conan. Typically you can run the following (if conan was installed using pip):
pip install --upgrade conan
You can do the following next:
Remove directory /c/Users/TestUser/.conan/data/<some-package> (Here the some-package might be XRLibrary)
Rerun your conan install command.
If you are a mac user, just remove ~/.conan/data. That works for me.

What is phantomjs --wd command alternative for slimerjs?

I was using Phantomjs with Phoenix framework for test, and the package I use in phoenix is hound.
I previously installed phantomjs with apt-get which was giving problems (this github comment said the installation method was the culprit), so I downloaded the latest binary from the official website but that was giving permissions denied error, so I had to build it from the source, but to my surprise the build.py which is mentioned in the official guide wasn't avaialble, so I even failed to build it that way.
I also failed to install through npm, so I gave up on phantomjs.
Now I installed slimerjs, but I don't know what is slimerjs's alternative command to phantomjs --wd.