Problem with the packaging exercise
Douglas Coup <[email protected]> Fri, 11 Oct 2019 10:07:28 -0400
| Newsgroups | gmane.comp.python.distutils.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello all. I recently went through the packaging exercise that's documented here: https://packaging.python.org/tutorials/packaging-projects/ Everything seemed to work fine until I got to the testing step where I was supposed to do an "import example_pkg". Python said it was unable to find the package. My user name on the test PyPI site is dcoup, so I also tried "import example_pkg_dcoup", but that didn't work either. I was using a virtual environment, as recommended in the tutorial. I also tried the installation and test outside of the virtual environment, but that didn't work either. In my case I'm using my Windows 10 workstation. I'm attaching a file with the output of several commands that might help. Is there something I'm missing? Regards, Douglas Coup -- Objective Systems, Inc. REAL WORLD ASN.1 AND XML SOLUTIONS Tel: +1 (484) 875-9841 Fax: +1 (484) 875-9830 Toll-free: (877) 307-6855 (USA only) http://www.obj-sys.com -- Distutils-SIG mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/distutils-sig.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/Z55LZQ5IDIYDTGHBEYF23XBQEUKWJRSK/
ImportError.txt
(text/plain, 2.2 KB)
(tutorial_env) dos> python
Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 21:26:53) [MSC v.1916 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import example_pkg
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'example_pkg'
>>> ^Z
(tutorial_env) dos> dir
Volume in drive C has no label.
Volume Serial Number is D064-AE15
Directory of C:\Users\Doug\Documents\temp\tutorial_env
10/10/2019 12:47 PM <DIR> .
10/10/2019 12:47 PM <DIR> ..
10/10/2019 12:47 PM <DIR> Include
10/10/2019 12:47 PM <DIR> Lib
10/10/2019 12:47 PM 119 pyvenv.cfg
10/10/2019 12:47 PM <DIR> Scripts
1 File(s) 119 bytes
5 Dir(s) 106,232,598,528 bytes free
(tutorial_env) dos> cd Lib
(tutorial_env) dos> dir
Volume in drive C has no label.
Volume Serial Number is D064-AE15
Directory of C:\Users\Doug\Documents\temp\tutorial_env\Lib
10/10/2019 12:47 PM <DIR> .
10/10/2019 12:47 PM <DIR> ..
10/10/2019 12:50 PM <DIR> site-packages
0 File(s) 0 bytes
3 Dir(s) 106,232,598,528 bytes free
(tutorial_env) dos> cd site-packages
(tutorial_env) dos> dir
Volume in drive C has no label.
Volume Serial Number is D064-AE15
Directory of C:\Users\Doug\Documents\temp\tutorial_env\Lib\site-packages
10/10/2019 12:50 PM <DIR> .
10/10/2019 12:50 PM <DIR> ..
10/10/2019 12:47 PM 126 easy_install.py
10/10/2019 12:50 PM <DIR> example_pkg_dcoup-0.0.1.dist-info
10/10/2019 12:47 PM <DIR> pip
10/10/2019 12:47 PM <DIR> pip-19.0.3.dist-info
10/10/2019 12:47 PM <DIR> pkg_resources
10/10/2019 12:47 PM <DIR> setuptools
10/10/2019 12:47 PM <DIR> setuptools-40.8.0.dist-info
10/10/2019 12:47 PM <DIR> __pycache__
1 File(s) 126 bytes
9 Dir(s) 106,232,598,528 bytes free
(tutorial_env) dos>