[ 
https://issues.apache.org/jira/browse/CASSANDRA-18642?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Stefan Miklosovic updated CASSANDRA-18642:
------------------------------------------
    Description: 
I am on the newest Amazon Linux Version 2023.1.20230629

When I install cassandra-4.1.2 from Yum repository, it starts fine but cqlsh 
prints this:

{code}
[ec2-user@ip-172-31-27-5 ~]$ cqlsh
Traceback (most recent call last):
  File "/usr/bin/cqlsh.py", line 148, in <module>
    from cqlshlib import cql3handling, pylexotron, sslhandling, cqlshhandling, 
authproviderhandling
ModuleNotFoundError: No module named 'cqlshlib'
{code}

If I change in /usr/bin/cqlsh.py

{code}
cqlshlibdir = os.path.join(CASSANDRA_PATH, 'pylib')
{code}

to this

{code}
cqlshlibdir = os.path.join('/usr/lib/python3.6', 'site-packages')
{code}

it works.

I am not sure if this is the correct way to handle that as not everybody has 
python3.6. There is also no symlink pointing to this. I guess we would need to 
find where packages are for Python we are going to use in cassandra.spec and 
then change cqlsh.py to reflect that?

  was:
I am on the newest Amazon Linux Version 2023.1.20230629

When I install cassandra-4.1.2 from Yum repository, it starts fine but cqlsh 
prints this:

{code}
[ec2-user@ip-172-31-27-5 ~]$ cqlsh
Traceback (most recent call last):
  File "/usr/bin/cqlsh.py", line 148, in <module>
    from cqlshlib import cql3handling, pylexotron, sslhandling, cqlshhandling, 
authproviderhandling
ModuleNotFoundError: No module named 'cqlshlib'
{code}

If I change in /usr/bin/cqlsh.py

{code}
cqlshlibdir = os.path.join(CASSANDRA_PATH, 'pylib')
{code}

to this

{code}
cqlshlibdir = os.path.join('/usr/lib/python3.6', 'site-packages')
{code}

it works.

I am not sure if this is the correct way to handle that as not everybody need 
to have python3.6. There is also no symlink pointing to this. I guess we would 
need to find where packages are for Python we are going to use in 
cassandra.spec and then change cqlsh.py to reflect that?


> cqlsh on Cassandra 4.1.2 fails on Amazon Linux 
> -----------------------------------------------
>
>                 Key: CASSANDRA-18642
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-18642
>             Project: Cassandra
>          Issue Type: Bug
>          Components: CQL/Interpreter, Packaging
>            Reporter: Stefan Miklosovic
>            Priority: Normal
>
> I am on the newest Amazon Linux Version 2023.1.20230629
> When I install cassandra-4.1.2 from Yum repository, it starts fine but cqlsh 
> prints this:
> {code}
> [ec2-user@ip-172-31-27-5 ~]$ cqlsh
> Traceback (most recent call last):
>   File "/usr/bin/cqlsh.py", line 148, in <module>
>     from cqlshlib import cql3handling, pylexotron, sslhandling, 
> cqlshhandling, authproviderhandling
> ModuleNotFoundError: No module named 'cqlshlib'
> {code}
> If I change in /usr/bin/cqlsh.py
> {code}
> cqlshlibdir = os.path.join(CASSANDRA_PATH, 'pylib')
> {code}
> to this
> {code}
> cqlshlibdir = os.path.join('/usr/lib/python3.6', 'site-packages')
> {code}
> it works.
> I am not sure if this is the correct way to handle that as not everybody has 
> python3.6. There is also no symlink pointing to this. I guess we would need 
> to find where packages are for Python we are going to use in cassandra.spec 
> and then change cqlsh.py to reflect that?



--
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