[
https://issues.apache.org/jira/browse/CASSANDRA-19183?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17796571#comment-17796571
]
Berenguer Blasi commented on CASSANDRA-19183:
---------------------------------------------
It reproduces even locally for me:
{noformat}
./cassandra-cqlsh-tests.sh
mktemp: failed to create directory via template ‘/run-python-dtest.XXXXXX’:
Permission denied
./cassandra-cqlsh-tests.sh: line 62: virtualenv-clone: command not found
created virtual environment CPython3.8.10.final.0-64 in 84ms
creator CPython3Posix(dest=/home/bereng/work/repos/bdpWS/19183/build/venv,
clear=False, no_vcs_ignore=False, global=False)
seeder FromAppData(download=False, pip=bundle, setuptools=bundle,
wheel=bundle, via=copy, app_data_dir=/home/bereng/.local/share/virtualenv)
added seed packages: Cython==0.29.36, PyYAML==6.0.1, click==8.1.7,
coverage==7.3.2, exceptiongroup==1.2.0, geomet==0.2.1.post1, iniconfig==2.0.0,
packaging==23.2, pip==23.3.1, pluggy==1.3.0, psutil==5.9.6, pytest==7.4.3,
setuptools==68.2.2, six==1.16.0, tomli==2.0.1, wcwidth==0.2.12, wheel==0.41.2
activators
BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator
Obtaining cassandra-driver from
git+https://github.com/datastax/python-driver.git@cassandra-test#egg=cassandra-driver
(from -r /home/bereng/work/repos/bdpWS/19183/pylib/requirements.txt (line 20))
Updating ./build/venv/src/cassandra-driver clone (to revision cassandra-test)
Running command git fetch -q --tags
Running command git reset --hard -q e075df0775954876ac49fdbedf30c1c7fab15762
Preparing metadata (setup.py) ... done
Obtaining ccm from
git+https://github.com/riptano/ccm.git@cassandra-test#egg=ccm (from -r
/home/bereng/work/repos/bdpWS/19183/pylib/requirements.txt (line 22))
Updating ./build/venv/src/ccm clone (to revision cassandra-test)
Running command git fetch -q --tags
Running command git reset --hard -q c78f622ba499becfd6c03f4667a08931c825b1f6
Preparing metadata (setup.py) ... done
Requirement already satisfied: coverage in
./build/venv/lib/python3.8/site-packages (from -r
/home/bereng/work/repos/bdpWS/19183/pylib/requirements.txt (line 23)) (7.3.2)
Requirement already satisfied: pytest in
./build/venv/lib/python3.8/site-packages (from -r
/home/bereng/work/repos/bdpWS/19183/pylib/requirements.txt (line 24)) (7.4.3)
Requirement already satisfied: wcwidth in
./build/venv/lib/python3.8/site-packages (from -r
/home/bereng/work/repos/bdpWS/19183/pylib/requirements.txt (line 25)) (0.2.12)
Requirement already satisfied: six>=1.9 in
./build/venv/lib/python3.8/site-packages (from cassandra-driver->-r
/home/bereng/work/repos/bdpWS/19183/pylib/requirements.txt (line 20)) (1.16.0)
Requirement already satisfied: geomet<0.3,>=0.1 in
./build/venv/lib/python3.8/site-packages (from cassandra-driver->-r
/home/bereng/work/repos/bdpWS/19183/pylib/requirements.txt (line 20))
(0.2.1.post1)
Requirement already satisfied: pyYaml in
./build/venv/lib/python3.8/site-packages (from ccm->-r
/home/bereng/work/repos/bdpWS/19183/pylib/requirements.txt (line 22)) (6.0.1)
Requirement already satisfied: psutil in
./build/venv/lib/python3.8/site-packages (from ccm->-r
/home/bereng/work/repos/bdpWS/19183/pylib/requirements.txt (line 22)) (5.9.6)
Requirement already satisfied: iniconfig in
./build/venv/lib/python3.8/site-packages (from pytest->-r
/home/bereng/work/repos/bdpWS/19183/pylib/requirements.txt (line 24)) (2.0.0)
Requirement already satisfied: packaging in
./build/venv/lib/python3.8/site-packages (from pytest->-r
/home/bereng/work/repos/bdpWS/19183/pylib/requirements.txt (line 24)) (23.2)
Requirement already satisfied: pluggy<2.0,>=0.12 in
./build/venv/lib/python3.8/site-packages (from pytest->-r
/home/bereng/work/repos/bdpWS/19183/pylib/requirements.txt (line 24)) (1.3.0)
Requirement already satisfied: exceptiongroup>=1.0.0rc8 in
./build/venv/lib/python3.8/site-packages (from pytest->-r
/home/bereng/work/repos/bdpWS/19183/pylib/requirements.txt (line 24)) (1.2.0)
Requirement already satisfied: tomli>=1.0.0 in
./build/venv/lib/python3.8/site-packages (from pytest->-r
/home/bereng/work/repos/bdpWS/19183/pylib/requirements.txt (line 24)) (2.0.1)
Requirement already satisfied: click in
./build/venv/lib/python3.8/site-packages (from
geomet<0.3,>=0.1->cassandra-driver->-r
/home/bereng/work/repos/bdpWS/19183/pylib/requirements.txt (line 20)) (8.1.7)
Installing collected packages: ccm, cassandra-driver
Attempting uninstall: ccm
Found existing installation: ccm 3.1.6.dev193
Uninstalling ccm-3.1.6.dev193:
Successfully uninstalled ccm-3.1.6.dev193
Running setup.py develop for ccm
Attempting uninstall: cassandra-driver
Found existing installation: cassandra-driver 3.24.0
Uninstalling cassandra-driver-3.24.0:
Successfully uninstalled cassandra-driver-3.24.0
Running setup.py develop for cassandra-driver
Successfully installed cassandra-driver-3.24.0 ccm-3.1.6.dev193
-e
git+https://github.com/datastax/python-driver.git@e075df0775954876ac49fdbedf30c1c7fab15762#egg=cassandra_driver
-e
git+https://github.com/riptano/ccm.git@514e3d828a0593fa31c65aff731a8c1eeb87c4e1#egg=ccm
click==8.1.7
coverage==7.3.2
Cython==0.29.36
exceptiongroup==1.2.0
geomet==0.2.1.post1
iniconfig==2.0.0
packaging==23.2
pluggy==1.3.0
psutil==5.9.6
pytest==7.4.3
PyYAML==6.0.1
six==1.16.0
tomli==2.0.1
wcwidth==0.2.12
/home/bereng/work/repos/bdpWS/19183/build/venv/bin/ccm:4: DeprecationWarning:
pkg_resources is deprecated as an API. See
https://setuptools.pypa.io/en/latest/pkg_resources.html
__import__('pkg_resources').require('ccm==3.1.6.dev193')
/home/bereng/work/repos/bdpWS/19183/build/venv/src/ccm/ccmlib/remote.py:188:
SyntaxWarning: "is not" with a literal. Did you mean "!="?
if not profile is None and not profile is "None":
Traceback (most recent call last):
File "/home/bereng/work/repos/bdpWS/19183/build/venv/bin/ccm", line 7, in
<module>
exec(compile(f.read(), __file__, 'exec'))
File "/home/bereng/work/repos/bdpWS/19183/build/venv/src/ccm/ccm", line 11,
in <module>
from ccmlib.cmds import cluster_cmds, command, node_cmds
File
"/home/bereng/work/repos/bdpWS/19183/build/venv/src/ccm/ccmlib/cmds/cluster_cmds.py",
line 67, in <module>
class ClusterCreateCmd(Cmd):
File
"/home/bereng/work/repos/bdpWS/19183/build/venv/src/ccm/ccmlib/cmds/cluster_cmds.py",
line 77, in ClusterCreateCmd
(["--dse-credentials"], {'type': "string", 'dest': "dse_credentials_file",
'help': "An ini-style config file containing the dse_username and dse_password
under a dse_credentials section. [default to {}/.dse.ini if it
exists]".format(common.get_default_path_display_name()), 'default': None}),
File
"/home/bereng/work/repos/bdpWS/19183/build/venv/src/ccm/ccmlib/common.py", line
265, in get_default_path_display_name
default_path = get_default_path().lower()
File
"/home/bereng/work/repos/bdpWS/19183/build/venv/src/ccm/ccmlib/common.py", line
260, in get_default_path
os.mkdir(default_path)
PermissionError: [Errno 13] Permission denied: '/.ccm'
/home/bereng/work/repos/bdpWS/19183/build/venv/bin/ccm:4: DeprecationWarning:
pkg_resources is deprecated as an API. See
https://setuptools.pypa.io/en/latest/pkg_resources.html
__import__('pkg_resources').require('ccm==3.1.6.dev193')
Traceback (most recent call last):
File "/home/bereng/work/repos/bdpWS/19183/build/venv/bin/ccm", line 7, in
<module>
exec(compile(f.read(), __file__, 'exec'))
File "/home/bereng/work/repos/bdpWS/19183/build/venv/src/ccm/ccm", line 11,
in <module>
from ccmlib.cmds import cluster_cmds, command, node_cmds
File
"/home/bereng/work/repos/bdpWS/19183/build/venv/src/ccm/ccmlib/cmds/cluster_cmds.py",
line 67, in <module>
class ClusterCreateCmd(Cmd):
File
"/home/bereng/work/repos/bdpWS/19183/build/venv/src/ccm/ccmlib/cmds/cluster_cmds.py",
line 77, in ClusterCreateCmd
(["--dse-credentials"], {'type': "string", 'dest': "dse_credentials_file",
'help': "An ini-style config file containing the dse_username and dse_password
under a dse_credentials section. [default to {}/.dse.ini if it
exists]".format(common.get_default_path_display_name()), 'default': None}),
File
"/home/bereng/work/repos/bdpWS/19183/build/venv/src/ccm/ccmlib/common.py", line
265, in get_default_path_display_name
default_path = get_default_path().lower()
File
"/home/bereng/work/repos/bdpWS/19183/build/venv/src/ccm/ccmlib/common.py", line
260, in get_default_path
os.mkdir(default_path)
PermissionError: [Errno 13] Permission denied: '/.ccm'
{noformat}
Let me look into it a bit more...
> Fix cqlshlib cython test
> ------------------------
>
> Key: CASSANDRA-19183
> URL: https://issues.apache.org/jira/browse/CASSANDRA-19183
> Project: Cassandra
> Issue Type: Bug
> Components: Tool/cqlsh
> Reporter: Brandon Williams
> Priority: Normal
> Fix For: 5.0-beta, 5.x
>
>
> This is failing on
> [trunk|https://app.circleci.com/pipelines/github/driftx/cassandra/1405/workflows/ff7b5121-b6df-4290-8d63-bcc6d6385724/jobs/65554]
> and
> [5.0|https://app.circleci.com/pipelines/github/driftx/cassandra/1406/workflows/f7f2b35c-1233-43d7-a942-218f1712add4/jobs/65649]:
> {quote}
> PermissionError: [Errno 13] Permission denied: '/.ccm'
> {quote}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]