Giter Club home page Giter Club logo

Comments (4)

Technologicat avatar Technologicat commented on May 29, 2024

I have to admit that, although it's not recommended, I usually use the system Python (with pip install --user for packages), so I hadn't noticed this. Thanks for letting me know!

Judging by the error message, it seems the pyan module is not getting installed to site-packages of the temporary venv for some reason. I take it installing other packages in a temporary venv works?

from pyan.

ttylec avatar ttylec commented on May 29, 2024

Yes, it works. Just a bit more details:

when pip installed from git repo within temporary virtualenv

(tmp-1aed8d19cf30cb7d) ➜  pyan git:(master) ✗ head $(which pyan3)
#!/home/ttylec/.virtualenvs/tmp-1aed8d19cf30cb7d/bin/python3
# -*- coding: utf-8 -*-

import re
import sys

and when pip installed from pypi:

(tmp-5cd86f124b295af1) ➜  tmp-5cd86f124b295af1 head $(which pyan3)
#!/usr/bin/python3
# -*- coding: utf-8 -*-

import re
import sys

In the latter case, the python interpreter path if not set properly (it points to system interpreter, not one within venv).

from pyan.

Technologicat avatar Technologicat commented on May 29, 2024

Thanks the analysis! The script using the wrong interpreter explains why it's not finding the module. Wait, I thought I already fix... aaaah, no, I didn't! See #11.

The hardcoded hashbang is at least part of it - there may also be something else. I suppose I'll first fix #11, and then set up a venv and have a look myself. :)

from pyan.

Technologicat avatar Technologicat commented on May 29, 2024

PyPI package pyan3 updated. Please try again with the latest version, and reopen this issue if necessary.

(This should work in the new 1.1.1.)

from pyan.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.