ConEmu / old-issues

Old issues for ConEmu project (import is pending)
http://conemu.github.io/
0 stars 1 forks source link

Conemu changes Python pymongo import #1103

Closed ConEmu closed 9 years ago

ConEmu commented 9 years ago

From mark.mac...@gmail.com on June 20, 2013 09:48:01

Required information! OS version: Win7 SP1 x64 ConEmu version: 130612 x64 Far version (if you are using Far Manager): No Bug description When I attempt to run pymongo.MongoClient('foo') in a python interpreter in Conemu terminal, it fails with the following error:

connection = pymongo.MongoClient('foo') Traceback (most recent call last): File "", line 1, in AttributeError: 'module' object has no attribute 'MongoClient'

This problem doesn't happen in the last stable Conemu 120727c. This problem also doesn't occur when running cmd.exe outside of Conemu. Steps to reproduction 1. Requires: Python (I'm running python 2.7) pymongo (easy_install pymongo)

  1. Run cmd.exe in ConEmu 3. Run python interpreter
  2. in python interpreter type: import pymongo
  3. in python interpreter type: connection = pymongo.MongoClient('foo')

pymongo imports differently in Conemu, see below:

names in pymongo in cmd.exe

dir(pymongo) ['ALL', 'ASCENDING', 'Connection', 'DESCENDING', 'GEO2D', 'GEOHAYSTACK', 'GEOSPHERE', 'HASHED', 'MongoClient', 'MongoReplicaSetClient', 'OFF', 'ReadPreference', 'ReplicaSetConnection', 'SLOW_ONLY', 'builtins', 'doc', 'file', 'name', 'package', 'path', '_cmessage', 'auth', 'collection', 'common', 'connection', 'cursor', 'cursor_manager', 'database', 'errors', 'get_version_string', 'has_c', 'helpers', 'message', 'mongo_client', 'mongo_replica_set_client', 'pool', 'read_preferences', 'replica_set_connection', 'son_manipulator', 'ssl_match_hostname', 'thread_util', 'uri_parser', 'version', 'version_tuple']

names in pymongo in conemu cmd.exe

dir(pymongo) ['ALL', 'ASCENDING', 'Connection', 'DESCENDING', 'GEO2D', 'OFF', 'PyMongo_Connection', 'SLOW_ONLY', 'builtins', 'doc', 'file', 'loader', 'name', 'package', 'path', '_cmessage', 'collection', 'common', 'connection', 'cursor', 'cursor_manager', 'database', 'errors', 'has_c', 'helpers', 'message', 'son_manipulator', 'uri_parser', 'version']

Original issue: http://code.google.com/p/conemu-maximus5/issues/detail?id=1104

ConEmu commented 9 years ago

From mark.mac...@gmail.com on June 26, 2013 17:08:36

This is fixed in ConEmu version 130621, please close.

ConEmu commented 9 years ago

From ConEmu.M...@gmail.com on June 27, 2013 00:08:27

Strange enough... Nothing was changed with that issue. If problem appears again - let me know in that issue, will be reopened.

Status: Done