question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeError: sequence item 0: expected str instance, NoneType found on running python setup.py java on source

See original GitHub issue
$ git clone https://github.com/nils-braun/dask-sql.git

$ cd dask-sql

$ pytest tests
ERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...]
pytest: error: unrecognized arguments: --cov --cov-config=.coveragerc tests
  inifile: /mnt/d/Programs/dask/dask-sql/pytest.ini
  rootdir: /mnt/d/Programs/dask/dask-sql


$ python setup.py java
running java
Traceback (most recent call last):
  File "setup.py", line 93, in <module>
    command_options={"build_sphinx": {"source_dir": ("setup.py", "docs"),}},
  File "/home/saulo/anaconda3/lib/python3.7/site-packages/setuptools/__init__.py", line 165, in setup
    return distutils.core.setup(**attrs)
  File "/home/saulo/anaconda3/lib/python3.7/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/home/saulo/anaconda3/lib/python3.7/distutils/dist.py", line 966, in run_commands
    self.run_command(cmd)
  File "/home/saulo/anaconda3/lib/python3.7/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "setup.py", line 30, in run
    self.announce(f"Running command: {' '.join(command)}", level=distutils.log.INFO)
TypeError: sequence item 0: expected str instance, NoneType found

$ python dask-sql-test.py
Traceback (most recent call last):
  File "dask-sql-test.py", line 1, in <module>
    from dask_sql import Context
  File "/mnt/d/Programs/dask/dask-sql/dask_sql/__init__.py", line 1, in <module>
    from .context import Context
  File "/mnt/d/Programs/dask/dask-sql/dask_sql/context.py", line 9, in <module>
    from dask_sql.java import (
  File "/mnt/d/Programs/dask/dask-sql/dask_sql/java.py", line 88, in <module>
    DaskTable = com.dask.sql.schema.DaskTable
AttributeError: Java package 'com' has no attribute 'dask'
$ python -V
Python 3.7.6
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.1 LTS
Release:        20.04
Codename:       focal
$ java -version
openjdk version "14.0.2" 2020-07-14
OpenJDK Runtime Environment (build 14.0.2+12-Ubuntu-120.04)
OpenJDK 64-Bit Server VM (build 14.0.2+12-Ubuntu-120.04, mixed mode, sharing)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:14

github_iconTop GitHub Comments

1reaction
sauloalcommented, Jan 31, 2021

After running pip install -e ".[dev]" works perfectly

$ python dask-sql-test.py
       name    id         x
0       Tim  1017  0.999988
1   Norbert   994  0.999949
0     Frank   983  0.999970
0    Oliver   990  0.999987
1       Dan   979  0.999991
0   Michael  1021  0.999992
0     Quinn  1012  0.999973
1    Xavier   986  0.999925
0   Charlie   961  0.999986
1     Alice  1003  0.999981
0    Ingrid  1030  0.999991
0     Zelda  1050  0.999923
0     Sarah  1084  0.999987
0     Edith  1013  0.999989
0    Ursula  1015  0.999990
1  Patricia   974  0.999999
0     Jerry   994  0.999999
0     Wendy  1000  0.999990
0     Laura  1014  0.999986
0       Ray   975  0.999939
1    Hannah   940  0.999986
0    Yvonne  1033  0.999981
0       Bob   976  0.999978
0    George  1026  0.999993
1     Kevin   992  0.999981
0    Victor   983  0.999997
0.9999788188689883
1reaction
nils-brauncommented, Jan 31, 2021

The warnings are fine (its deprecations in the pandas <-> dask interface). Thank you so much for testing this all out. I will increase the minimal required pandas version to 1.1.0 (which works, I just tested). Thanks for testing 1.2.1 - I tested some time ago with 1.2.0 and it failed, but I will repeat the tests.

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: sequence item 0: expected str instance, NoneType ...
The program expects a string against AWS_ACCESS_KEY_ID but because it ... Due to this reason, you are getting an error that NoneType Found....
Read more >
Sequence item 0: expected str instance, NoneType found
The Python "TypeError: sequence item 0: expected str instance, NoneType found" occurs when we call the join() method with an iterable that contains...
Read more >
sequence item 0: expected str instance, list found Code Example
Answers related to “TypeError: sequence item 0: expected str instance, list found”. TypeError: expected string or bytes-like object · TypeError: expected ...
Read more >
Typeerror sequence item 0: expected str instance timestamp ...
Current Behavior Trying to create a new environment using Python 3.8 and a package from the rttools conda channel, sometimes results in a...
Read more >
TypeError: sequence item 0: expected string, NoneType found
@Navaneetdatta what command did you used for running this error? and did you activated the environment? ... @Navaneetdatta do you have a custom ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found