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

local install fails due to setup.py #301

Open
InCogNiTo124 opened this issue Jul 29, 2022 · 3 comments
Open

local install fails due to setup.py #301

InCogNiTo124 opened this issue Jul 29, 2022 · 3 comments

Comments

@InCogNiTo124
Copy link
Contributor

Steps to reproduce:

1. git clone [email protected]:harelba/q.git
2. cd q/
3. pip install -e .
4. cd ~
5. q
Traceback...
...
... No module named 'bin'

The solution is line setup.py:L28:

'q = bin.q:run_standalone' -> 'q = q:run_standalone'

@harelba
Copy link
Owner

harelba commented Jul 31, 2022

Hi, there's some kind of misalignment there with relation to the fact of whether bin is a folder or a package.

I haven't solved it completely in the last release, as I was focusing on making the q standalone executable using pyoxidizer.

Can you describe the reasons you need it? Is it for actually using q on a machine, or is it for development purposes?

Harel

@InCogNiTo124
Copy link
Contributor Author

I was just trying alternative running options. The official ubuntu release seemed a bit outdated and I was reluctant to build my own dpkg from master so I tried cloning the repo and installing it locally. I don't need need it, but I stil felt I should report this

msmetko

@raylu
Copy link

raylu commented Sep 7, 2023

FWIW, just changing console_scripts to q = q:run_standalone isn't great. it works after installing, but then

$ pip3 uninstall q
Found existing installation: q 3.1.6
Uninstalling q-3.1.6:
  Would remove:
    /Users/raylu/venv/bin/q
    /Users/raylu/venv/lib/python3.9/site-packages/*
  Would not remove (might be manually added):
    /Users/raylu/venv/lib/python3.9/site-packages/_distutils_hack/__init__.py
    /Users/raylu/venv/lib/python3.9/site-packages/_distutils_hack/override.py

[a looong list of every single file in site-packages]

    /Users/raylu/venv/lib/python3.9/site-packages/zipp/glob.py
    /Users/raylu/venv/lib/python3.9/site-packages/zipp/py310compat.py
Proceed (Y/n)?

adding py_modules=['q'] is one way to fix uninstallation

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

3 participants