UKBinCollectionData icon indicating copy to clipboard operation
UKBinCollectionData copied to clipboard

Running the script returns `TypeError: 'module' object is not callable`

Open tm-kn opened this issue 1 year ago • 3 comments

The script path in pyproject.toml is incorrect.

Steps to reproduce the issue

python3 -m venv venv 
. venv/bin/activate pip install https://github.com/robbrad/UKBinCollectionData/archive/refs/heads/master.zip
uk_bin_collection

That returns an error:

Traceback (most recent call last):
  File "/Users/tomasz/tmp/venv/bin/uk_bin_collection", line 8, in <module>
    sys.exit(collect_data())
             ^^^^^^^^^^^^^^
TypeError: 'module' object is not callable

tm-kn avatar Mar 23 '24 07:03 tm-kn

Excuse my ignorance but, what exactly does the command do?

dp247 avatar Mar 23 '24 23:03 dp247

Excuse my ignorance but, what exactly does the command do?

I am assuming the uk_bin_collection is supposed to call the collect_data.py script. If you install the package, it creates a script in your bin directory.

tm-kn avatar Mar 24 '24 16:03 tm-kn

@tm-kn is this fixed?

robbrad avatar Aug 08 '24 07:08 robbrad