Oct-22-2021, 11:14 PM
Good Friday evening to you all Pythoners. I believe this is my first post here in your forums and hope this is the correct place for it.
I'm using Jupyter notebook in VSCode and am trying to import the delorean module.
I've added it to a requirements.txt file ->
and install it from the terminal thus ->
pip install -r requirements.txt
It starts to build everything fine and then I get the following error message:
BUT, after that it says that delorean was installed :
When I try to import it I get the ModuleNotFoundError that I'm sure you're all familiar with and won't repeat it.
Can someone give me a clue to what's happening and more importantly - how to fix it?? Thank you
PS When I had delorean installed in another directory, in a different venv it installed without issue, and I still got the module not found error when I tried to import it. checking the install it told me all requirements were already satisfied but it wouldn't import. That's when I deactivated and deleted that venv, made it in another directory and now get that long error message.
I'm using Jupyter notebook in VSCode and am trying to import the delorean module.
I've added it to a requirements.txt file ->
Quote:delorean==1.0.0
requests==2.22.0
and install it from the terminal thus ->
pip install -r requirements.txt
It starts to build everything fine and then I get the following error message:
Quote:ERROR: Command errored out with exit status 1:
command: /home/technodiver/CustomScripts/python/webscraping/pythonAutomation/chapt1/.venv/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-cuxxdi7p/delorean/setup.py'"'"'; __file__='"'"'/tmp/pip-install-cuxxdi7p/delorean/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-siiztfye
cwd: /tmp/pip-install-cuxxdi7p/delorean/
Complete output (6 lines):
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help
error: invalid command 'bdist_wheel'
----------------------------------------
ERROR: Failed building wheel for delorean
BUT, after that it says that delorean was installed :
Quote: Running setup.py clean for delorean
Failed to build delorean
Installing collected packages: pytz, babel, humanize, six, python-dateutil, backports.zoneinfo, tzdata, pytz-deprecation-shim, tzlocal, delorean, chardet, idna, urllib3, certifi, requests
Running setup.py install for delorean ... done
Successfully installed babel-2.9.1 backports.zoneinfo-0.2.1 certifi-2021.10.8 chardet-3.0.4 delorean-1.0.0 humanize-3.12.0 idna-2.8 python-dateutil-2.8.2 pytz-2021.3 pytz-deprecation-shim-0.1.0.post0 requests-2.22.0 six-1.16.0 tzdata-2021.4 tzlocal-4.0.1 urllib3-1.25.11
When I try to import it I get the ModuleNotFoundError that I'm sure you're all familiar with and won't repeat it.
Can someone give me a clue to what's happening and more importantly - how to fix it?? Thank you
PS When I had delorean installed in another directory, in a different venv it installed without issue, and I still got the module not found error when I tried to import it. checking the install it told me all requirements were already satisfied but it wouldn't import. That's when I deactivated and deleted that venv, made it in another directory and now get that long error message.