Skip to content
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

version for Python 3? #5

Closed
annajoiner opened this issue Dec 19, 2022 · 2 comments
Closed

version for Python 3? #5

annajoiner opened this issue Dec 19, 2022 · 2 comments

Comments

@annajoiner
Copy link

On a Debian machine with "python -V" and "python3 -V" both reporting Python 3.9.2, the command "pip install pgsrip" produces the error "bash: cd: too many arguments." I can install with "sudo pip install pgsrip," although this produces warnings that running pip as root user can result in broken permissions. After thus installing pgsrip, the command "pgsrip file.mks" gives the error:

File "/usr/local/bin/pgsrip", line 5, in
from pgsrip.cli import pgsrip
ModuleNotFoundError: No module named 'pgsrip.cli'

The command "sudo pgsrip file.mks" does work, although it is necessary to run chown on the output file, and this isn't really what one would prefer.

Is there a simple way to install pgsrip from source with Python 3.9.2?

@ratoaq2
Copy link
Owner

ratoaq2 commented Dec 31, 2022

I'm not sure if this is an issue with pgsrip. It seems an environment issue.

I deploy pgsrip in a docker container which is a debian image. Until yesterday that image was based on python 3.9:

FROM python:3.9-slim

Today I released a new version with a minor fix in pgsrip and updated dependencies in docker (now using python 3.11). And I always used the pip install in the docker image to install the package ( https://github.com/ratoaq2/pgsrip/blob/master/Dockerfile#L63 )

@imaadh imaadh mentioned this issue Feb 4, 2023
@ratoaq2
Copy link
Owner

ratoaq2 commented Feb 12, 2023

Closing due to inactivity / no reply

@ratoaq2 ratoaq2 closed this as completed Feb 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants