conan: Can not upload package on OSX
Hi!
I’m trying to update log4cplus package. It’s working fine, except by this little detail:
>> Uploading packages for 'log4cplus/2.0.0-rc2@bincrafters/stable'
>> Verifying credentials...
>> OK! '[secure]' user logged in 'upload_repo'
Uploading log4cplus/2.0.0-rc2@bincrafters/stable to remote 'upload_repo'
Compressing recipe sources... Recipe is up to date, upload skipped
Uploading package 1/1: 13b48d56cd5d7dff22684d58482d685be985d688 to 'upload_repo'
Compressing package...
[==================================================]
Traceback (most recent call last):
File "build.py", line 11, in <module>
builder.run()
File "/Users/travis/.pyenv/versions/conan/lib/python2.7/site-packages/cpt/packager.py", line 439, in run
self.run_builds(base_profile_name=base_profile_name)
File "/Users/travis/.pyenv/versions/conan/lib/python2.7/site-packages/cpt/packager.py", line 515, in run_builds
r.run()
File "/Users/travis/.pyenv/versions/conan/lib/python2.7/site-packages/cpt/runner.py", line 98, in run
self._upload, package_id)
File "/Users/travis/.pyenv/versions/conan/lib/python2.7/site-packages/cpt/uploader.py", line 43, in upload_packages
retry=int(self._upload_retry))
File "/Users/travis/.pyenv/versions/conan/lib/python2.7/site-packages/conans/client/conan_api.py", line 87, in wrapper
return f(*args, **kwargs)
File "/Users/travis/.pyenv/versions/conan/lib/python2.7/site-packages/conans/client/conan_api.py", line 819, in upload
retry_wait, integrity_check, policy, remote_name, query=query)
File "/Users/travis/.pyenv/versions/conan/lib/python2.7/site-packages/conans/client/cmd/uploader.py", line 70, in upload
integrity_check, policy, remote_name, recorder)
File "/Users/travis/.pyenv/versions/conan/lib/python2.7/site-packages/conans/client/cmd/uploader.py", line 126, in _upload
integrity_check, policy, p_remote)
File "/Users/travis/.pyenv/versions/conan/lib/python2.7/site-packages/conans/client/cmd/uploader.py", line 170, in _upload_package
integrity_check, policy)
File "/Users/travis/.pyenv/versions/conan/lib/python2.7/site-packages/conans/client/remote_manager.py", line 151, in upload_package
the_files, retry, retry_wait, policy)
File "/Users/travis/.pyenv/versions/conan/lib/python2.7/site-packages/conans/client/remote_manager.py", line 332, in _call_remote
raise ConanException(exc)
conans.errors.ConanException: 'decimal' codec can't encode characters in position 0-5408: invalid decimal Unicode string
The command "./.ci/run.sh" exited with 1.
I tried to upload for 3 times, same result.
The full log is here: https://travis-ci.com/bincrafters/conan-log4cplus/jobs/172072571#L1076
The point is, I’ve never seen this before and the error is for one package only. Could it be an error from Bintray? Also, I’m using python 2.7 for OSX jobs.
Environment:
Conan Version: 1.11.2 Configuration:
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=apple-clang
compiler.libcxx=libc++
compiler.version=9.1
os=Macos
os_build=Macos
[options]
log4cplus:shared=True
[build_requires]
[env]
- I’ve read the CONTRIBUTING guide.
- I’ve specified the Conan version, operating system version and any tool that can be relevant.
- I’ve explained the steps to reproduce the error or the motivation/use case of the question/suggestion.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 16 (16 by maintainers)
But then we would have a corrupted package without knowing it. I’m not sure if it is important enough or not (also thinking about package revisions), but I don’t feel comfortable ignoring an error. I’ve proposed a try/except wrap around the
FileTreeManifest.loads
function to throw a more meaningful function (#4415). Feel free to criticize it 😄Seems this is the same issue experienced with corruption of packages and conaninfo.txt files full of 0’s