robbrad / UKBinCollectionData

UK Council Bin Collection Data Parser Outputting Bin Data as a JSON
MIT License
114 stars 75 forks source link

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

Open tm-kn opened 4 months ago

tm-kn commented 4 months ago

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
dp247 commented 4 months ago

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

tm-kn commented 4 months ago

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.

robbrad commented 1 week ago

@tm-kn is this fixed?