These are chat archives for coala/coala-bears

8th
Jun 2018
Surya Widi
@blazeu
Jun 08 2018 03:06
what does cib do with the other language's package manager such as gem or pip?
John Vandenberg
@jayvdb
Jun 08 2018 04:45
it uses package_manager / dependency_management , which doesnt handle versions at all / very well
p.s. we have a depman room for cib & package_manager
Vaibhav Rai
@RaiVaibhav
Jun 08 2018 17:35
@manankalra I just created a new virtualenv and same error started
during pytest ModuleNotFoundError: No module named 'testfixtures'
testfixtures and cli_helpers is already installed and It is getting imported then also it showing ModuleNotFoundError
when I move to path coala/tests/bears/ and run the pytest then it works fine :sweat_smile:
Vaibhav Rai
@RaiVaibhav
Jun 08 2018 17:41
how did you solved it?
Manan Kalra
@manankalra
Jun 08 2018 17:55
I didn't
Was planning to reinstall the OS, as you suggested.
Did you try it with an older pytest version? Other than 3.6.x
Vaibhav Rai
@RaiVaibhav
Jun 08 2018 17:58
can you try this from testfixtures import LogCapture, StringComparison in your virtualenv where you were getting the error
Did you try it with an older pytest version
I think you want to say python then, to test my changes I move in to the tests directory like cd coala/tests/bears then I ran pytest and pytest is working fine , but when I am trying to run pytest form root of the project pytest throwing error
Manan Kalra
@manankalra
Jun 08 2018 18:03
via mobile, as of now
Vaibhav Rai
@RaiVaibhav
Jun 08 2018 18:03
to verify all I push the my test and changes and CI passes so it is supporting Python 3.4 and Python 3.5
Manan Kalra
@manankalra
Jun 08 2018 18:03
Will let you know in an hour or so
Vaibhav Rai
@RaiVaibhav
Jun 08 2018 18:05
OK, on more thing one strange this was that 2 days before I setup the CI and pytest with the conf that coala uses on my test_repo, so at that time there were no error and even currently I can import the modules on thich pytest is throwing the error
Manan Kalra
@manankalra
Jun 08 2018 18:08
I installed some of the modules manually as Palash suggested, those errors disappeared but they appear again some time later.
Vaibhav Rai
@RaiVaibhav
Jun 08 2018 18:08
I am installing those modules manually but it didn't disappeared
Manan Kalra
@manankalra
Jun 08 2018 18:08
Also, I was getting just one ModuleNotFoundError yesterday, only for blocks. I wasn't able to install it with pip3 too.
There's nothing wrong with site-packages not being visible to PYTHONPATH.
I am installing those modules manually but it didn't disappeared.
Sad. :smile:
Vaibhav Rai
@RaiVaibhav
Jun 08 2018 18:12
Now don't know how to proceed further it's hindering my work
Manan Kalra
@manankalra
Jun 08 2018 20:15

@RaiVaibhav

can you try this from testfixtures import LogCapture, StringComparison in your virtualenv where you were getting the error

No problem with this. ^

Vaibhav Rai
@RaiVaibhav
Jun 08 2018 20:19
Means there is some problem with either virtualenv pytest , I am now more confused now when I shift to my other virtualenv it works fine this is getting more strange now
Manan Kalra
@manankalra
Jun 08 2018 20:19

when I move to path coala/tests/bears/ and run the pytest then it works fine :sweat_smile:

well well, I was facing issues with coala-bears, not coala; pytest works perfectly fine for me with coala
https://pastebin.com/AaVUM3LL

Vaibhav Rai
@RaiVaibhav
Jun 08 2018 20:20
One way or another this problem is same ModuleNotFoundError
Its like it getting triggered
:sweat_smile:
Manan Kalra
@manankalra
Jun 08 2018 20:22
try executing it for coala-bears once

Means there is some problem with either virtualenv

not 18.04? :smile:

Vaibhav Rai
@RaiVaibhav
Jun 08 2018 20:23
It's throws the error ModuleNotFoundError: No module named 'requests_mock' everywhere

Means there is some problem with either virtualenv

Correcting my self ----> problem with pytest

not 18.04

Now I don't think problem is with ubuntu

Manan Kalra
@manankalra
Jun 08 2018 20:27
:confused: I was using 16.04 a week ago
Vaibhav Rai
@RaiVaibhav
Jun 08 2018 20:43
@manankalra can you try creating a env with pyvenv
and install coala and coala-bears?
Manan Kalra
@manankalra
Jun 08 2018 20:43
sure
Vaibhav Rai
@RaiVaibhav
Jun 08 2018 20:46
sudo apt install python3-venv and after that
python3.6 -m venv <somename>
did pytest worked?
Manan Kalra
@manankalra
Jun 08 2018 20:49
I'm still installing it, wait
Vaibhav Rai
@RaiVaibhav
Jun 08 2018 20:50
oh ok :+1:
Manan Kalra
@manankalra
Jun 08 2018 20:53
@RaiVaibhav nah, exactly same errors
Vaibhav Rai
@RaiVaibhav
Jun 08 2018 20:57
it worked for me, what is going on :disappointed:
Did anyone will help us here?