-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/adding pipenv #12
Feat/adding pipenv #12
Conversation
I will review, test, and merge this and the other PR with the GH action modifications tomorrow night (EDT) |
Sorry for the late response - it's a busy week. So..... I followed the instructions in the README and I get this error when running $ pipenv install -d
/usr/local/lib/python3.10/dist-packages/pkg_resources/__init__.py:123: PkgResourcesDeprecationWarning: 1.16.0-unknown is an invalid version and will not be supported in a future release
warnings.warn(
/usr/local/lib/python3.10/dist-packages/pkg_resources/__init__.py:123: PkgResourcesDeprecationWarning: 0.1.43ubuntu1 is an invalid version and will not be supported in a future release
warnings.warn(
Creating a virtualenv for this project...
Pipfile: /home/kiro/Code/JupiterBroadcasting/show-scraper/Pipfile
Using /usr/bin/python3 (3.10.4) to create virtualenv...
⠇ Creating virtual environment...created virtual environment CPython3.10.4.final.0-64 in 210ms
creator CPython3Posix(dest=/home/kiro/.local/share/virtualenvs/show-scraper-Nm7Q6D-6, clear=False, no_vcs_ignore=False, global=False)
seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/home/kiro/.local/share/virtualenv)
added seed packages: pip==22.1.2, setuptools==62.6.0, wheel==0.37.1
activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator
✔ Successfully created virtual environment!
Traceback (most recent call last):
File "/home/kiro/.local/bin/pipenv", line 8, in <module>
sys.exit(cli())
File "/home/kiro/.local/lib/python3.10/site-packages/pipenv/vendor/click/core.py", line 1128, in __call__
return self.main(*args, **kwargs)
File "/home/kiro/.local/lib/python3.10/site-packages/pipenv/cli/options.py", line 56, in main
return super().main(*args, **kwargs, windows_expand_args=False)
File "/home/kiro/.local/lib/python3.10/site-packages/pipenv/vendor/click/core.py", line 1053, in main
rv = self.invoke(ctx)
File "/home/kiro/.local/lib/python3.10/site-packages/pipenv/vendor/click/core.py", line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/kiro/.local/lib/python3.10/site-packages/pipenv/vendor/click/core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/kiro/.local/lib/python3.10/site-packages/pipenv/vendor/click/core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "/home/kiro/.local/lib/python3.10/site-packages/pipenv/vendor/click/decorators.py", line 84, in new_func
return ctx.invoke(f, obj, *args, **kwargs)
File "/home/kiro/.local/lib/python3.10/site-packages/pipenv/vendor/click/core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "/home/kiro/.local/lib/python3.10/site-packages/pipenv/cli/command.py", line 222, in install
do_install(
File "/home/kiro/.local/lib/python3.10/site-packages/pipenv/core.py", line 1964, in do_install
ensure_project(
File "/home/kiro/.local/lib/python3.10/site-packages/pipenv/core.py", line 555, in ensure_project
ensure_virtualenv(
File "/home/kiro/.local/lib/python3.10/site-packages/pipenv/core.py", line 488, in ensure_virtualenv
do_create_virtualenv(
File "/home/kiro/.local/lib/python3.10/site-packages/pipenv/core.py", line 1015, in do_create_virtualenv
project._environment = Environment(
File "/home/kiro/.local/lib/python3.10/site-packages/pipenv/environment.py", line 72, in __init__
self._base_paths = self.get_paths()
File "/home/kiro/.local/lib/python3.10/site-packages/pipenv/environment.py", line 394, in get_paths
c = subprocess_run(command)
File "/home/kiro/.local/lib/python3.10/site-packages/pipenv/utils/processes.py", line 75, in subprocess_run
return subprocess.run(
File "/usr/lib/python3.10/subprocess.py", line 501, in run
with Popen(*popenargs, **kwargs) as process:
File "/usr/lib/python3.10/subprocess.py", line 966, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.10/subprocess.py", line 1842, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: '/home/kiro/.local/share/virtualenvs/show-scraper-Nm7Q6D-6/bin/python' Some more info that might be useful: $ tree /home/kiro/.local/share/virtualenvs/
/home/kiro/.local/share/virtualenvs/
└── show-scraper-Nm7Q6D-6
├── lib
│ └── python3.10
├── local
│ ├── bin
│ │ ├── activate
│ │ ├── activate.csh
│ │ ├── activate.fish
│ │ ├── activate.nu
│ │ ├── activate.ps1
│ │ ├── activate_this.py
│ │ ├── deactivate.nu
│ │ ├── pip
│ │ ├── pip3
│ │ ├── pip-3.10
│ │ ├── pip3.10
│ │ ├── python -> /usr/bin/python3
│ │ ├── python3 -> python
│ │ ├── python3.10 -> python
│ │ ├── wheel
│ │ ├── wheel3
│ │ ├── wheel-3.10
│ │ └── wheel3.10
...
...
... Looks like the binaries are under the $ python --version
Python 3.10.4 pipenv --version
/usr/local/lib/python3.10/dist-packages/pkg_resources/__init__.py:123: PkgResourcesDeprecationWarning: 1.16.0-unknown is an invalid version and will not be supported in a future release
warnings.warn(
/usr/local/lib/python3.10/dist-packages/pkg_resources/__init__.py:123: PkgResourcesDeprecationWarning: 0.1.43ubuntu1 is an invalid version and will not be supported in a future release
warnings.warn(
pipenv, version 2022.7.4 Any idea what's going on? |
No problem, I feel you on that 😅 That's very odd...I've installed pipenv env on windows and it's worked for me... 🤔 So...the only think that I can think of (that's different) is that I think you've installed
Also, can you run |
Don't remember installing anything like that. I'm on Ubuntu 22.04, isn't python3 been default for a few years now? Same error with the > pip -V
pip 22.1.2 from /usr/local/lib/python3.10/dist-packages/pip (python 3.10)
> pip3 -V
pip 22.1.2 from /usr/local/lib/python3.10/dist-packages/pip (python 3.10)
> python3 -V
Python 3.10.4 |
Ya, but it normally shows as a this for me when I run python: $ python
Command 'python' not found, did you mean:
command 'python3' from deb python3
command 'python' from deb python-is-python3 Your pip output is very interesting... Normally When I run those commands I get this: $ pip -V
pip 22.0.2 from /usr/lib/python3/dist-packages/pip (python 3.10)
$ pip3 -V
pip 22.0.2 from /usr/lib/python3/dist-packages/pip (python 3.10)
$ python3 -V
Python 3.10.4 which is what I was expecting from your system... Can you run the following command so we can compare yours to mine: # for i in pip python pip3 python3 ; do command -v "${i}" ; done
/usr/bin/pip
/usr/bin/pip3
/usr/bin/python3 (might be slightly different, I ran mine as root because I had local overrides for my user profile for pip & pip3) |
I might've made a symlink long time ago:
If I want to reset everything to defaults.. any idea how I'd go about it? |
Ya, later tonight I can also commit a |
Nah that sounds too much and unnecessary:)) |
Lol, my B I didn't see your comment before I pushed this morning (got tied up trying to do V4V last night for a JB episode 😅). I'm just now catching up on issue comments 🙃 Also, ya no problem take your time, it's more of a nice to have than a need 🙂 |
Added the Pipenv files, and it seems like the packages updated to their latest version but I didn't have any errors when I ran things (seemed like almost all were just minor version updates (pyyaml bumped to 6.0 vs 5.x).
I also modified the Dockerfile and the documentation to reflect the workflow for using pipenv. Right now we don't have development dependencies, don't know what your preference is, but in the future I'm sure it'll be important.
Let me know if you want any modifications 🙂
closes #11