[ 
https://issues.apache.org/jira/browse/CASSANDRA-20478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17938579#comment-17938579
 ] 

Josh McKenzie commented on CASSANDRA-20478:
-------------------------------------------

DISCUSS thread on the dev ML about formally supporting CQLSH on linux, osx, and 
windows? Should be easy enough to add some tests to ensure we don't break that 
going forward and trivial to keep support going given the python env.

> CQLSH throws an exception loading .cqlshrc on Windows
> -----------------------------------------------------
>
>                 Key: CASSANDRA-20478
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-20478
>             Project: Apache Cassandra
>          Issue Type: Improvement
>            Reporter: Brad Schoening
>            Priority: Normal
>
> {quote}  File 
> "C:\JPMC\DEV\TMP\ds\tools\python3.11\latest\Lib\site-packages\cqlshlib\util.py",
>  line 125, in is_file_secure
>     uid = os.getuid()
>           ^^^^^^^^^
> AttributeError: module 'os' has no attribute 'getuid'. Did you mean: 'getpid'?
> {quote}
> The utility function is_file_secure() calls the function os.getuid() which is 
> only implemented on Unix/Linux.  See 
> [https://docs.python.org/3/library/os.html#os.getuid].
> This can be reproduced by:
>  * First, create an empty file on Windows 'foo'
> {quote}python
> >>> from cqlshlib.util import is_file_secure
> >>> is_file_secure('foo')
> {quote}
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to