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

[package] sqlite3/3.40.0: 'Sqlite3Conan' object has no attribute 'env_info' #14361

Closed
obsgolem opened this issue Nov 22, 2022 · 2 comments
Closed
Labels
bug Something isn't working

Comments

@obsgolem
Copy link

Description

Follow up to #14351. When running conan install with the following conanfile, it is able to build sqlite3, but it fails during the call to package_info with the error

ERROR: sqlite3/3.40.0: Error in package_info() method, line 214
        self.env_info.PATH.append(bin_path)
        AttributeError: 'Sqlite3Conan' object has no attribute 'env_info'
[requires]
sqlite3/3.40.0

[generators]
CMakeToolchain
CMakeDeps

Package and Environment Details

See #14351

Conan profile

See #14351

Steps to reproduce

conan.exe install . --build=missing -vvv

Logs

Click to expand log
conan.exe install . --build=missing -vvv
=> _action: CONAN_API, name: remotes.list, parameters: {}
=> _action: CONAN_API, name: remotes.list, parameters: {}
=> _action: CONAN_API, name: lockfile.get_lockfile, parameters: {'lockfile': None, 'conanfile_path': 'C:\\Users\\jbills\
\Document\\Code\\test\\conanfile.txt', 'cwd': 'C:\\Users\\jbills\\Document\\Code\\test', 'partial': False}

-------- Input profiles --------
Profile host:
[settings]
arch=x86_64
build_type=Release
compiler=msvc
compiler.cppstd=14
compiler.runtime=dynamic
compiler.runtime_type=Release
compiler.version=193
os=Windows

Profile build:
[settings]
arch=x86_64
build_type=Release
compiler=msvc
compiler.cppstd=14
compiler.runtime=dynamic
compiler.runtime_type=Release
compiler.version=193
os=Windows

=> _action: CONAN_API, name: graph.load_root_consumer_conanfile, parameters: {'name': None, 'version': None, 'user': Non
e, 'channel': None, 'lockfile': None, 'remotes': [conancenter: https://center.conan.io [Verify SSL: True, Enabled: True]
], 'update': False}

-------- Computing dependency graph --------
=> _action: CONAN_API, name: graph.load_graph, parameters: {'profile_host': [settings]
arch=x86_64
build_type=Release
compiler=msvc
compiler.cppstd=14
compiler.runtime=dynamic
compiler.runtime_type=Release
compiler.version=193
os=Windows
, 'profile_build': [settings]
arch=x86_64
build_type=Release
compiler=msvc
compiler.cppstd=14
compiler.runtime=dynamic
compiler.runtime_type=Release
compiler.version=193
os=Windows
, 'lockfile': None, 'remotes': [conancenter: https://center.conan.io [Verify SSL: True, Enabled: True]], 'update': False
, 'check_update': False}
=> _action: GOT_RECIPE_FROM_LOCAL_CACHE, _id: sqlite3/3.40.0#00595463c6f423c2929b63911fc9393c%1668719210.827
Graph root
    conanfile.txt: C:\Users\jbills\Document\Code\test\conanfile.txt
Requirements
    sqlite3/3.40.0#00595463c6f423c2929b63911fc9393c - Cache

-------- Computing necessary packages --------
=> _action: CONAN_API, name: graph.analyze_binaries, parameters: {'remotes': [conancenter: https://center.conan.io [Veri
fy SSL: True, Enabled: True]], 'update': False, 'lockfile': None}
Requirements
    sqlite3/3.40.0#00595463c6f423c2929b63911fc9393c:6506537eae25fcb702cd9e1718c3d5a491c4af15#e80366186c01dbcd0e293ea4a0b
1e38a - Cache

-------- Installing packages --------
=> _action: CONAN_API, name: install.install_binaries, parameters: {'deps_graph': conanfile.txt
sqlite3/3.40.0, 'remotes': [conancenter: https://center.conan.io [Verify SSL: True, Enabled: True]], 'update': False}

-------- Installing (downloading, building) binaries... --------
sqlite3/3.40.0: Already installed!
=> _action: GOT_PACKAGE_FROM_LOCAL_CACHE, _id: sqlite3/3.40.0#00595463c6f423c2929b63911fc9393c%1668719210.827:6506537eae
25fcb702cd9e1718c3d5a491c4af15
sqlite3/3.40.0: Appending PATH env var with : C:\Users\jbills\.conan2\p\a90239fad41c0333\p\bin
ERROR: sqlite3/3.40.0: Error in package_info() method, line 214
        self.env_info.PATH.append(bin_path)
        AttributeError: 'Sqlite3Conan' object has no attribute 'env_info'
@SpaceIm
Copy link
Contributor

SpaceIm commented Nov 22, 2022

It's not a recipe issue. If it fails with conan 2.0.0-beta5 (it shouldn't: conan-io/conan#12351) you should open an issue in conan client repo.

@obsgolem
Copy link
Author

Fixed upstream

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants