You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I searched open reports and couldn't find a duplicate
What happened?
When trying to build and upload pre-releases of my noarch python package ada-py on linux to my personal conda channel I keep seeing a repeating failure related to os.getcwd() in the conda_package_handling/interface.py. The same issue occurs when running locally on my WSL2 linux and on github actions. However, the issue disappears when adding the --no-build-id flag. There is no issue when running this on windows.
Before trying the --no-build-id option I tried a lot of different things (but without success):
Changed the build and output directories.
Switched between conda mambabuild and conda build
Tried different pre-release tags and without; 0.0.38, 0.0.38a1 and 0.0.38alpha.1 which all produces the same issue
Tried with --build-id-pat '' instead of --no-build-id.
Tried a different version of conda-build 3.23.3 instead of 3.23.4
As mentioned, I did finally get around the os.getcwd() issue by adding the --no-build-id flag, so my pipeline works for now. However I noticed in the docs that --no-build-id is deprecated and I should use --build-id-pat instead. Any suggestions of how I should use --build-id-pat to get the same effect as --no-build-id?
Any help with this would be greatly appreciated!
Let me know if you need more information and I'll happily oblige,
Best Regards
Kristoffer
Conda Info
active environment : base
active env location : /home/krande/mambaforge
shell level : 1
user config file : /home/krande/.condarc
populated config files : /home/krande/mambaforge/.condarc
conda version : 22.11.1
conda-build version : not installed
python version : 3.10.8.final.0
virtual packages : __archspec=1=x86_64
__glibc=2.35=0
__linux=5.10.16.3=0
__unix=0=0
base environment : /home/krande/mambaforge (writable)
conda av data dir : /home/krande/mambaforge/etc/conda
conda av metadata url : None
channel URLs : https://conda.anaconda.org/conda-forge/linux-64
https://conda.anaconda.org/conda-forge/noarch
package cache : /home/krande/mambaforge/pkgs
/home/krande/.conda/pkgs
envs directories : /home/krande/mambaforge/envs
/home/krande/.conda/envs
platform : linux-64
user-agent : conda/22.11.1 requests/2.28.2 CPython/3.10.8 Linux/5.10.16.3-microsoft-standard-WSL2 ubuntu/22.04.1 glibc/2.35
UID:GID : 1000:1000
netrc file : None
offline mode : False
Packaging ada-py
INFO:conda_build.build:Packaging ada-py-0.0.38alpha.6-core_h37e0f91_100
Packaging ada-py-0.0.38alpha.6-core_h37e0f91_100
INFO:conda_build.utils:Renaming work directory '/tmp/conda_build/ada-py-0.0.38alpha.6_1679648175456/work' to '/tmp/conda_build/ada-py-0.0.38alpha.6_1679648175456/work_moved_ada-py-0.0.38alpha.6-core_h37e0f91_100_linux-64_main_build_loop'
number of files: 366
INFO:conda_build.utils:shutil.move(work)=/tmp/conda_build/ada-py-0.0.38alpha.6_1679648175456/work, dest=/tmp/conda_build/ada-py-0.0.38alpha.6_1679648175456/work_moved_ada-py-0.0.38alpha.6-core_h37e0f91_100_linux-64_main_build_loop)
Fixing permissions
INFO :: Time taken to mark (prefix)
0 replacements in 0 files was 0.03 seconds
Renaming work directory '/tmp/conda_build/ada-py-0.0.38alpha.6_1679648175456/work' to '/tmp/conda_build/ada-py-0.0.38alpha.6_1679648175456/work_moved_ada-py-0.0.38alpha.6-core_h37e0f91_100_linux-64_main_build_loop'
shutil.move(work)=/tmp/conda_build/ada-py-0.0.38alpha.6_1679648175456/work, dest=/tmp/conda_build/ada-py-0.0.38alpha.6_1679648175456/work_moved_ada-py-0.0.38alpha.6-core_h37e0f91_100_linux-64_main_build_loop)
Traceback (most recent call last):
File "/home/runner/micromamba-root/envs/conda-build/bin/anaconda", line 10, in <module>
sys.exit(main())
^^^^^^
File "/home/runner/micromamba-root/envs/conda-build/lib/python3.11/site-packages/binstar_client/scripts/cli.py", line 154, in main
binstar_main(command_module, args, _exit,
File "/home/runner/micromamba-root/envs/conda-build/lib/python3.11/site-packages/binstar_client/scripts/cli.py", line 123, in binstar_main
add_subparser_modules(parser, sub_command_module, 'conda_server.subcommand')
File "/home/runner/micromamba-root/envs/conda-build/lib/python3.11/site-packages/clyent/__init__.py", line 133, in add_subparser_modules
for command_module in get_sub_commands(module):
File "/home/runner/micromamba-root/envs/conda-build/lib/python3.11/site-packages/clyent/__init__.py", line 122, in get_sub_commands
this_module = __import__(module.__package__ or module.__name__, fromlist=names)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/micromamba-root/envs/conda-build/lib/python3.11/site-packages/binstar_client/commands/update.py", line 17, in <module>
from binstar_client.utils.detect import detect_package_type, get_attrs
File "/home/runner/micromamba-root/envs/conda-build/lib/python3.11/site-packages/binstar_client/utils/detect.py", line 15, in <module>
from binstar_client.inspect_package.conda import inspect_conda_package
File "/home/runner/micromamba-root/envs/conda-build/lib/python3.11/site-packages/binstar_client/inspect_package/conda.py", line 12, in <module>
from conda_package_handling.api import extract
File "/home/runner/micromamba-root/envs/conda-build/lib/python3.11/site-packages/conda_package_handling/api.py", line 10, in <module>
from .interface import AbstractBaseFormat
File "/home/runner/micromamba-root/envs/conda-build/lib/python3.11/site-packages/conda_package_handling/interface.py", line 5, in <module>
class AbstractBaseFormat(metaclass=abc.ABCMeta):
File "/home/runner/micromamba-root/envs/conda-build/lib/python3.11/site-packages/conda_package_handling/interface.py", line 18, in AbstractBaseFormat
def create(prefix, file_list, out_fn, out_folder=os.getcwd(), **kw): # pragma: no cover
^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory
And here is the output from a working job
Packaging ada-py
INFO:conda_build.build:Packaging ada-py-0.0.38alpha.7-core_h37e0f91_100
Packaging ada-py-0.0.38alpha.7-core_h37e0f91_100
INFO:conda_build.utils:Renaming work directory '/tmp/conda_build/work' to '/tmp/conda_build/work_moved_ada-py-0.0.38alpha.7-core_h37e0f91_100_linux-64_main_build_loop'
number of files: 366
INFO:conda_build.utils:shutil.move(work)=/tmp/conda_build/work, dest=/tmp/conda_build/work_moved_ada-py-0.0.38alpha.7-core_h37e0f91_100_linux-64_main_build_loop)
Fixing permissions
INFO :: Time taken to mark (prefix)
0 replacements in 0 files was 0.02 seconds
Renaming work directory '/tmp/conda_build/work' to '/tmp/conda_build/work_moved_ada-py-0.0.38alpha.7-core_h37e0f91_100_linux-64_main_build_loop'
shutil.move(work)=/tmp/conda_build/work, dest=/tmp/conda_build/work_moved_ada-py-0.0.38alpha.7-core_h37e0f91_100_linux-64_main_build_loop)
Using Anaconda API: https://api.anaconda.org/
Using "krande" as upload username
Processing '/tmp/conda_output/noarch/ada-py-0.0.38alpha.7-core_h37e0f91_100.tar.bz2'
Detecting file type...
File type is "Conda"
Extracting conda attributes for upload
Creating package "ada-py"
Creating release "0.0.38alpha.7"
Uploading file "krande/ada-py/0.0.38alpha.7/noarch/ada-py-0.0.38alpha.7-core_h37e0f91_100.tar.bz2"
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed automatically if no further activity occurs.
If you would like this issue to remain open please:
Verify that you can still reproduce the issue at hand
Comment that the issue is still reproducible and include:
- What OS and version you reproduced the issue on
- What steps you followed to reproduce the issue
NOTE: If this issue was closed prematurely, please leave a comment.
Checklist
What happened?
When trying to build and upload pre-releases of my noarch python package ada-py on linux to my personal conda channel I keep seeing a repeating failure related to
os.getcwd()
in theconda_package_handling/interface.py
. The same issue occurs when running locally on my WSL2 linux and on github actions. However, the issue disappears when adding the--no-build-id
flag. There is no issue when running this on windows.Before trying the
--no-build-id
option I tried a lot of different things (but without success):0.0.38
,0.0.38a1
and0.0.38alpha.1
which all produces the same issue--build-id-pat ''
instead of--no-build-id
.3.23.3
instead of3.23.4
As mentioned, I did finally get around the os.getcwd() issue by adding the
--no-build-id
flag, so my pipeline works for now. However I noticed in the docs that--no-build-id
is deprecated and I should use--build-id-pat
instead. Any suggestions of how I should use--build-id-pat
to get the same effect as--no-build-id
?Any help with this would be greatly appreciated!
Let me know if you need more information and I'll happily oblige,
Best Regards
Kristoffer
Conda Info
Conda Config
Conda list
Additional Context
Here are a few samples from my github action runs:
A failing run without --no-build-id -> here
A working run with --no-build-id -> here
Here are the two main files for my ci workflow
Here is the output from the failing job
And here is the output from a working job
The text was updated successfully, but these errors were encountered: