Why is Pylons not recognized when running “import pylons” on the Windows Vista command line?

When I try to import pylons into a python virtual environment, I get an error

C:\env\Scripts>python
Python 2.7 (r27:82525, Jul  4 2010, 07:43:08) [MSC v.1500 64 bit (A
MD64)] on win32
Type "help", "copyright", "credits" or "license" for more informati
on.
>>> import pylons
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\env\lib\site-packages\pylons-1.0-py2.7.egg\pylons\__init
__.py", line 6, in <module>
    from paste.registry import StackedObjectProxy
ImportError: No module named registry

As I understand this error, Python tells me that it cannot find a module named registry . Perhaps this is the result of the error I received when installing Pylons, which is explained here. Why do I get an error message in the last line of the installation of Pylons 1.0 with easy_install and Python 2.7 on Windows Vista 64?

It looks like many of the components of Pylon were installed, but I suppose the registry was not or maybe Pylons just can't see it.

Any ideas on how to solve this?

+3
1

, , .

C:\Users\Josh>env\scripts\activate
(env) C:\Users\Josh>python
ActivePython 2.6.2.2 (ActiveState Software Inc.) based on
Python 2.6.2 (r262:71600, Apr 21 2009, 15:05:37) [MSC v.1500 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import pylons
>>>

.

C:\Users\Josh\env\Scripts>python
ActivePython 2.6.2.2 (ActiveState Software Inc.) based on
Python 2.6.2 (r262:71600, Apr 21 2009, 15:05:37) [MSC v.1500 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> pylons
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'pylons' is not defined
>>>

, , . , python , , .

script ( env\Scripts) .

+1

Source: https://habr.com/ru/post/1767290/


All Articles