linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [libgpiod] libgpiod and conan 2.0 recipe
@ 2023-07-05  7:51 Martin Schröder
  2023-07-05 11:15 ` Kent Gibson
  0 siblings, 1 reply; 2+ messages in thread
From: Martin Schröder @ 2023-07-05  7:51 UTC (permalink / raw)
  To: linux-gpio

Dear developers,


i am trying to use the lib in my tiny project; but in conjuction with 
conan i get the following error:

*********************************************************
Recipe 'libgpiod/1.6.3' seems broken.
It is possible that this recipe is not Conan 2.0 ready
If the recipe comes from ConanCenter check: https://conan.io/cci-v2.html
If it is your recipe, check if it is updated to 2.0
*********************************************************

ERROR: Package 'libgpiod/1.6.3' not resolved: libgpiod/1.6.3: Cannot 
load recipe.
Error loading conanfile at 
'/home/martin/.conan2/p/libgpf99e3cc2c7d92/e/conanfile.py': Unable to 
load conanfile in /home/martin/.conan2/p/libgpf99e3cc2c7d92/e/conanfile.py
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in 
_call_with_frames_removed
  File "/home/martin/.conan2/p/libgpf99e3cc2c7d92/e/conanfile.py", line 
1, in <module>
    from conans import ConanFile, tools, AutoToolsBuildEnvironment
ImportError: cannot import name 'ConanFile' from 'conans' 
(/home/martin/.local/lib/python3.10/site-packages/conans/__init__.py)
.

What can I do to fix this?

Thanks in advance

Martin


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [libgpiod] libgpiod and conan 2.0 recipe
  2023-07-05  7:51 [libgpiod] libgpiod and conan 2.0 recipe Martin Schröder
@ 2023-07-05 11:15 ` Kent Gibson
  0 siblings, 0 replies; 2+ messages in thread
From: Kent Gibson @ 2023-07-05 11:15 UTC (permalink / raw)
  To: Martin Schröder; +Cc: linux-gpio

On Wed, Jul 05, 2023 at 09:51:09AM +0200, Martin Schröder wrote:
> Dear developers,
> 
> 
> i am trying to use the lib in my tiny project; but in conjuction with conan
> i get the following error:
> 
> *********************************************************
> Recipe 'libgpiod/1.6.3' seems broken.
> It is possible that this recipe is not Conan 2.0 ready
> If the recipe comes from ConanCenter check: https://conan.io/cci-v2.html
> If it is your recipe, check if it is updated to 2.0
> *********************************************************
> 
> ERROR: Package 'libgpiod/1.6.3' not resolved: libgpiod/1.6.3: Cannot load
> recipe.
> Error loading conanfile at
> '/home/martin/.conan2/p/libgpf99e3cc2c7d92/e/conanfile.py': Unable to load
> conanfile in /home/martin/.conan2/p/libgpf99e3cc2c7d92/e/conanfile.py
>  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
>  File "<frozen importlib._bootstrap>", line 241, in
> _call_with_frames_removed
>  File "/home/martin/.conan2/p/libgpf99e3cc2c7d92/e/conanfile.py", line 1, in
> <module>
>    from conans import ConanFile, tools, AutoToolsBuildEnvironment
> ImportError: cannot import name 'ConanFile' from 'conans'
> (/home/martin/.local/lib/python3.10/site-packages/conans/__init__.py)
> .
> 
> What can I do to fix this?
> 

Hi Martin,

That recipe is provided by the conan project themselves, not libgpiod,
so you should take it up with them.

FWIW, it appears the recipe is in the process of being updated to support
v2[1].
Perhaps try their WIP recipe, and if it doesn't work then follow up in
that issue?

Cheers,
Kent.

[1] https://github.com/conan-io/conan-center-index/pull/18171

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-07-05 11:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-05  7:51 [libgpiod] libgpiod and conan 2.0 recipe Martin Schröder
2023-07-05 11:15 ` Kent Gibson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).