Python Forum
Environment seems to keep losing references
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Environment seems to keep losing references
#1
I’m new to Python and am using Scrapy, ProxyChecker pandas, urllib, et. And using VS Code. When I first set things up and started coding this project all worked OK. But as time goes on I started to get errors such as:

No module named ‘ycurl’
Or
DLL load failed while importing pycurl: The specified module could not be found…. From proxy_checker import ProxyChecker

Other times I get similar errors for Scrapy or pandas. I setup my projects using this:

>python -m venv env

And then I install the above libraries using pip install. Sometimes activating the environment fixes things:

>Scripts\activate

Other times I have to close VS Code, other times I have to reboot and sometimes nothing works at all.
I have been developing on the MS stack for many years and I don’t know if there’s a conflict with the MS stuff and the python world.

Can anyone recommend how to make this more stable?

Thank you
Reply


Messages In This Thread
Environment seems to keep losing references - by spacedog - Apr-20-2021, 06:10 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  losing memory antioch 1 2,271 Jan-20-2021, 05:29 AM
Last Post: antioch
  Winning/Losing Message Error in Text based Game kdr87 2 3,864 Dec-14-2020, 12:25 AM
Last Post: bowlofred
  SQL Alchemy dynamic class - declarative_base losing attributes mrdominikku 4 5,002 Jan-10-2020, 06:46 PM
Last Post: mrdominikku
  assignments of function references Skaperen 3 3,138 Aug-15-2019, 11:12 AM
Last Post: fishhook
  Help with parameter variables losing value kofipython 4 4,017 Feb-24-2018, 11:48 AM
Last Post: Larz60+
  module functions and data references Skaperen 6 5,350 Jul-30-2017, 04:09 AM
Last Post: Skaperen

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020