Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > de.comp.lang.python > #5192

Re: [Python-de] python 2.7 site-packages

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Frank Grellert <grellert@web.de>
Newsgroups de.comp.lang.python
Subject Re: [Python-de] python 2.7 site-packages
Date Sat, 23 Jun 2018 11:28:25 +0200
Lines 98
Sender frank.grellert@gmail.com
Message-ID <mailman.11.1529752390.7721.python-de@python.org> (permalink)
References <CABTCcyaTYMEdUtsth2NdF7nAEjxfshpd1rx5TQ9qcSAt1JtkSQ@mail.gmail.com> <9f65dc49-83ed-e5e2-035b-560c977ddb72@goebel-consult.de> <CABTCcyZhm2SMrRr9PZug3FuLiYi55C_EwDJ_4Jdsv2CDMy_SnQ@mail.gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset="UTF-8"
Content-Transfer-Encoding quoted-printable
X-Trace news.uni-berlin.de keHJjOR7gLxl+aJmHAUSPwxlbD4fjUf8bh55pp75zzMA==
Return-Path <frank.grellert@gmail.com>
X-Original-To python-de@python.org
Delivered-To python-de@mail.python.org
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=MksblxHmcO9xreqMvRb+YLkYUVtFL46s9Hip5u/fGMg=; b=oMv8TQMnRo9V0rh+v6ZQzoj89d8xrfD4JGaGAtAsSk41C/7HbKvGHrxoqTmc7Pbfpn xHb4GbQU6CPTye0vcv7vbw0G8MdTmsuszfGrUsO2+7rj88ou5gvHC9jd15KTrZvKEVxC x1spsETMCpyhFuguD8zNzJ0Nld6mSv1fXrnNSPjY37dWd7aJqHicHLslfgM0PHSWMDSi I10KuhGfJsyJcRv9mE8NiJGLEwieV/wnKmCPPKI9isE+/q5OrqThAEPPTNtUBRBsXz2/ irZrKMUl15OHS9J7eP2ocbVTMRt36g8u6UXORk79UETZBuGnA2bfsz6V98ZOcyYNYd8R hpyA==
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-transfer-encoding; bh=MksblxHmcO9xreqMvRb+YLkYUVtFL46s9Hip5u/fGMg=; b=jZmb07AL4XCe6Tjvr+wPYEshzT558QW4kT//8uOuJX64n4CuEOcEWohxHpcqZT8VMw 5bD1DrEM6Bemmjl+VvrOyac67zZO6msg7kfmidVmfvDcaGGdBKkmzxhYXVqYr5rDtW5t mNHLEHZHNWIcmXr0Z2hu644mk6Fb0nR7r3mkfyNeR8S3kst3ptDrSYyalaK76rhHuVoF KrmoX6RpHG638lIXcD92FymusL0v+f5f+5YmFx6ZtdTiOWacEZZrl4HKbIi/rtwJulr2 8f1VgdPp/xz7SZranfKBq7dKLk20/nT8MPql0PNZ503QuiCWprpCLMIXMhHtDkpUhf3U iM5g==
X-Gm-Message-State APt69E2/UmnCpbUNIjiaTsk/Up9NZR9tF2doIH2DjpBoSvEnEl3BRhzv IZOszKYOyUC3tgzOfbRI+SLQY9S7ybW7Apx9SOA=
X-Google-Smtp-Source ADUXVKKk/BU4GGYcnRSJ6ToezwYJTYw+Ov2XUyllttnr8ja8x04jqtyrS4hxg9FyjMWo7R199l9Uya6zdaskA09Exnk=
X-Received by 2002:a50:fd14:: with SMTP id i20-v6mr4675707eds.71.1529746126304; Sat, 23 Jun 2018 02:28:46 -0700 (PDT)
In-Reply-To <9f65dc49-83ed-e5e2-035b-560c977ddb72@goebel-consult.de>
X-Google-Sender-Auth 7NUabg88qTL1bJ_1a4Y0u5NY714
X-BeenThere python-de@python.org
X-Mailman-Version 2.1.27
Precedence list
List-Id Die Deutsche Python Mailingliste <python-de.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-de>, <mailto:python-de-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-de/>
List-Post <mailto:python-de@python.org>
List-Help <mailto:python-de-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-de>, <mailto:python-de-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID <CABTCcyZhm2SMrRr9PZug3FuLiYi55C_EwDJ_4Jdsv2CDMy_SnQ@mail.gmail.com>
X-Mailman-Original-References <CABTCcyaTYMEdUtsth2NdF7nAEjxfshpd1rx5TQ9qcSAt1JtkSQ@mail.gmail.com> <9f65dc49-83ed-e5e2-035b-560c977ddb72@goebel-consult.de>
Xref csiph.com de.comp.lang.python:5192

Show key headers only | View raw


entschuldige die etwas unklare Ausdrucksweise.

"Nicht mehr auffindbar" meint "nicht mehr importierbar", obwohl der
physische Pfad unverändert vorhanden ist.
Aus irgendeinem Grund habe ich tatsächlich die Datei __init__.py
gelöscht, danach aber wieder neu angelegt. Dennoch kann ich die Module
aus diesem Ordner nicht importieren.

Mit "Pfade anpassen" meine ich die python-Skripte, die aus dem
umbenannten Ordner frankxyz Module importieren, also:

from frank importiert blabla

wird zu

from frankxyz importiert blabla

Aber danke für Deine Hinweise, sie haben mir geholfen: Ich hatte ZODB
über easy_install (statt mit pip) installiert. dabei scheint einiges
durcheinander geraten zu sein. Nachdem ich mit sys.path.append(....)
den Pfad wieder eingetragen habe, klappte alles wieder wie zuvor.

Entschuldigt den "heißen Wind" auf der Mailingliste und nochmal Dank
für Eure Hilfe!

Frank

Am 23. Juni 2018 um 09:17 schrieb Hartmut Goebel <h.goebel@goebel-consult.de>:
> Am 22.06.2018 um 21:10 schrieb Frank Grellert:
>> sind die
>> Module, die sich in diesem Unterordner befinden, nicht mehr
>> auffindbar.
>
> Kannst Du bitte genauer beschreiben, was Du mit "nicht mehr auffindbar"
> meinst. Kann Du sie in python nicht mehr importieren? Wie hast Du das
> bisher gemacht?
>
>> Benenne ich den Ordner in frankxyz um (und passe die Pfade
>> entsprechend an), ist alles wieder da.
>
> Welche Pfade passt Du denn an?
>
>> An welcher Stelle erfolgt die Einstellung, dass der Inhalt des Ordner
>> ..../site-packages/frank für python nicht mehr erreichbar ist?
>
> Ohne Details (siehe oben) kann ich nur raten:
>
> a) Falls Du Deine Module mit "import meinmodul" o.ä, importiert hast,
> hast Du vermutlich die Umgebungsvariable PYTHONPATH verändert. Um das zu
> prüfen in der shell eingeben: "echo $PYTHONPATH".  Docu hierzu [1] oder
> Internetsuche.
>
> b) Falls Du Deine module mit "import frank.meinmodul" oder "from frank
> import meinmodul" o.ä, importiert hast, hast Du vermutlich die Datei
> "..../site-packages/frank/__init__.py" gelöscht. Docu hierzu [2] oder
> Internetsuche.
>
>
> [1] https://docs.python.org/2/using/cmdline.html#envvar-PYTHONPATH
> [2] https://docs.python.org/2/tutorial/modules.html#packages
> --
> Schönen Gruß
> Hartmut Goebel
> Dipl.-Informatiker (univ), CISSP, CSSLP, ISO 27001 Lead Implementer
> Information Security Management, Security Governance, Secure Software
> Development
>
> Goebel Consult, Landshut
> http://www.goebel-consult.de
>
> Blog:
> http://www.goebel-consult.de/blog/das-fass-ist-voll-grunde-linux-201asystemd2018-zu-meiden
>
> Kolumne: http://www.cissp-gefluester.de/2012-02-bring-your-own-life-glosse
>
>
> _______________________________________________
> python-de maillist  -  python-de@python.org
> https://mail.python.org/mailman/listinfo/python-de
>



-- 
*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*
Frank Grellert
Email: grellert@web.de
Webseite: http://fotoblog.57ps.de/
*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*

Back to de.comp.lang.python | Previous | Next | Find similar


Thread

Re: [Python-de] python 2.7 site-packages Frank Grellert <grellert@web.de> - 2018-06-23 11:28 +0200

csiph-web