Re: [sqlalchemy] running py.test

2018-02-14 Thread Simon King
The error is coming from here:

https://github.com/zzzeek/sqlalchemy/blob/master/lib/sqlalchemy/testing/mock.py

So I guess you could start by adding some print statements in that
file to see where the exception is being raised. Perhaps you have a
different "mock.py" somewhere on the PYTHONPATH that is being imported
instead of the real library?

Simon


On Tue, Feb 13, 2018 at 3:58 PM, su-sa  wrote:
> Hi Simon,
>
> I installed both pytest and mock using pip install py.test mock in the
> virtualenv. I am using anaconda python. Both the libraries are surely
> installed.
>
>
> On Friday, 9 February 2018 12:36:26 UTC+1, Simon King wrote:
>>
>> On Wed, Feb 7, 2018 at 2:23 PM, su-sa  wrote:
>> > Hallo everyone,
>> >
>> > I am trying to run all the pytest of sqlalchemy. But I always get the
>> > error
>> > - SQLAlchemy requires Mock as of version 0.8.2. I already have the mock
>> > library installed. Could somebody please help me to solve the problem.
>> >
>>
>> How have you installed these libraries? Are you using virtualenv? If
>> so, are pytest and mock both installed in the virtualenv?
>>
>> Simon
>
> --
> SQLAlchemy -
> The Python SQL Toolkit and Object Relational Mapper
>
> http://www.sqlalchemy.org/
>
> To post example code, please provide an MCVE: Minimal, Complete, and
> Verifiable Example. See http://stackoverflow.com/help/mcve for a full
> description.
> ---
> You received this message because you are subscribed to the Google Groups
> "sqlalchemy" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sqlalchemy+unsubscr...@googlegroups.com.
> To post to this group, send email to sqlalchemy@googlegroups.com.
> Visit this group at https://groups.google.com/group/sqlalchemy.
> For more options, visit https://groups.google.com/d/optout.

-- 
SQLAlchemy - 
The Python SQL Toolkit and Object Relational Mapper

http://www.sqlalchemy.org/

To post example code, please provide an MCVE: Minimal, Complete, and Verifiable 
Example.  See  http://stackoverflow.com/help/mcve for a full description.
--- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sqlalchemy+unsubscr...@googlegroups.com.
To post to this group, send email to sqlalchemy@googlegroups.com.
Visit this group at https://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.


Re: [sqlalchemy] running py.test

2018-02-13 Thread su-sa
Hi Simon,

I installed both pytest and mock using pip install py.test mock in the 
virtualenv. I am using anaconda python. Both the libraries are surely 
installed.


On Friday, 9 February 2018 12:36:26 UTC+1, Simon King wrote:

> On Wed, Feb 7, 2018 at 2:23 PM, su-sa  > wrote: 
> > Hallo everyone, 
> > 
> > I am trying to run all the pytest of sqlalchemy. But I always get the 
> error 
> > - SQLAlchemy requires Mock as of version 0.8.2. I already have the mock 
> > library installed. Could somebody please help me to solve the problem. 
> > 
>
> How have you installed these libraries? Are you using virtualenv? If 
> so, are pytest and mock both installed in the virtualenv? 
>
> Simon 
>

-- 
SQLAlchemy - 
The Python SQL Toolkit and Object Relational Mapper

http://www.sqlalchemy.org/

To post example code, please provide an MCVE: Minimal, Complete, and Verifiable 
Example.  See  http://stackoverflow.com/help/mcve for a full description.
--- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sqlalchemy+unsubscr...@googlegroups.com.
To post to this group, send email to sqlalchemy@googlegroups.com.
Visit this group at https://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.


Re: [sqlalchemy] running py.test

2018-02-09 Thread Simon King
On Wed, Feb 7, 2018 at 2:23 PM, su-sa  wrote:
> Hallo everyone,
>
> I am trying to run all the pytest of sqlalchemy. But I always get the error
> - SQLAlchemy requires Mock as of version 0.8.2. I already have the mock
> library installed. Could somebody please help me to solve the problem.
>

How have you installed these libraries? Are you using virtualenv? If
so, are pytest and mock both installed in the virtualenv?

Simon

-- 
SQLAlchemy - 
The Python SQL Toolkit and Object Relational Mapper

http://www.sqlalchemy.org/

To post example code, please provide an MCVE: Minimal, Complete, and Verifiable 
Example.  See  http://stackoverflow.com/help/mcve for a full description.
--- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sqlalchemy+unsubscr...@googlegroups.com.
To post to this group, send email to sqlalchemy@googlegroups.com.
Visit this group at https://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.


[sqlalchemy] running py.test

2018-02-07 Thread su-sa
Hallo everyone,

I am trying to run all the pytest of sqlalchemy. But I always get the error 
- SQLAlchemy requires Mock as of version 0.8.2. I already have the mock 
library installed. Could somebody please help me to solve the problem. 

Thanks in advance,

Greetings,
S

-- 
SQLAlchemy - 
The Python SQL Toolkit and Object Relational Mapper

http://www.sqlalchemy.org/

To post example code, please provide an MCVE: Minimal, Complete, and Verifiable 
Example.  See  http://stackoverflow.com/help/mcve for a full description.
--- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sqlalchemy+unsubscr...@googlegroups.com.
To post to this group, send email to sqlalchemy@googlegroups.com.
Visit this group at https://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.